Skip to content

feat(tui): spend the ctrl chords on approval, workspaces and the files panel - #1385

Merged
huichen merged 1 commit into
mainfrom
pr/huichen
Oct 27, 2026
Merged

huichen merged 1 commit into
mainfrom
pr/huichen

Conversation

@huichen

@huichen huichen commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

The TUI's ctrl chords now do real work: approval, the workspace list and the files panel each answer to a chord instead of only being reachable through the key sequences. This is the tail of the input work that landed with #1384 — it was committed after that PR had already been frozen, so it ships on its own.

Commits

  • feat(tui): spend the ctrl chords on approval, workspaces and the files panel

Verification

Run at 547c721 with rustc/clippy 1.99.1 (rustup toolchain; Homebrew's 1.96 shadows the PATH), ulimit -n 8192, in the main checkout:

  • cargo fmt --all -- --check → clean
  • cargo clippy -p future-tui --all-targets -- -D warnings → clean
  • cargo test -p future-tui --lib → 1385 passed, 0 failed
  • make check-docs → 358 docs OK, provider matrix 13 rows

Notes

Chord bindings and the docs pages that list them changed together (docs/guide/tui{,.zh-CN}.md, docs/tui/workbench-spec.md); no migration or default-value change.

…s panel

Three follow-ups to the ctrl-only map:

* The approval-mode chooser takes `ctrl+s` back (s = the sandbox it switches to;
  it is the chord it answered to before the map was rewritten).
* The workspace chooser takes `ctrl+l` back (l = the list of directories it
  opens; also its historical chord).
* The files panel — this session's own workspace, the panel a reader opens to
  find the file the agent just mentioned — takes `ctrl+f`, which was refresh's.

What gives way is what is not pressed while working: the queue of prompts sent
mid-run (`/queue`; the status bar already counts them), the interface language
(`/lang`) and a refresh (`/refresh`, new command). The rail itself is the other
one: `b` belongs to tmux and `s` to the approval chooser, so its doors are the
`›` edge button, `tab`, and `shift+←`/`shift+→` — all three on screen.

The map is now fourteen chords: quit c, new n, sessions r, delete d, stop x,
fold e, commands p, model o, effort t, approval s, workspaces l, files f, git g,
paste v. Everything else is a typed verb, and the help table prints `—` for it.

`/refresh` is the one command this adds, so the refresh action keeps a door.
@huichen
huichen enabled auto-merge (squash) October 27, 2026 06:18
@huichen
huichen merged commit 3673fc7 into main Oct 27, 2026
10 checks passed
@huichen
huichen deleted the pr/huichen branch October 27, 2026 06:30
jiangzhuqing000 added a commit that referenced this pull request Nov 4, 2026
…n lists (#1488)

* docs(tui): a requirements-and-acceptance page for the full-screen workbench

The \uture tui\ surface had no document a tester can work from: the user guide
describes every key but assumes someone already using the UI, and the design
contract is written for the people building it. This adds one page that states
what the surface has to satisfy and how each requirement is checked.

It opens with the requirement list (twelve rows, each naming the test group
that proves it) and a fifteen-minute smoke pass, then works through the
surface by area -- startup, layout, transcript, rail, composer, palettes,
approval, files and preview, git, notifications, mouse -- as action/expected
tables. Known limits are listed separately so an expected behaviour is not
filed as a defect.

The interactive keys are read from the UI's own \?\ overlay, NOT from
\uture tui --help\: that text still names the pre-#1385 chords (ctrl+b for the
rail, ctrl+k for refresh), so the page says which one wins and asks for the
mismatch to be reported.

* docs: add workspace/thread archive and pagination design

* feat(desktop): tree-level archiving and keyset-paged conversation lists

* fix(desktop): align the archive entry with the view switch, anchor its guide, and reopen the guide from the archived view

* fix(agent,desktop): bound Windows sandbox cleanup at shutdown and keep failed-cleanups retryable

The nightly updater stranded machines on an old build when the pre-install
Agent drain timed out in its last step: revoking the Windows capability ACEs
can block on the capability locks held by a concurrent sandbox preparation,
and the unbounded wait consumed the whole shutdown budget, recording
`cleanup-failed`. The settings page then disabled installing forever - even
after a restart - because the frontend treated that outcome as a dead end,
although the journal itself accepts a new attempt.

Two layers:

- agent: `reset_capabilities_bounded` waits at most the given budget for the
  preparation and cross-process locks and returns `WouldBlock` naming the
  lock it waited on. The shutdown drain passes a 500 ms budget and skips the
  revoke on timeout, logging that startup cleanup will retry; the unbounded
  call keeps its behavior for Settings reset and uninstall. The bounded call
  also drops the now-redundant process-lock double wait on the drained path.
- desktop: `updatePresentation` derives `retryable` from the journal's own
  admission rules (cleanup-failed and failed-restored may retry). The install
  control no longer keys its disabled state on a single outcome, so a failed
  cleanup leaves a way out without hand-editing app/updates.

Test coverage: a bounded reset times out against a held lock and succeeds
once it frees, a zero budget fails without waiting, the drain stays Stopped
with a contended capability lock, and the page keeps cleanup-failed and
failed-restored retryable while a repair-required record stays gated.

* feat(desktop): archived rows get the active list's row language, a menu, and batch restore

* fix(desktop): fit the archive guide inside the rail and keep the batch action visible

* feat(desktop): archived workspaces get the active list's heading, menu and batch scope

* feat(desktop): a shelved workspace's conversations join the archived batch

* fix(desktop): page lists by ten, mark the selected workspace, and filter the archived view

* feat(desktop): keep the color-theme row one setting tall

Settings -> General opened on fourteen full-width preview cards, which pushed
every row below them off the page for a setting most people touch once. The row
now reads like the settings around it - a small swatch of the active palette and
its name - and 'Show all 14 color themes' opens the catalogue of one card per
theme. Picking a card applies at once and keeps the grid open, since comparing
themes means picking a few in a row.

* feat(desktop): keep the theme catalogue toggle in the row's control column

The expand/collapse button sat under the grid once it opened and beside the
swatch once it closed, so the one control the user needs moved between states
and - open - ended up at the bottom of a page-long grid. It now stays top right,
level with the description, where every other setting keeps its control; only
the value (swatch + name) leaves, because the grid below is the value.

* fix(desktop): make the archived view's entry read as selected

* feat(desktop): page the archived lists by ten and fold archived workspaces with the same chevron

* fix(desktop): fold the archived sections from the same right-hand control as the active ones

* fix(agent): compile the bounded sandbox reset only where it is called

* fix(cli): document the archive guide setting in the desktop help
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