@adhdev/daemon-core 0.9.82-rc.97 → 0.9.82-rc.99
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
|
@@ -5848,6 +5848,8 @@ ${lastSnapshot}`;
|
|
|
5848
5848
|
let effectiveModal = startupModal || this.activeModal;
|
|
5849
5849
|
if (startupDetectedStatus === "waiting_approval") {
|
|
5850
5850
|
effectiveStatus = "waiting_approval";
|
|
5851
|
+
} else if (startupDetectedStatus === "idle" && !startupModal && !effectiveModal) {
|
|
5852
|
+
effectiveStatus = "idle";
|
|
5851
5853
|
}
|
|
5852
5854
|
if (allowParse && !startupModal && !effectiveModal) {
|
|
5853
5855
|
const parsed = this.getFreshParsedStatusCache();
|
|
@@ -6282,9 +6284,10 @@ ${lastSnapshot}`;
|
|
|
6282
6284
|
}
|
|
6283
6285
|
if (!this.ready) {
|
|
6284
6286
|
this.resolveStartupState("send_precheck");
|
|
6285
|
-
if (this.runDetectStatus(this.recentOutputBuffer) === "idle"
|
|
6287
|
+
if (this.runDetectStatus(this.recentOutputBuffer) === "idle") {
|
|
6286
6288
|
this.ready = true;
|
|
6287
6289
|
this.startupParseGate = false;
|
|
6290
|
+
this.setStatus("idle", "send_message_idle_prompt_recovery");
|
|
6288
6291
|
LOG.info("CLI", `[${this.cliType}] sendMessage recovered idle prompt readiness`);
|
|
6289
6292
|
}
|
|
6290
6293
|
}
|
|
@@ -16815,7 +16818,7 @@ async function handleReadChat(h, args) {
|
|
|
16815
16818
|
const nativeHistorySessionId = resolveCliNativeHistorySessionId(args, historySessionId, providerSessionId);
|
|
16816
16819
|
const targetSessionId = typeof args?.targetSessionId === "string" ? args.targetSessionId.trim() : "";
|
|
16817
16820
|
const exactNativeHistoryScope = Boolean(
|
|
16818
|
-
typeof args?.historySessionId === "string" && args.historySessionId.trim() || typeof args?.providerSessionId === "string" && args.providerSessionId.trim() || providerSessionId || nativeHistorySessionId && nativeHistorySessionId !== targetSessionId || h.currentSession?.sessionId === args?.targetSessionId && typeof h.currentSession?.providerSessionId === "string" && h.currentSession.providerSessionId.trim()
|
|
16821
|
+
targetSessionId || typeof args?.historySessionId === "string" && args.historySessionId.trim() || typeof args?.providerSessionId === "string" && args.providerSessionId.trim() || providerSessionId || nativeHistorySessionId && nativeHistorySessionId !== targetSessionId || h.currentSession?.sessionId === args?.targetSessionId && typeof h.currentSession?.providerSessionId === "string" && h.currentSession.providerSessionId.trim()
|
|
16819
16822
|
);
|
|
16820
16823
|
let nativeHistory = null;
|
|
16821
16824
|
try {
|
|
@@ -16935,7 +16938,7 @@ async function handleReadChat(h, args) {
|
|
|
16935
16938
|
const agentStr = provider?.type || args?.agentType || getCurrentProviderType(h);
|
|
16936
16939
|
const workspace = typeof args?.workspace === "string" ? args.workspace : typeof h.currentSession?.workspace === "string" ? h.currentSession.workspace : void 0;
|
|
16937
16940
|
const exactNativeHistoryScope = Boolean(
|
|
16938
|
-
typeof args?.historySessionId === "string" && args.historySessionId.trim() || typeof args?.providerSessionId === "string" && args.providerSessionId.trim() || h.currentSession?.sessionId === args?.targetSessionId && typeof h.currentSession?.providerSessionId === "string" && h.currentSession.providerSessionId.trim()
|
|
16941
|
+
typeof args?.targetSessionId === "string" && args.targetSessionId.trim() || typeof args?.historySessionId === "string" && args.historySessionId.trim() || typeof args?.providerSessionId === "string" && args.providerSessionId.trim() || h.currentSession?.sessionId === args?.targetSessionId && typeof h.currentSession?.providerSessionId === "string" && h.currentSession.providerSessionId.trim()
|
|
16939
16942
|
);
|
|
16940
16943
|
const history = supportsCliNativeTranscript(agentStr, provider) && isNativeSourceCanonicalHistory(provider?.canonicalHistory) ? readCliProviderNativeHistory(agentStr, {
|
|
16941
16944
|
canonicalHistory: provider?.canonicalHistory,
|