feat: store reasoning separately from content, show/hide UI#1094
Closed
AAClause wants to merge 2 commits intofeat/dynamicModelsfrom
Closed
feat: store reasoning separately from content, show/hide UI#1094AAClause wants to merge 2 commits intofeat/dynamicModelsfrom
AAClause wants to merge 2 commits intofeat/dynamicModelsfrom
Conversation
Member
AAClause
commented
Mar 14, 2026
- feat(conversation): store reasoning separately from content, add show/hide UI
- feat(messages): show/hide reasoning blocks with per-conversation toggle
- test: add unit tests for DeepSeek reasoning chunk handling
3c678ad to
3e37718
Compare
0dc11ba to
e34b0e6
Compare
b580a15 to
d045046
Compare
522adf4 to
c04b481
Compare
d045046 to
03572e2
Compare
aeeb42f to
84647e6
Compare
03572e2 to
2a89f03
Compare
1586987 to
213acc0
Compare
…/hide UI
- Add Message.reasoning field; content holds only the final response
- Add content_utils with START_BLOCK_REASONING, END_REASONING, split_reasoning_and_content
- DB: add reasoning column (migration 003), save/load, backward compat for legacy ```think...```
- Anthropic, DeepSeek: populate reasoning and content separately; streaming yields ("reasoning", chunk) or ("content", chunk)
- Completion handler: route structured chunks, wrap streaming reasoning with `<think>`, parse legacy format after stream
- Display: show reasoning when checkbox on, using `<think>` tags
- Config: default in Preferences, per-tab override in conversation panel (always visible)
- API: send only content
2a89f03 to
e764595
Compare
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.