feat: /thinking slash command — toggle reasoning-block visibility #290

Closed
opened 2026-07-12 01:29:17 +02:00 by dries · 0 comments
Owner

Part of OpenCode command parity (transparent-layer goal). OpenCode's TUI has /thinking to toggle whether reasoning/thinking blocks are displayed.

Scope

  • Display-only toggle (does NOT enable/disable model reasoning — matches OpenCode semantics exactly).
  • Add thinking to BUILTIN_COMMANDS (frontend/src/lib/commands/builtinCommands.ts).
  • Persist toggle (Zustand + localStorage).
  • Show/hide reasoning parts in the thread view. Requires reasoning parts to be present in the part stream — verify db/part extraction surfaces them.

Reference

OpenCode docs: https://opencode.ai/docs/tui#thinking

Notes

Sibling to /details. Confirm reasoning parts are already read from OpenCode's part table before building the toggle.

Part of OpenCode command parity (transparent-layer goal). OpenCode's TUI has `/thinking` to toggle whether reasoning/thinking blocks are displayed. ## Scope - Display-only toggle (does NOT enable/disable model reasoning — matches OpenCode semantics exactly). - Add `thinking` to `BUILTIN_COMMANDS` (frontend/src/lib/commands/builtinCommands.ts). - Persist toggle (Zustand + localStorage). - Show/hide reasoning parts in the thread view. Requires reasoning parts to be present in the part stream — verify db/part extraction surfaces them. ## Reference OpenCode docs: https://opencode.ai/docs/tui#thinking ## Notes Sibling to /details. Confirm reasoning parts are already read from OpenCode's part table before building the toggle.
dries closed this issue 2026-07-12 10:10:43 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dries/ocman#290
No description provided.