@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.9.82-rc.104",
3
+ "version": "0.9.82-rc.106",
4
4
  "description": "ADHDev daemon core — CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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: mergedMessages,
619
+ messages: statusMessages,
611
620
  activeModal: autoApproveActive ? null : (parsedStatus?.activeModal ?? adapterStatus.activeModal),
612
621
  inputContent: '',
613
622
  },