@adhdev/daemon-core 0.9.82-rc.103 → 0.9.82-rc.105

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
@@ -17179,8 +17179,9 @@ async function handleReadChat(h, args) {
17179
17179
  const partialReason = typeof nativeHistory?.partialReason === "string" ? nativeHistory.partialReason : void 0;
17180
17180
  const unavailableReason = typeof nativeHistory?.unavailableReason === "string" ? nativeHistory.unavailableReason : void 0;
17181
17181
  const lookup = nativeHistory.lookup === "workspace" ? "workspace" : "session";
17182
+ const nativeHistorySessionForMapping = adapter.cliType === "antigravity-cli" && historyProviderSessionId && nativeHistorySessionId && historyProviderSessionId !== nativeHistorySessionId ? void 0 : nativeHistorySessionId;
17182
17183
  const safeMapping = hasSafeNativeHistoryMapping({
17183
- historySessionId: lookup === "workspace" ? void 0 : nativeHistorySessionId,
17184
+ historySessionId: lookup === "workspace" ? void 0 : nativeHistorySessionForMapping,
17184
17185
  providerSessionId: lookup === "workspace" ? void 0 : historyProviderSessionId || providerSessionId,
17185
17186
  workspace,
17186
17187
  nativeMessages,
@@ -20066,6 +20067,13 @@ var CliProviderInstance = class {
20066
20067
  }
20067
20068
  const mergedMessages = this.mergeConversationMessages(parsedMessages);
20068
20069
  const canonicalBackedHistory = this.syncCanonicalSavedHistoryIfNeeded();
20070
+ const statusMessages = canonicalBackedHistory && this.lastPersistedHistoryMessages.length > 0 ? this.lastPersistedHistoryMessages.map((message) => ({
20071
+ role: message.role,
20072
+ content: message.content,
20073
+ kind: message.kind,
20074
+ senderName: message.senderName,
20075
+ receivedAt: message.receivedAt
20076
+ })) : mergedMessages;
20069
20077
  const dirName = this.workingDir.split("/").filter(Boolean).pop() || "session";
20070
20078
  const parsedChatStatus = typeof parsedStatus?.status === "string" && parsedStatus.status.trim() ? parsedStatus.status.trim() : void 0;
20071
20079
  const suppressStaleParsedBusyStatus = this.shouldSuppressStaleParsedBusyStatus(parsedStatus, adapterStatus);
@@ -20117,7 +20125,7 @@ var CliProviderInstance = class {
20117
20125
  id: activeChatId,
20118
20126
  title: parsedStatus?.title || dirName,
20119
20127
  status: activeChatStatus,
20120
- messages: mergedMessages,
20128
+ messages: statusMessages,
20121
20129
  activeModal: autoApproveActive ? null : parsedStatus?.activeModal ?? adapterStatus.activeModal,
20122
20130
  inputContent: ""
20123
20131
  },