@adhdev/daemon-standalone 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
@@ -39209,8 +39209,9 @@ ${effect.notification.body || ""}`.trim();
39209
39209
  const partialReason = typeof nativeHistory?.partialReason === "string" ? nativeHistory.partialReason : void 0;
39210
39210
  const unavailableReason = typeof nativeHistory?.unavailableReason === "string" ? nativeHistory.unavailableReason : void 0;
39211
39211
  const lookup = nativeHistory.lookup === "workspace" ? "workspace" : "session";
39212
+ const nativeHistorySessionForMapping = adapter.cliType === "antigravity-cli" && historyProviderSessionId && nativeHistorySessionId && historyProviderSessionId !== nativeHistorySessionId ? void 0 : nativeHistorySessionId;
39212
39213
  const safeMapping = hasSafeNativeHistoryMapping({
39213
- historySessionId: lookup === "workspace" ? void 0 : nativeHistorySessionId,
39214
+ historySessionId: lookup === "workspace" ? void 0 : nativeHistorySessionForMapping,
39214
39215
  providerSessionId: lookup === "workspace" ? void 0 : historyProviderSessionId || providerSessionId,
39215
39216
  workspace,
39216
39217
  nativeMessages,
@@ -42074,6 +42075,13 @@ ${effect.notification.body || ""}`.trim();
42074
42075
  }
42075
42076
  const mergedMessages = this.mergeConversationMessages(parsedMessages);
42076
42077
  const canonicalBackedHistory = this.syncCanonicalSavedHistoryIfNeeded();
42078
+ const statusMessages = canonicalBackedHistory && this.lastPersistedHistoryMessages.length > 0 ? this.lastPersistedHistoryMessages.map((message) => ({
42079
+ role: message.role,
42080
+ content: message.content,
42081
+ kind: message.kind,
42082
+ senderName: message.senderName,
42083
+ receivedAt: message.receivedAt
42084
+ })) : mergedMessages;
42077
42085
  const dirName = this.workingDir.split("/").filter(Boolean).pop() || "session";
42078
42086
  const parsedChatStatus = typeof parsedStatus?.status === "string" && parsedStatus.status.trim() ? parsedStatus.status.trim() : void 0;
42079
42087
  const suppressStaleParsedBusyStatus = this.shouldSuppressStaleParsedBusyStatus(parsedStatus, adapterStatus);
@@ -42125,7 +42133,7 @@ ${effect.notification.body || ""}`.trim();
42125
42133
  id: activeChatId,
42126
42134
  title: parsedStatus?.title || dirName,
42127
42135
  status: activeChatStatus,
42128
- messages: mergedMessages,
42136
+ messages: statusMessages,
42129
42137
  activeModal: autoApproveActive ? null : parsedStatus?.activeModal ?? adapterStatus.activeModal,
42130
42138
  inputContent: ""
42131
42139
  },