Repository navigation
feat(tui): spend the ctrl chords on approval, workspaces and the files panel - #1385
Merged
Merged
Conversation
…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
enabled auto-merge (squash)
October 27, 2026 06:18
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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→ cleancargo clippy -p future-tui --all-targets -- -D warnings→ cleancargo test -p future-tui --lib→ 1385 passed, 0 failedmake check-docs→ 358 docs OK, provider matrix 13 rowsNotes
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.