Conversation
- Add reasoningToolDefaultOpen setting (default: true) to control thinking container state - Render reasoning parts in collapsible container with brain icon and "Thinking" label - Add /thinking slash command to toggle default open state - Remove custom thinking UI indicator in favor of tool-part pattern - Follow existing patterns from shellToolPartsExpanded and editToolPartsExpanded
Add translation keys for new thinking functionality across all supported languages. - Add command settings translations for thinking enable/disable toggle - command.settings.thinking.enable - command.settings.thinking.disable - command.settings.thinking.description - Add UI message part translation for thinking state - ui.messagePart.thinking Updated languages: ar, br, bs, da, de, en, es, fr, ja, ko, no, pl, ru, th, tr, zh, zht
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: I found potential related PRs:
The most potentially overlapping is PR #15259 which appears to address the same feature (making reasoning/thinking blocks collapsible). You may want to check if that PR was closed/merged and whether this is a reopened or complementary fix. |
|
I'm not entirely confident that this PR will be merged. Over time, additional changes may introduce merge conflicts, which could further reduce its chances of being accepted. As a result, I've decided to maintain my own fork of opencode. This message is for anyone interested in trying out these features—you can visit my fork and refer to the "Notes" section in the README.md for detailed guidance. The setup process is straightforward and easy to follow. Fork: https://github.com/SOUMITRO-SAHA/opencode
|
The reasoning part visibility was incorrectly gated by showReasoningSummaries, preventing thinking UI from displaying. Now reasoning parts render when they have text content, and the `/thinking` command controls expand/collapse state.
Issue for this PR
Closes #21548
Type of change
What does this PR do?
Implements a collapsible "Thinking" container for model reasoning outputs in the UI.
How did you verify your code works?
/thinkingcommand and verified reasoning containers open/close correctlyScreenshots / recordings
Checklist