@adhdev/daemon-core 0.9.38 → 0.9.39

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
@@ -2851,6 +2851,14 @@ var init_provider_cli_adapter = __esm({
2851
2851
  }
2852
2852
  this.resolveStartupState("settled");
2853
2853
  if (this.startupParseGate) return;
2854
+ if (!this.isWaitingForResponse && !this.currentTurnScope && !this.activeModal && !this.parseErrorMessage) {
2855
+ const tail = this.settledBuffer || this.recentOutputBuffer;
2856
+ const modal2 = this.runParseApproval(tail);
2857
+ const lightweightStatus = this.cliScripts?.detectStatus ? this.runDetectStatus(tail) : null;
2858
+ if (!modal2 && lightweightStatus === "idle" && this.currentStatus === "idle") {
2859
+ return;
2860
+ }
2861
+ }
2854
2862
  const session = this.runParseSession();
2855
2863
  if (!session) return;
2856
2864
  const { status, messages, modal, parsedStatus } = session;
@@ -13696,8 +13704,8 @@ var CliProviderInstance = class {
13696
13704
  }
13697
13705
  detectStatusTransition() {
13698
13706
  const now = Date.now();
13699
- const adapterStatus = this.adapter.getStatus();
13700
- const parsedStatus = this.adapter.getScriptParsedStatus?.() || null;
13707
+ const adapterStatus = this.adapter.getStatus({ allowParse: false });
13708
+ const parsedStatus = null;
13701
13709
  const rawStatus = adapterStatus.status;
13702
13710
  const autoApproveActive = rawStatus === "waiting_approval" && this.shouldAutoApprove();
13703
13711
  if (autoApproveActive && !this.autoApproveBusy) {
@@ -13790,7 +13798,7 @@ var CliProviderInstance = class {
13790
13798
  this.completedDebouncePending = { chatTitle, duration, timestamp: now };
13791
13799
  this.completedDebounceTimer = setTimeout(() => {
13792
13800
  if (this.completedDebouncePending) {
13793
- const latestStatus = this.adapter.getStatus();
13801
+ const latestStatus = this.adapter.getStatus({ allowParse: false });
13794
13802
  const latestAutoApproveActive = latestStatus.status === "waiting_approval" && this.shouldAutoApprove();
13795
13803
  const latestVisibleStatus = latestAutoApproveActive ? "generating" : latestStatus.status;
13796
13804
  if (latestVisibleStatus !== "idle") {