GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(ui): Add thinking/reasoning block visibility toggle by sauerdaniel · Pull Request #9139 · anomalyco/opencode

Conversation

@sauerdaniel

@sauerdaniel sauerdaniel commented Jan 17, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

Add a keyboard shortcut Ctrl+i to toggle thinking/reasoning block visibility in the TUI.

Fixes #13789

Problem

No quick way to toggle thinking block visibility while using the TUI — users must navigate through menus.

Solution

Add Ctrl+i keybinding that toggles thinking mode visibility in the session turn component, consistent with other TUI quick-settings shortcuts.

Changes

  • packages/ui/src/components/session-turn.tsx — Add Ctrl+i toggle for thinking block visibility with proper mouse event typing

Testing

  • TypeScript compilation passes (bun turbo typecheck)
  • Unit tests pass

AI-Assisted

Yes

Design review note

This touches TUI UI behavior; per CONTRIBUTING.md, maintainer design review is requested before merge.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions

github-actions Bot commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found

PR #7868: feat(app): add /thinking command to toggle reasoning visibility

  • feat(app): add /thinking command to toggle reasoning visibility #7868

Why it's related: Both PRs address the same core feature - toggling thinking/reasoning block visibility. However, PR #7868 uses a /thinking command approach while PR #9139 (current) adds a UI toggle button. These may be complementary approaches or duplicative depending on the intended implementation strategy.

Also related (but older/different scope):

  • PR Feature/OpenAI compatible reasoning #5531: Feature/OpenAI compatible reasoning - Feature/OpenAI compatible reasoning #5531 (earlier reasoning feature work)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thdxr
thdxr force-pushed the dev branch from cbab81f to 2d3c7a0 Compare January 30, 2026 04:49
@opencode-agent
opencode-agent Bot force-pushed the dev branch from 00637c0 to 71e0ba2 Compare January 30, 2026 14:32
@thdxr
thdxr force-pushed the dev branch 3 times, most recently from f1ae801 to 08fa7f7 Compare January 30, 2026 14:37
@github-actions github-actions Bot mentioned this pull request Feb 7, 2026
Fix/219 thinking keybind attach auth #12588
Closed
@sauerdaniel
sauerdaniel force-pushed the pr/thinking-toggle branch from 6312cd5 to 8b6d80e Compare February 10, 2026 19:36
@sauerdaniel

sauerdaniel commented Feb 10, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto latest dev and resolved merge conflicts.\n\nNo functional change beyond the thinking-visibility toggle; also typed mouse event handlers to satisfy TS.\n\nPlease re-run checks / re-review when convenient.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sauerdaniel
sauerdaniel force-pushed the pr/thinking-toggle branch 5 times, most recently from 33464c8 to 546aa0b Compare February 15, 2026 09:29
@sauerdaniel

sauerdaniel commented Feb 16, 2026

Copy link
Copy Markdown
Contributor Author

Re: potential overlap with #7868 — different approach. #7868 adds a /thinking slash command (requires session.tsx changes), while this PR adds a UI toggle directly in the thinking block component (session-turn.tsx only). They're complementary features (command vs inline toggle) that happen to touch the same file.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sauerdaniel
sauerdaniel force-pushed the pr/thinking-toggle branch 6 times, most recently from 21f1fed to 844d34b Compare February 21, 2026 02:04
@sauerdaniel
sauerdaniel force-pushed the pr/thinking-toggle branch 3 times, most recently from 86649ff to 14cb492 Compare March 3, 2026 23:25
@github-actions github-actions Bot mentioned this pull request Mar 4, 2026
📊 AI CLI 工具社区动态日报 2026-03-04 duanyytop/agents-radar#70
Closed
@github-actions github-actions Bot mentioned this pull request Mar 23, 2026
feat: Add per-turn show/hide thinking in session timeline #18699
Closed
sauerdaniel added 2 commits March 25, 2026 13:30
@sauerdaniel
feat(ui): Add thinking/reasoning block visibility toggle
2d00854
Add toggle button to show/hide thinking blocks after response completion.
Currently, reasoning blocks are only visible during streaming and disappear
once the response is complete.

Changes:
- Add showReasoning state to session turn store
- Add hasReasoningParts() memo to detect if turn has reasoning content
- Show toggle button in response header when reasoning parts exist
- Add reasoning section at bottom of response when toggled on
- Keep reasoning visible during streaming (existing behavior)

Fixes anomalyco#7866
@sauerdaniel
fix(ui): Restore SessionTurn props for app typing
f54ac26
@sauerdaniel
sauerdaniel force-pushed the pr/thinking-toggle branch from 14cb492 to f54ac26 Compare March 25, 2026 12:32
@github-actions github-actions Bot mentioned this pull request Apr 8, 2026
Fix/thinking UI app #21549
Closed
3 of 6 tasks
@opencode-agent
opencode-agent Bot force-pushed the dev branch from 2f2ed11 to 9f201d6 Compare April 16, 2026 21:55
@rekram1-node

rekram1-node commented May 15, 2026

Copy link
Copy Markdown
Member

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node rekram1-node closed this May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

TUI lacks quick keyboard toggle for thinking/reasoning block visibility

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@sauerdaniel @rekram1-node
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.