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.js CHANGED
@@ -998,9 +998,11 @@ var PTYSession = class _PTYSession extends import_events.EventEmitter {
998
998
  this.scheduleTaskComplete();
999
999
  }
1000
1000
  }
1001
- const blockingPrompt = this.detectAndHandleBlockingPrompt();
1002
- if (blockingPrompt) {
1003
- return;
1001
+ if (this._status !== "stopping" && this._status !== "stopped") {
1002
+ const blockingPrompt = this.detectAndHandleBlockingPrompt();
1003
+ if (blockingPrompt) {
1004
+ return;
1005
+ }
1004
1006
  }
1005
1007
  if (this._status !== "ready" && this._status !== "busy") {
1006
1008
  const loginDetection = this.adapter.detectLogin(this.outputBuffer);
@@ -1268,6 +1270,8 @@ var PTYSession = class _PTYSession extends import_events.EventEmitter {
1268
1270
  const keyList = Array.isArray(keys) ? keys : [keys];
1269
1271
  const normalized = _PTYSession.normalizeKeyList(keyList);
1270
1272
  this._stallEmissionCount = 0;
1273
+ this._lastBlockingPromptHash = null;
1274
+ this.outputBuffer = "";
1271
1275
  this.resetStallTimer();
1272
1276
  for (const key of normalized) {
1273
1277
  const sequence = SPECIAL_KEYS[key];