Repository navigation
Conversation
|
@greptileai Please review the current tip for stream identity consistency, wrapped-content affinity, and backward compatibility of legacy encoded IDs |
|
bugbot run Please check current stream item identity, legacy replay compatibility, and affinity behavior with encrypted content present or absent |
[Medium impact] The PR appears safe to merge with no new actionable findings SummaryThe PR keeps reasoning and compaction IDs consistent across stream events and final output while preserving deployment routing on replay
Reviews (6) · Last reviewed commit: "test(sdk): terminate the HTTP stream fix..." · Reviewed by Greptile |
Merging this PR will not alter performance1 warning
Comparing Footnotes |
|
@greptileai Please re-review the added live WebSocket and nonstream before/after evidence; the source head remains 72a1431 |
|
@greptileai The title now marks the documented ID-only affinity compatibility change with fix(responses)!; please re-review the current head and completed live proof |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
72a1431 to
e11a41e
Compare
|
@greptileai Please review e11a41e for stable encoded stream IDs, preserved ID-only deployment affinity, Rust codec parity, and updated live replay evidence |
e11a41e to
deb0cee
Compare
|
@greptileai Please review rebased commit deb0cee, preserving upstream bridge behavior and both test imports, with 946 Python regression tests passing |
|
@greptileai Please review 5a32061 with refreshed real-provider proof and the SDK fixture correction for upstream stream EOF validation |
|
Unable to authenticate your request. Please make sure to connect your GitHub account to Cursor. Go to Cursor |
|
bugbot run for commit 5a32061, covering the SDK fixture correction and unchanged production code verified by the refreshed recording |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 5a32061. Configure here.
Responses streams could give one reasoning item two different IDs, causing clients that merge by ID to retain duplicate history. This keeps the same deployment-carrying ID from the first event through completion, preserving ID-only follow-up routing and matching the Python and Rust codecs
Details
TLDR
Problem this solves:
How it solves it:
Intentional product change: with encrypted-content affinity enabled, reasoning and compaction IDs carry deployment metadata before encrypted content arrives, including plaintext reasoning items; existing ID-only routing remains available
User Flow
Before: merging the streamed response by item ID can retain duplicate reasoning
stream: true,store: false, and encrypted reasoning includedrs_…during item events andencitem_…at completionAfter: the same request retains one reasoning item and its deployment affinity
stream: true,store: false, and encrypted reasoning includedencitem_…during item events and completionRelevant issues
Pre-Submission checklist
Screenshots / Proof of Fix
Actual local LiteLLM, PostgreSQL, and OpenAI
gpt-5-mini, with encrypted-content affinity enabled and separate baseline/final checkoutsBefore (
7e4403ea66)rs_…on item events,encitem_…on completed output, and two retained reasoning itemsAfter (
deb0ceee99)encitem_…on added, done, and completed output, one retained reasoning item, and a completed second turnThe recording runs fresh HTTP requests against the actual proxy; IDs are shortened with hashes only for display
responses-rebased-demo.mp4
Rebased onto main
7e4403ea66atdeb0ceee99, retaining both imports in the Anthropic bridge test conflictmake checkpassedfinish_reasonin the installed SDK HTTP fixture across Python 3.10-3.15; this PR corrects that test fixture5a32061c71Proof carry-forward: live requests and recording tested
deb0ceee99; current tip5a32061c71adds only the SDK fixture finish reason.git diff deb0ceee99 HEAD -- litellm litellm-rustis empty; the full SDK HTTP check andmake checkpass at the current tipType
Bug Fix
Caveats
Medium
Low
Final Attestation