@adhdev/daemon-core 0.9.82-rc.98 → 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.js CHANGED
@@ -5853,6 +5853,8 @@ ${lastSnapshot}`;
5853
5853
  let effectiveModal = startupModal || this.activeModal;
5854
5854
  if (startupDetectedStatus === "waiting_approval") {
5855
5855
  effectiveStatus = "waiting_approval";
5856
+ } else if (startupDetectedStatus === "idle" && !startupModal && !effectiveModal) {
5857
+ effectiveStatus = "idle";
5856
5858
  }
5857
5859
  if (allowParse && !startupModal && !effectiveModal) {
5858
5860
  const parsed = this.getFreshParsedStatusCache();
@@ -6287,9 +6289,10 @@ ${lastSnapshot}`;
6287
6289
  }
6288
6290
  if (!this.ready) {
6289
6291
  this.resolveStartupState("send_precheck");
6290
- if (this.runDetectStatus(this.recentOutputBuffer) === "idle" && this.currentStatus === "idle") {
6292
+ if (this.runDetectStatus(this.recentOutputBuffer) === "idle") {
6291
6293
  this.ready = true;
6292
6294
  this.startupParseGate = false;
6295
+ this.setStatus("idle", "send_message_idle_prompt_recovery");
6293
6296
  LOG.info("CLI", `[${this.cliType}] sendMessage recovered idle prompt readiness`);
6294
6297
  }
6295
6298
  }
@@ -17074,7 +17077,7 @@ async function handleReadChat(h, args) {
17074
17077
  const nativeHistorySessionId = resolveCliNativeHistorySessionId(args, historySessionId, providerSessionId);
17075
17078
  const targetSessionId = typeof args?.targetSessionId === "string" ? args.targetSessionId.trim() : "";
17076
17079
  const exactNativeHistoryScope = Boolean(
17077
- 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()
17080
+ 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()
17078
17081
  );
17079
17082
  let nativeHistory = null;
17080
17083
  try {
@@ -17194,7 +17197,7 @@ async function handleReadChat(h, args) {
17194
17197
  const agentStr = provider?.type || args?.agentType || getCurrentProviderType(h);
17195
17198
  const workspace = typeof args?.workspace === "string" ? args.workspace : typeof h.currentSession?.workspace === "string" ? h.currentSession.workspace : void 0;
17196
17199
  const exactNativeHistoryScope = Boolean(
17197
- 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()
17200
+ 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()
17198
17201
  );
17199
17202
  const history = supportsCliNativeTranscript(agentStr, provider) && isNativeSourceCanonicalHistory(provider?.canonicalHistory) ? readCliProviderNativeHistory(agentStr, {
17200
17203
  canonicalHistory: provider?.canonicalHistory,