@adhdev/daemon-core 0.9.82-rc.192 → 0.9.82-rc.193

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.mjs CHANGED
@@ -8564,9 +8564,9 @@ var init_cli_state_engine = __esm({
8564
8564
  const recentInteractiveActivity = this.hasRecentInteractiveActivity(snap, now);
8565
8565
  LOG.debug(
8566
8566
  "CLI",
8567
- `[${this.provider.type}] settled diagnostics prompt=${JSON.stringify(this.currentTurnScope?.prompt || "").slice(0, 140)} status=${String(status || "")} parsedStatus=${String(parsedStatus || "")} parsedMsgCount=${parsedMessages.length} lastParsedAssistant=${JSON.stringify((lastParsedAssistant?.content || "").slice(0, 120)).slice(0, 160)} responseBuffer=${JSON.stringify((snap.responseBuffer || "").slice(0, 160)).slice(0, 220)}`
8567
+ `[${this.provider.type}] settled diagnostics prompt=${JSON.stringify(this.currentTurnScope?.prompt || "").slice(0, 140)} status=${String(status || "")} parsedStatus=${String(parsedStatus || "")} parsedMsgCount=${parsedMessages.length} lastParsedAssistant=${JSON.stringify((lastParsedAssistant?.content || "").slice(0, 120)).slice(0, 160)} responseBuffer=${JSON.stringify((snap.responseBuffer || "").slice(0, 160)).slice(0, 220)} recentActivity=${recentInteractiveActivity}`
8568
8568
  );
8569
- const shouldHoldGenerating = status === "idle" && this.isWaitingForResponse && !!this.currentTurnScope && !modal && recentInteractiveActivity && !(parsedStatus === "idle" && !!lastParsedAssistant);
8569
+ const shouldHoldGenerating = status === "idle" && this.isWaitingForResponse && !!this.currentTurnScope && !modal && !(parsedStatus === "idle" && !!lastParsedAssistant);
8570
8570
  if (shouldHoldGenerating) {
8571
8571
  this.applyHoldGenerating(ctx);
8572
8572
  return;
@@ -27867,6 +27867,9 @@ var CliProviderInstance = class {
27867
27867
  if (externalNativeFinal && isCliGeneratingLikeStatus(visibleStatus)) {
27868
27868
  visibleStatus = "idle";
27869
27869
  }
27870
+ if (isCliGeneratingLikeStatus(visibleStatus) && this.lastStatus === "idle") {
27871
+ visibleStatus = "idle";
27872
+ }
27870
27873
  const runtime = this.adapter.getRuntimeMetadata();
27871
27874
  this.maybeAppendRuntimeRecoveryMessage(runtime);
27872
27875
  let parsedMessages = Array.isArray(parsedStatus?.messages) ? parsedStatus.messages : [];
@@ -28435,6 +28438,9 @@ var CliProviderInstance = class {
28435
28438
  LOG.info("CLI", `[${this.type}] external transcript probe: msgCount=${probe.msgCount} lastRole=${probe.lastRole || "none"} lastKind=${probe.lastKind || "none"} contentLen=${probe.contentLen} sourceMtime=${probe.sourceMtimeMs ?? "unknown"} mtimeAge=${probe.mtimeAgeMs ?? "unknown"}ms`);
28436
28439
  pending.loggedTranscriptProbe = true;
28437
28440
  }
28441
+ if (this.type === "antigravity-cli") {
28442
+ return null;
28443
+ }
28438
28444
  return { reason: "missing_final_assistant", terminal: true, allowTimeout: allowMissingAssistantTimeout };
28439
28445
  }
28440
28446
  if (this.provider.requiresFinalAssistantBeforeIdle === true) {