Repository navigation
feat(tui): name workspaces, pick one from the keyboard; arrows switch the rail - #1373
Merged
Merged
Conversation
…bs with arrows The rail and the `ctrl+r` picker spent their narrow rows on a path tail (`~/future-os/.worktrees/mobi...`), which says less than the directory's own name. `SessionRow::workspace` now carries the name; the path stays the group's identity in `WorkspaceGroup`, where two checkouts with one name must stay apart. The launchpad loses its copy of the conversation list — the rail is that list, and the second copy took the rows the parameter row and the shortcuts need. What it gains is the one choice it was missing: a workspace chip. `tab` walks the prompt and the chips, `enter` cycles the chip under the cursor (the same verb a click runs), and typing or `escape` hands the keys back to the prompt — `launch_field` existed but nothing read it, so the chips were reachable only with a mouse. A workspace chosen there is staged like the model and the effort and travels into the `new_session` that the first message creates. `left`/`right` on a focused rail switch between the two panels, the keyboard spelling of a click on the tab strip; before this they moved the draft caret while the rail had the keys. Copy: the input hint names `ctrl+j`, the newline every terminal delivers — Windows Terminal keeps `alt+enter` for fullscreen and sends plain Enter for `ctrl+enter` unless the reader binds it (documented, with the `sendInput` recipe). The rail's open/closed state was already written to `sidebarVisible`; a test now pins the action that writes it.
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.
What this carries
One TUI commit (
3cf66f84, 10 files / +489−117) plus its merge, on top of the release that just landed.Workspaces get their names back
The rail and the
ctrl+rpicker spent their narrow rows on a path tail —~/future-os/.worktrees/mobi…— which says less than the directory's own name does.SessionRow::workspacenow carries the name (future-os,mobile); the path stays the group's identity inWorkspaceGroup, so two checkouts sharing a name still stay apart, and the panel header still shows the full path.The launchpad loses a copy and gains the choice it was missing
Its copy of the conversation list is gone — the rail is that list, and the duplicate took the rows the parameter row and the shortcuts need.
What it gains is the one choice it could not make from the keyboard: a workspace chip.
tabwalks the prompt and the chips,entercycles the chip under the cursor (the same verb a click runs), and typing orescapehands the keys back to the prompt.launch_fieldalready existed but nothing read it, so before this the chips were reachable only with a mouse. A workspace chosen there is staged like the model and the effort, and travels into thenew_sessionthe first message creates.left/rightswitch rail tabsOn a focused rail they switch between 最近 and 工作区 — the keyboard spelling of a click on the tab strip. Previously they moved the draft caret while the rail held the keys.
One documented consequence
ctrl+entercannot be a newline hint here: Windows Terminal sends it as a plain\rand gives the terminal layer no way to tell the two apart, so the byte never arrives distinct. The input hint now saysctrl+j— a bare LF that every terminal delivers. Both bindings are still accepted application-side; makingctrl+enterwork in Windows Terminal is asendInputbinding on that terminal's side, and the CSI-u form we parse is documented in the commit.Verification
cargo test -p future-tui: 1228 passed.cargo fmt --checkclean. The three screen-space audits, re-run against this change:workbench_perceptual1187 assertions,workbench_semantics24 cases,workbench_interaction559 click targets — all green.make check-docspasses.cargo clippywithout--no-depsis red onagent/src/sandbox/windows/token.rs'schunks_exactlint; that is pre-existing and untouched here (Linux CI does not compile that file).