You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: CloseThinking with a tap/click in any area of it #60009
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
When i open the thinking i need to scroll to the top just to close it, even this happened accidentally i have a really large thinking that not make sense to me, put some shortcuts too
If I've got it right, you'd like a way to collapse an expanded thinking block without scrolling back to its header. That could be clicking or tapping anywhere inside it, a header or collapse button that stays visible while you scroll, or a keyboard shortcut. This matters most with very long reasoning, and when a block was opened by accident.
Maintainers will consider it. These related issues touch on collapsing or hiding reasoning:
Same need in the TUI (terminal): opencode v2.2.7 on Windows 11 with Ghostty. A long thinking block there can only be collapsed by scrolling back to its header, so clicking anywhere in the block or a keyboard shortcut would help too.
Proposed fix: pin the reasoning header while the block is open, the same way edit and patch cards already do. It is one CSS rule on the existing collapsible trigger in packages/session-ui/src/components/message-part.css, no state change, and it stacks correctly under an open tool group header.
I tested it on the production component with a before/after recording (attached) and a component test that fails without the rule. Happy to open a PR if maintainers are fine with the behavior.
Activity
opencodejr commentedon Oct 28, 2026
Thanks for the suggestion, @hushino!
If I've got it right, you'd like a way to collapse an expanded thinking block without scrolling back to its header. That could be clicking or tapping anywhere inside it, a header or collapse button that stays visible while you scroll, or a keyboard shortcut. This matters most with very long reasoning, and when a block was opened by accident.
Maintainers will consider it. These related issues touch on collapsing or hiding reasoning:
It would help to know whether you saw this in the Desktop app, the web app or the terminal UI, and which version (
opencode --version).hushino commentedon Oct 28, 2026
opencode desktop 2.2.0
lin-code-world commentedon Nov 10, 2026
Same need in the TUI (terminal): opencode v2.2.7 on Windows 11 with Ghostty. A long thinking block there can only be collapsed by scrolling back to its header, so clicking anywhere in the block or a keyboard shortcut would help too.
jtaraque commentedon Nov 20, 2026
Proposed fix: pin the reasoning header while the block is open, the same way edit and patch cards already do. It is one CSS rule on the existing collapsible trigger in packages/session-ui/src/components/message-part.css, no state change, and it stacks correctly under an open tool group header.
I tested it on the production component with a before/after recording (attached) and a component test that fails without the rule. Happy to open a PR if maintainers are fine with the behavior.
sticky-before.webm
sticky-after.webm