@adhdev/daemon-core 0.9.82-rc.104 → 0.9.82-rc.106
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 +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/providers/cli-provider-instance.ts +10 -1
package/package.json
CHANGED
|
@@ -541,6 +541,15 @@ export class CliProviderInstance implements ProviderInstance {
|
|
|
541
541
|
}
|
|
542
542
|
const mergedMessages = this.mergeConversationMessages(parsedMessages);
|
|
543
543
|
const canonicalBackedHistory = this.syncCanonicalSavedHistoryIfNeeded();
|
|
544
|
+
const statusMessages = canonicalBackedHistory && this.lastPersistedHistoryMessages.length > 0
|
|
545
|
+
? this.lastPersistedHistoryMessages.map((message) => ({
|
|
546
|
+
role: message.role,
|
|
547
|
+
content: message.content,
|
|
548
|
+
kind: message.kind,
|
|
549
|
+
senderName: message.senderName,
|
|
550
|
+
receivedAt: message.receivedAt,
|
|
551
|
+
}))
|
|
552
|
+
: mergedMessages;
|
|
544
553
|
|
|
545
554
|
const dirName = this.workingDir.split('/').filter(Boolean).pop() || 'session';
|
|
546
555
|
const parsedChatStatus = typeof parsedStatus?.status === 'string' && parsedStatus.status.trim()
|
|
@@ -607,7 +616,7 @@ export class CliProviderInstance implements ProviderInstance {
|
|
|
607
616
|
id: activeChatId,
|
|
608
617
|
title: parsedStatus?.title || dirName,
|
|
609
618
|
status: activeChatStatus,
|
|
610
|
-
messages:
|
|
619
|
+
messages: statusMessages,
|
|
611
620
|
activeModal: autoApproveActive ? null : (parsedStatus?.activeModal ?? adapterStatus.activeModal),
|
|
612
621
|
inputContent: '',
|
|
613
622
|
},
|