pty-manager 1.9.2 → 1.9.3

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);