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.
@@ -979,9 +979,11 @@ var PTYSession = class _PTYSession extends import_events.EventEmitter {
979
979
  this.scheduleTaskComplete();
980
980
  }
981
981
  }
982
- const blockingPrompt = this.detectAndHandleBlockingPrompt();
983
- if (blockingPrompt) {
984
- return;
982
+ if (this._status !== "stopping" && this._status !== "stopped") {
983
+ const blockingPrompt = this.detectAndHandleBlockingPrompt();
984
+ if (blockingPrompt) {
985
+ return;
986
+ }
985
987
  }
986
988
  if (this._status !== "ready" && this._status !== "busy") {
987
989
  const loginDetection = this.adapter.detectLogin(this.outputBuffer);
@@ -1249,6 +1251,8 @@ var PTYSession = class _PTYSession extends import_events.EventEmitter {
1249
1251
  const keyList = Array.isArray(keys) ? keys : [keys];
1250
1252
  const normalized = _PTYSession.normalizeKeyList(keyList);
1251
1253
  this._stallEmissionCount = 0;
1254
+ this._lastBlockingPromptHash = null;
1255
+ this.outputBuffer = "";
1252
1256
  this.resetStallTimer();
1253
1257
  for (const key of normalized) {
1254
1258
  const sequence = SPECIAL_KEYS[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pty-manager",
3
- "version": "1.9.2",
3
+ "version": "1.9.4",
4
4
  "description": "PTY session manager with lifecycle management, pluggable adapters, and blocking prompt detection",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",