Skip to content

feat(tui): add Ctrl+T shortcut for reasoning effort - #230

Merged
kingsword09 merged 1 commit into
kingsword09:mainfrom
superheher:feat/ctrl-t-effort
Oct 23, 2026
Merged

kingsword09 merged 1 commit into
kingsword09:mainfrom
superheher:feat/ctrl-t-effort

Conversation

@superheher

Copy link
Copy Markdown
Contributor

Summary

Adds Ctrl+T for cycling reasoning effort, matching the ZCode desktop app shortcut.

Unlike the existing Tab shortcut, Ctrl+T works while the prompt already contains text, so the effort level can be changed at any point without clearing or submitting a draft. The existing empty-prompt Tab behavior is unchanged.

Changes

  • packages/zcode-tui/src/index.ts: handle Ctrl+T by calling the existing switchEffort() path.
  • README.md: document Ctrl+T effort cycling alongside Ctrl+N model cycling.
  • test/tui/fixtures/input-actions.ts and test/tui/input-actions.test.ts: fixture gains effort options and a /effort handler; new end-to-end test types a draft, cycles effort up and down with Ctrl+T, asserts the draft survives both changes and is not submitted, then submits it normally.

Testing

  • bun test test/tui/input-actions.test.ts — 9 pass
  • bun run typecheck — pass

@github-actions

Copy link
Copy Markdown
Contributor

pkg-pr-new preview for commit e79ca4fa5b07207fd672cde329c6635df08181d1.

npx --yes https://pkg.pr.new/zcode-app-cli@e79ca4f

Full repository URL

This preview uses the selected commit. PR updates publish automatically after CI succeeds; kingsword09 can also request a preview with /pkg-pr-new.

Workflow logs

@kingsword09
kingsword09 merged commit 54b7c3e into kingsword09:main Oct 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants