Skip to content

fix: improve thinking block integration and display#60

Merged
Zhang-Henry merged 2 commits intomainfrom
fix/thinking-block-messages
Mar 21, 2026
Merged

fix: improve thinking block integration and display#60
Zhang-Henry merged 2 commits intomainfrom
fix/thinking-block-messages

Conversation

@davidliuk
Copy link
Copy Markdown
Collaborator

This PR improves the integration of thinking context into the chat UI:

  • Added support for 'thinking' and 'reasoning' content types from Claude 3.7 and Gemini Thinking.
  • Improved message grouping to fold non-final text messages into the Thought block.
  • Added a snippet of thinking context to the Thought fold summary for better visibility.
  • Fixed streaming thinking content to be correctly folded instead of appearing as flat text.
  • Suppressed redundant internal 'Thinking...' folds when already inside a Thought block.
  • Added a 'Streaming...' indicator to the Thought summary during active thinking.

davidliuk and others added 2 commits March 20, 2026 23:13
- Avoid direct mutation of message objects in groupAgentTurns (use spread)
- Replace hardcoded "Streaming..." with i18n key (en/ko/zh-CN)
- Set isStreaming: true on thinking messages during realtime handling
- Use unescapeWithMathProtection instead of decodeHtmlEntities for consistency
@Zhang-Henry Zhang-Henry merged commit 7a7b673 into main Mar 21, 2026
1 check passed
@Zhang-Henry Zhang-Henry deleted the fix/thinking-block-messages branch March 21, 2026 04:21
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