@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.js
CHANGED
|
@@ -8568,9 +8568,9 @@ var init_cli_state_engine = __esm({
|
|
|
8568
8568
|
const recentInteractiveActivity = this.hasRecentInteractiveActivity(snap, now);
|
|
8569
8569
|
LOG.debug(
|
|
8570
8570
|
"CLI",
|
|
8571
|
-
`[${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)}`
|
|
8571
|
+
`[${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}`
|
|
8572
8572
|
);
|
|
8573
|
-
const shouldHoldGenerating = status === "idle" && this.isWaitingForResponse && !!this.currentTurnScope && !modal &&
|
|
8573
|
+
const shouldHoldGenerating = status === "idle" && this.isWaitingForResponse && !!this.currentTurnScope && !modal && !(parsedStatus === "idle" && !!lastParsedAssistant);
|
|
8574
8574
|
if (shouldHoldGenerating) {
|
|
8575
8575
|
this.applyHoldGenerating(ctx);
|
|
8576
8576
|
return;
|
|
@@ -28177,6 +28177,9 @@ var CliProviderInstance = class {
|
|
|
28177
28177
|
if (externalNativeFinal && isCliGeneratingLikeStatus(visibleStatus)) {
|
|
28178
28178
|
visibleStatus = "idle";
|
|
28179
28179
|
}
|
|
28180
|
+
if (isCliGeneratingLikeStatus(visibleStatus) && this.lastStatus === "idle") {
|
|
28181
|
+
visibleStatus = "idle";
|
|
28182
|
+
}
|
|
28180
28183
|
const runtime = this.adapter.getRuntimeMetadata();
|
|
28181
28184
|
this.maybeAppendRuntimeRecoveryMessage(runtime);
|
|
28182
28185
|
let parsedMessages = Array.isArray(parsedStatus?.messages) ? parsedStatus.messages : [];
|
|
@@ -28745,6 +28748,9 @@ var CliProviderInstance = class {
|
|
|
28745
28748
|
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`);
|
|
28746
28749
|
pending.loggedTranscriptProbe = true;
|
|
28747
28750
|
}
|
|
28751
|
+
if (this.type === "antigravity-cli") {
|
|
28752
|
+
return null;
|
|
28753
|
+
}
|
|
28748
28754
|
return { reason: "missing_final_assistant", terminal: true, allowTimeout: allowMissingAssistantTimeout };
|
|
28749
28755
|
}
|
|
28750
28756
|
if (this.provider.requiresFinalAssistantBeforeIdle === true) {
|