@adhdev/daemon-core 0.8.39 → 0.8.41

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.mjs CHANGED
@@ -5219,7 +5219,7 @@ var ChatHistoryWriter = class {
5219
5219
  const lines = newMessages.map((m) => JSON.stringify(m)).join("\n") + "\n";
5220
5220
  fs3.appendFileSync(filePath, lines, "utf-8");
5221
5221
  const prevCount = this.lastSeenCounts.get(dedupKey) || 0;
5222
- if (messages.length < prevCount * 0.5 && prevCount > 3) {
5222
+ if (!historySessionId && messages.length < prevCount * 0.5 && prevCount > 3) {
5223
5223
  seenHashes.clear();
5224
5224
  this.lastSeenSignatures.delete(dedupKey);
5225
5225
  this.lastSeenTurnSignatures.delete(dedupKey);
@@ -7798,16 +7798,7 @@ async function handleSendChat(h, args) {
7798
7798
  const provider = h.getProvider(args?.agentType);
7799
7799
  const transport = getTargetTransport(h, provider);
7800
7800
  const dedupeKey = buildRecentSendKey(h, args, provider, text);
7801
- const historySessionId = getHistorySessionId(h, args);
7802
7801
  const _logSendSuccess = (method, targetAgent) => {
7803
- h.historyWriter.appendNewMessages(
7804
- targetAgent || provider?.type || getCurrentProviderType(h, "unknown_agent"),
7805
- [{ role: "user", content: text, receivedAt: Date.now() }],
7806
- void 0,
7807
- // title
7808
- args?.targetSessionId,
7809
- historySessionId
7810
- );
7811
7802
  return { success: true, sent: true, method, targetAgent };
7812
7803
  };
7813
7804
  if (isRecentDuplicateSend(dedupeKey)) {