bug(cli): Ctrl+T types "t" in input instead of cycling thinking level #192

Closed
opened 2026-03-17 02:11:25 +00:00 by jason.woltje · 0 comments
Owner

Description

Ctrl+T is intended to cycle the thinking level (low → medium → high → xhigh → auto) but instead types a literal t character into the input bar. The keybinding is not being intercepted before the text input captures it.

Proposed Fix

Change the keybinding from Ctrl+T to Shift+Tab. This avoids the conflict with terminal/Ink text input handling of Ctrl key combinations.

Location

  • packages/cli/src/tui/app.tsxuseInput handler for key.ctrl && ch === "t"
  • packages/cli/src/tui/components/bottom-bar.tsx — keybinding hints display

Steps to Reproduce

  1. Open TUI, connect to gateway
  2. Press Ctrl+T

Expected

Thinking level cycles to next available level. Bottom bar updates to show new level.

Actual

A t character is typed into the input bar.

Notes

  • The /thinking slash command (/t) works correctly as an alternative
  • The Shift+Tab binding should be checked for conflicts with autocomplete Tab handling in InputBar
  • Bottom bar hint text needs updating from ^T thinking to the new binding
## Description `Ctrl+T` is intended to cycle the thinking level (low → medium → high → xhigh → auto) but instead types a literal `t` character into the input bar. The keybinding is not being intercepted before the text input captures it. ## Proposed Fix Change the keybinding from `Ctrl+T` to `Shift+Tab`. This avoids the conflict with terminal/Ink text input handling of Ctrl key combinations. ## Location - `packages/cli/src/tui/app.tsx` — `useInput` handler for `key.ctrl && ch === "t"` - `packages/cli/src/tui/components/bottom-bar.tsx` — keybinding hints display ## Steps to Reproduce 1. Open TUI, connect to gateway 2. Press `Ctrl+T` ## Expected Thinking level cycles to next available level. Bottom bar updates to show new level. ## Actual A `t` character is typed into the input bar. ## Notes - The `/thinking` slash command (`/t`) works correctly as an alternative - The `Shift+Tab` binding should be checked for conflicts with autocomplete Tab handling in InputBar - Bottom bar hint text needs updating from `^T thinking` to the new binding
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#192