Open
Conversation
Use `delete process.env.API_PROXY` instead of `= undefined` because Node.js converts undefined assignments to the string "undefined", causing tests to fail. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
bbqiu
commented
Feb 19, 2026
| // Merge duplicate parts once when resuming a stream | ||
| // This runs after the synthetic start event creates a duplicate, keeping the UI clean | ||
| useEffect(() => { | ||
| if (!resumeStateRef.current.isResuming || resumeStateRef.current.hasMerged) return; |
Contributor
Author
There was a problem hiding this comment.
this should be an O(1) check even though it will run on every change to messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
if resuming a stream from a cursor, and the first chunk back is not a
reasoning-startor similar "start" chunk, the client will throw a validation error that will stop streaming in the UI even though nothing is actually wrongcontext + manual test: https://databricks.slack.com/archives/C065NC65Q9F/p1771025954749819?thread_ts=1770932241.614159&cid=C065NC65Q9F