Skip to content

Conversation

@arvindrk
Copy link
Contributor

Race condition that was randomly cutting off assistant messages. Basically, we were checking if assistantMessageIndexRef.current wasn't null, but then reading it again inside an async React state callback. Between those two moments, the stream could complete and set it to null.

image

@arvindrk arvindrk merged commit 178a06a into main Aug 20, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants