Skip to content

feat: store reasoning separately from content, show/hide UI#1094

Closed
AAClause wants to merge 2 commits intofeat/dynamicModelsfrom
feat/reasoning-storage
Closed

feat: store reasoning separately from content, show/hide UI#1094
AAClause wants to merge 2 commits intofeat/dynamicModelsfrom
feat/reasoning-storage

Conversation

@AAClause
Copy link
Copy Markdown
Member

  • 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

@AAClause AAClause force-pushed the feat/reasoning-storage branch from 3c678ad to 3e37718 Compare March 14, 2026 19:08
@AAClause AAClause force-pushed the feat/dynamicModels branch from 0dc11ba to e34b0e6 Compare March 15, 2026 06:25
@AAClause AAClause force-pushed the feat/reasoning-storage branch 3 times, most recently from b580a15 to d045046 Compare March 15, 2026 13:20
@AAClause AAClause force-pushed the feat/dynamicModels branch from 522adf4 to c04b481 Compare March 15, 2026 13:45
@AAClause AAClause force-pushed the feat/reasoning-storage branch from d045046 to 03572e2 Compare March 15, 2026 13:49
@AAClause AAClause force-pushed the feat/dynamicModels branch 2 times, most recently from aeeb42f to 84647e6 Compare March 25, 2026 19:17
@AAClause AAClause force-pushed the feat/reasoning-storage branch from 03572e2 to 2a89f03 Compare March 26, 2026 07:55
@AAClause AAClause force-pushed the feat/dynamicModels branch 2 times, most recently from 1586987 to 213acc0 Compare March 31, 2026 20:13
…/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
@AAClause AAClause force-pushed the feat/reasoning-storage branch from 2a89f03 to e764595 Compare March 31, 2026 20:35
@AAClause AAClause closed this Apr 10, 2026
@AAClause AAClause added the invalid This doesn't seem right label Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant