fix(responses): preserve streamed response IDs for conversation continuation - #869
Conversation
…nuation Chat-backed Responses streams added a resp_ prefix to response IDs, but stored history remained keyed by the upstream ID. Follow-up requests using the returned ID silently lost prior turns. Now we preserve the upstream ID during streaming, matching buffered responses and history storage. Fixes: https://linear.app/nvidia/issue/SWITCH-1564 Assisted-by: Pi:GPT 6 Astra medium Reviewed-by: Claude:Opus 5.5 medium Signed-off-by: Graham King <grahamk@nvidia.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: NVIDIA-NeMo/Switchyard/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe Responses stream translator now uses the target or source message ID unchanged. If neither ID exists, it uses ChangesResponse ID preservation
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~8 minutes Merge Risk: ⚪ Minimal · up to Streamed chat-backed responses retain the upstream ID used to restore continuation history. No actionable merge blocker is evident. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
A rabbit checks the stream at dawn Comment |
Chat-backed Responses streams added a resp_ prefix to response IDs, but stored history remained keyed by the upstream ID. Follow-up requests using the returned ID silently lost prior turns.
Now we preserve the upstream ID during streaming, matching buffered responses and history storage.
Fixes: https://linear.app/nvidia/issue/SWITCH-1564
Assisted-by: Pi:GPT 6 Astra medium
Reviewed-by: Claude:Opus 5.5 medium
Signed-off-by: Graham King grahamk@nvidia.com
Summary by CodeRabbit
resp_switchyardas a fallback. This keeps response identifiers consistent with the upstream message when translating streaming events.