Skip to content

feat(tui): name workspaces, pick one from the keyboard; arrows switch the rail - #1373

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 (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+r picker spent their narrow rows on a path tail — ~/future-os/.worktrees/mobi… — which says less than the directory's own name does. SessionRow::workspace now carries the name (future-os, mobile); the path stays the group's identity in WorkspaceGroup, 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. 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 already 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 the new_session the first message creates.

left/right switch rail tabs

On 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+enter cannot be a newline hint here: Windows Terminal sends it as a plain \r and gives the terminal layer no way to tell the two apart, so the byte never arrives distinct. The input hint now says ctrl+j — a bare LF that every terminal delivers. Both bindings are still accepted application-side; making ctrl+enter work in Windows Terminal is a sendInput binding 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 --check clean. The three screen-space audits, re-run against this change: workbench_perceptual 1187 assertions, workbench_semantics 24 cases, workbench_interaction 559 click targets — all green. make check-docs passes.

cargo clippy without --no-deps is red on agent/src/sandbox/windows/token.rs's chunks_exact lint; that is pre-existing and untouched here (Linux CI does not compile that file).

…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.
@huichen
huichen enabled auto-merge (squash) October 26, 2026 10:48
@huichen
huichen merged commit 4452943 into main Oct 26, 2026
10 checks passed
@huichen
huichen deleted the pr/huichen branch October 26, 2026 11:27
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