pty-manager 1.9.2 → 1.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -958,9 +958,11 @@ var PTYSession = class _PTYSession extends EventEmitter {
958
958
  this.scheduleTaskComplete();
959
959
  }
960
960
  }
961
- const blockingPrompt = this.detectAndHandleBlockingPrompt();
962
- if (blockingPrompt) {
963
- return;
961
+ if (this._status !== "stopping" && this._status !== "stopped") {
962
+ const blockingPrompt = this.detectAndHandleBlockingPrompt();
963
+ if (blockingPrompt) {
964
+ return;
965
+ }
964
966
  }
965
967
  if (this._status !== "ready" && this._status !== "busy") {
966
968
  const loginDetection = this.adapter.detectLogin(this.outputBuffer);
@@ -1228,6 +1230,8 @@ var PTYSession = class _PTYSession extends EventEmitter {
1228
1230
  const keyList = Array.isArray(keys) ? keys : [keys];
1229
1231
  const normalized = _PTYSession.normalizeKeyList(keyList);
1230
1232
  this._stallEmissionCount = 0;
1233
+ this._lastBlockingPromptHash = null;
1234
+ this.outputBuffer = "";
1231
1235
  this.resetStallTimer();
1232
1236
  for (const key of normalized) {
1233
1237
  const sequence = SPECIAL_KEYS[key];