[PR #9139] feat(ui): Add thinking/reasoning block visibility toggle #13000

Open
opened 2026-02-16 18:17:53 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9139

State: open
Merged: No


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.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9139 **State:** open **Merged:** No --- ## 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 - [x] TypeScript compilation passes (`bun turbo typecheck`) - [x] Unit tests pass ## AI-Assisted Yes ## Design review note This touches TUI UI behavior; per CONTRIBUTING.md, maintainer design review is requested before merge.
yindo added the pull-request label 2026-02-16 18:17:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13000