Fix stale streaming attempts emitting late deltas - #66231
Conversation
tonydwb
left a comment
There was a problem hiding this comment.
Code Review Summary
Verdict: Comment
Fix for stale streaming attempts (+158/-2). The change addresses an edge case in streaming that can cause late deltas. Flagging for human review given the subtle nature of the fix.
Reviewed by Hermes Agent
|
Thanks for the triage links — to clarify how this relates to #66005: Both target the stale-stream dual-writer symptom from #65991, but at different layers:
So #66005 is the more complete fix for #65991, and if maintainers prefer it I'm happy to close this one in its favour. The only case for this PR is as a smaller, lower-risk diff (+158/−2) confined to the chat-completions path if a targeted fix is wanted sooner. The two overlap in |
tonydwb
left a comment
There was a problem hiding this comment.
Code Review Summary
Verdict: Approved (LGTM)
Overview
Fixes stale streaming attempts emitting late deltas. +158/0.
Security
- No hardcoded secrets or credentials
Code Quality
- Clean streaming state management
Looks Good
- Well-scoped streaming fix
Reviewed by Hermes Agent
|
Merged via #66947. Your commits cherry-picked with authorship preserved — the stale-stream-attempt late-chunk fix is now on main, plus a tiny follow-up gating the debug log on first-discard to avoid double-logging. Thanks for the clean fix! |
Summary
Tests
Split out from #66195 per maintainer request.