[WRONG BRANCH] fix(responses): prevent cross-request reasoning replay - #37
[WRONG BRANCH] fix(responses): prevent cross-request reasoning replay#37luvs01 wants to merge 1 commit into
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughThe change removes the ChangesReasoning replay-cache scoping
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
⏳ DRAFT
What to do
Its title has been prefixed with |
|
✅ Deterministic PR hygiene checks passed. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Motivation
Description
rememberReasoningForCallandpeekReasoningForCallfail closed whenscopeis absent, and key entries withscope + '\u0000' + callId(changes insrc/responses/reasoning-replay-cache.ts)."global"replayCacheScope fallback and propagate only the explicit client thread id (parsed._clientThreadId) through the bridge, adapters, image loop, and web-search loop (changes insrc/bridge.ts,src/adapters/openai-chat.ts,src/images/loop.ts,src/web-search/loop.ts, andsrc/server/responses/core.ts).REPLAY_SCOPE(changes intests/deepseek-reasoning-replay-gaps.test.tsandtests/bridge-raw-reasoning-hidden.test.ts).Testing
bun test tests/deepseek-reasoning-replay-gaps.test.ts tests/bridge-raw-reasoning-hidden.test.tsand the modified tests passed (23/23 in those runs).bun run typecheck,bun run test, andbun run privacy:scan, all of which completed successfully.git diff --checkand a clean working tree after the changes.Summary by CodeRabbit
Bug Fixes
Tests