Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📜 Recent review details🧰 Additional context used📓 Path-based instructions (5)Check persistence and lifecycle invariants: awaited atomic writes, rollback or explicit partial-failure behavior, cross-window state consistency, stale listeners/watchers, cancellation, idempotency, and safe restart/resume without lost or d...⚙️ CodeRabbit configuration file Files:
Require regression coverage at the lowest valid harness with behavior-focused assertions, including relevant negative, error, false/unset, and boundary cases.⚙️ CodeRabbit configuration file Files:
Check strict typing and exhaustive behavior across normal, boundary, error, cancellation, retry, and compatibility paths.⚙️ CodeRabbit configuration file Files:
Verify extension/webview contracts, cancellation and error propagation, VS Code lifecycle correctness, and behavior under retries and partial failure.⚙️ CodeRabbit configuration file Files:
Act as an adversarial second-opinion reviewer.⚙️ CodeRabbit configuration file Files:
🔇 Additional comments (2)
📝 SummarySummary by CodeRabbit
WalkthroughThe conversation history builder now includes encrypted reasoning content and its optional ID in visible reasoning blocks. A parameterized test checks cases with and without the ID. ChangesReasoning history
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The change preserves encrypted reasoning alongside visible summaries, with no identified issue requiring a fix before merge. Normal CI remains to run. 🚥 Pre-merge checks | ✅ 8✅ Passed checks (8 passed)
✨ Finishing Touches🧪 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 |
Review statusThanks for contributing. This comment tracks the review sequence and the next action. Current step: Awaiting fresh human maintainer or CODEOWNER approval. Automated review is complete for the latest commit but does not replace human approval. Review-state labels are managed by this workflow; do not edit them manually. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Related GitHub Issue
Related to #1963. Extracted from #1964; this PR does not close the whole WebSocket feature issue.
Description
Fix an independent conversation-history bug: a visible reasoning summary must not discard the encrypted reasoning state needed for continuation.
Changes are limited to two files:
apiConversationHistory.ts: retain encrypted reasoning and its optional identifier alongside visible reasoning text.apiConversationHistory.spec.ts: cover preservation both with and without an identifier, alongside normal text and tool-use blocks.This is useful for existing HTTP providers as well as the forthcoming WebSocket transport. There are no transport dependencies, provider-setting changes, or UI changes. It can be reviewed and merged independently of #1964.
Relationship to the split feature
The original backend PR is now split into this reasoning fix, transport-only #1964, and provider-activation #1967. Activation should merge after this fix and #1964. UI #1965 follows activation.
The two files are byte-for-byte identical to the corresponding files in the original unsplit PR. Recombining all backend parts and the UI reproduces the original Git tree exactly.
Test Procedure
Validation in the isolated reasoning-fix worktree:
The combined backend regression validation also passed: 570 tests, shared-types and extension type checks. Full repository CI remains to run on this new PR.
Local validation used Node 24.7.0 / pnpm 10.8.1; the repository requests Node 22.23.1.
Pre-Submission Checklist
No changeset or changelog entry is included.