feat: rootId message injection & historyDedup reset on resume skip - #143
Conversation
…ssage When a user replies to a message (e.g. merge_forward) and @bot, the referenced message content is now explicitly fetched via getMessageById and prepended to the prompt. This ensures the agent can see the quoted content even if it's not in the history window. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When system prompt hash changes and resume is skipped, the old afterMsgId in _historyDedup would cause the new session to only see messages after that point, losing earlier history context. Now executor returns `resumeSkipped` flag, and executeDirectTask clears the _historyDedup entry when resume is skipped. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Claude finished @lishuceo's task in 1m 24s —— View job Code Review: PR #143
Review Summary✅ Approved — The changes are well-structured and follow existing patterns in the codebase. OverviewThis PR adds three small but meaningful improvements:
Detailed NotesThings done well:
Minor observations (not blocking): 🟡 Potential duplicate content (confidence: 65 — below reporting threshold, noting for awareness): If the rootId message is recent enough to already be included in 🟡 Code duplication: The merge_forward expansion logic in the rootId injection block (lines 1707-1732) closely mirrors the logic in VerdictThe changes are correct, follow existing conventions (ESM, logging patterns, error handling), and solve real problems. No bugs, security issues, or architectural concerns found. |
feat: rootId message injection & historyDedup reset on resume skip
Summary
PR #142 的 squash merge 遗漏了后追加的 commits(rootId 注入和 _historyDedup 重置)。本 PR 补充这些修复。
[名字](open_id)格式Test plan
🤖 Generated with Claude Code