@adhdev/daemon-core 0.9.76-rc.31 → 0.9.76-rc.32
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 +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/cli-adapters/provider-cli-adapter.ts +7 -3
package/package.json
CHANGED
|
@@ -1857,9 +1857,13 @@ export class ProviderCliAdapter implements CliAdapter {
|
|
|
1857
1857
|
};
|
|
1858
1858
|
this.recordTrace('submit_echo_missing', diagnostic);
|
|
1859
1859
|
if (this.requirePromptEchoBeforeSubmit) {
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1860
|
+
// At this point the prompt text write already completed. Rejecting without
|
|
1861
|
+
// a submit key can leave the delegated CLI with an unsent prompt sitting at
|
|
1862
|
+
// the input line, which makes later coordinator sends appear stuck. Prefer a
|
|
1863
|
+
// guarded submit after the full echo wait; the existing stuck-submit retry
|
|
1864
|
+
// will send a delayed follow-up Enter if the prompt remains visible.
|
|
1865
|
+
LOG.warn('CLI', `[${this.cliType}] prompt echo was not observed before submit; sending guarded submit key anyway elapsed=${elapsed}ms maxEchoWaitMs=${state.maxEchoWaitMs} screen=${JSON.stringify(diagnostic.screenText).slice(0, 240)}`);
|
|
1866
|
+
this.submitSendKey(state, completion);
|
|
1863
1867
|
return;
|
|
1864
1868
|
}
|
|
1865
1869
|
LOG.warn('CLI', `[${this.cliType}] prompt echo was not observed before submit; sending submit key anyway elapsed=${elapsed}ms maxEchoWaitMs=${state.maxEchoWaitMs}`);
|