Skip to content

feat(tui): centre the launchpad and give its parameters their own keys - #1377

Merged
huichen merged 2 commits into
mainfrom
pr/huichen
Oct 26, 2026
Merged

huichen merged 2 commits into
mainfrom
pr/huichen

Conversation

@huichen

@huichen huichen commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

What this carries

One TUI commit (249c5fab, 20 files / +1237−287): the launchpad is centred and its parameters get their own keys.

The launchpad. Its block now sits in the middle of the body rather than hanging off the top; on a short screen the wordmark is given up first and the prompt and parameter row are kept (verified down to 40×12).

Parameters carry what the desktop composer carries — workspace, model, reasoning effort and approval mode. The separate permission chip is gone: no other client offers that choice, and a TUI-only option is one the reader has to learn twice. /permission goes with it.

Every verb that names a choice pops a list. ctrl+t / ctrl+s / ctrl+l (thinking level, approval mode, workspace), and /thinking / /mode / /workspace open the same menus. The approval menu lists the desktop's four tiers with their one-line explanations; /workspace lists every directory this client has a conversation in, and creates one from the path typed into its search line. F1 and the launchpad's shortcut row show the key that is currently bound, not the shipped default.

Two bugs went with it. A mode chosen on the launchpad used to answer session not found — set_sandbox_policy needs a session like the other setters — so it is now staged and applied when the first message creates the session. And the notice line drew every result in error red, so a successful 工作区 · D:\android-agent read as a crash; red is now reserved for real failures.

The rail gains a collapse/expand button on its outer edge and leaves that edge behind as the way back; a focused rail spends its last row naming the keys it answers.

Where it fits

This is the third pass over the same launchpad in an evening: #1373 named workspaces and put the workspace chip on the launchpad, #1375 removed the icon by the user's decision, and this one centres the block and completes the parameter row. Each was the user's call in the session where it was made; nothing here reverses the earlier two — the icon stays gone and the chip stays.

Verification

Run here on this exact tree, not inherited from the report: cargo test -p future-tui --lib → 1234 passed, 0 failed. cargo fmt --check and cargo clippy -D warnings clean; the session also ran workbench_interaction's pointer hit-test at 120×38 and 40×12 with zero findings, and make check-docs passes. CI additionally compiles and tests the tui-cli target on Linux and Windows.

One thing to note in review

The session reports that three early edits landed in the main worktree's tui/src/workbench/{i18n,mod,picker,preferences}.rs instead of its own, and that it restored those files to HEAD once it noticed. I checked: the main worktree is clean, and all four files' changes are present in this commit — so nothing was lost, but it is the same class of accident as docs/gotcha-tools.md D34 (a relative write resolving against a different directory than the shell's $PWD).

The launchpad's block now sits in the middle of the body instead of hanging
off the top, and the parameter row carries what the desktop composer carries:
workspace, model, reasoning effort and approval mode. The separate permission
chip is gone - no other client offers that choice, and a TUI-only option is one
the reader has to learn twice.

- ctrl+t / ctrl+s / ctrl+l open the thinking, approval-mode and workspace
  choosers; /thinking, /mode and /workspace open the same menus when typed, so
  every verb that names a choice pops a list instead of cycling silently.
- the approval menu lists the desktop's four tiers with their one-line
  explanations; /workspace lists every directory this client has a conversation
  in and creates one from the path typed into its search line.
- a mode chosen on the launchpad is staged and applied once the first message
  creates the session: set_sandbox_policy needs a session like the other
  setters, so it used to answer with an error.
- the rail has a collapse/expand button on its outer edge, and leaves that edge
  behind as the way back; a focused rail spends its last row naming the keys it
  answers.
- notices are painted in amber, not error red: a workspace chosen is not a
  failure, and the red line under a successful choice read as one.
- the launchpad's shortcut row carries the effective bindings, wraps instead of
  clipping, and each entry is clickable.
@huichen
huichen enabled auto-merge (squash) October 26, 2026 13:41
@huichen
huichen merged commit 3022f94 into main Oct 26, 2026
10 checks passed
@huichen
huichen deleted the pr/huichen branch October 26, 2026 14:16
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.

1 participant