fix(hooks): make the recall opener survive tool use#527
Conversation
real-world test: on tool-heavy prompts the model explored the codebase and dropped the soft "open your reply with" instruction from its final message, so recall ran invisibly — the exact symptom the banners exist to kill. verified on a live project: memory-shaped prompts opened with "From vouch memory:", tool-heavy ones did not. state the opener as a hard output contract in all three banners: the final reply MUST open with the exact words, even if the model uses tools or explores first. re-verified end-to-end on the same project — the previously-failing prompt now opens with "From vouch memory:", grounds in cited ids, and still does its tool exploration afterwards.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Walkthrough
ChangesClaude prompt contract updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
real-world verification found the last gap: on tool-heavy prompts the model explored the codebase first and dropped the soft "open your reply with" phrasing from its final message — recall ran but was invisible. all three banners now state the opener as a hard output contract ("your final reply MUST open with the exact words … even if you use tools or explore the codebase first").
verified in production before this pr: on a live project, the exact prompt that previously failed now opens with "From vouch memory:", grounds in cited ids, and still does its tool exploration afterwards. tests updated to pin the strengthened phrasing; full gate green (pytest, mypy, ruff).
Summary by CodeRabbit