@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.9.76-rc.31",
3
+ "version": "0.9.76-rc.32",
4
4
  "description": "ADHDev daemon core — CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
- const message = `${this.cliName} prompt echo was not observed on the PTY screen before submit`;
1861
- LOG.warn('CLI', `[${this.cliType}] ${message} elapsed=${elapsed}ms maxEchoWaitMs=${state.maxEchoWaitMs} screen=${JSON.stringify(diagnostic.screenText).slice(0, 240)}`);
1862
- completion.rejectOnce(new Error(message));
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}`);