feat(message): add thinking blocks with live streaming - #5
Open
lovec741 wants to merge 1 commit into
Open
Conversation
Render reasoning parts as collapsible thinking blocks and apply message.part.delta events to reasoning parts (deltas use field "text" regardless of target part type). Streaming behavior is controlled by an auto-expand toggle in settings.
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.
Summary
message.part.deltato reasoning parts (server sendsfield: "text"regardless of target part type, so the reducer routes deltas by target part type)Verification
dart format .flutter analyze --no-pubflutter test --no-pub(184 tests, 6 new)AI disclosure
This change was co-written by GLM-5.3-Flash.
I read and reviewed all of the code, tried to match it to the codebase conventions, and tested it on Android.
Notes
Thanks for the project! I have been using it for a couple of months and it has been very useful!
I want to add a couple of the features that I have been missing. I am starting with this one and I am considering adding message undo next.