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 +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/dist/pty-worker.js +7 -3
- package/package.json +1 -1
package/dist/pty-worker.js
CHANGED
|
@@ -979,9 +979,11 @@ var PTYSession = class _PTYSession extends import_events.EventEmitter {
|
|
|
979
979
|
this.scheduleTaskComplete();
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
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