Skip to content

docs(tui): the workbench's parity inventory and acceptance record; reshot pickers - #1349

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

huichen merged 2 commits into
mainfrom
pr/huichen

Conversation

@huichen

@huichen huichen commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

What and why

The workbench work that landed through the last few PRs finally gets its paper trail: a parity inventory that maps the design spec onto what the shipped terminal actually does, a change list, and an acceptance record that says which behaviours were checked and how. The workbench screenshots are re-shot from the frame writer the binary now uses, so the images in the guides show the current layout instead of the sketch the earlier captures were taken from, and tui/scripts/shot.sh is the script that regenerates them.

Commits

  • docs(tui): the workbench's parity inventory, change list and acceptance record
  • fix(tui): re-shoot the picker screenshots from the shipped frame writer

Verification

Run on the frozen tip (d9744c776):

  • make check-docs — 327 docs checked; placement, bilingual pairing, local/wiki links, script paths and fences OK; 0 pairs pending bilingualization; provider matrix matches the code (13 rows)
  • bash -n tui/scripts/shot.sh — syntax OK

No Rust source changed in this branch, so no compile or test class was run; the named checks are the whole gate this diff touches.

Notes

  • Every image under docs/tui/assets was regenerated by the shipped frame writer rather than re-drawn by hand, which is why several existing PNGs change size in this diff.
  • The screenshots are committed artifacts, not build output; regenerating them is tui/scripts/shot.sh.

The three picker images were captured from a binary built before this work was
rebased, and the merged tip carries `fix(tui): address every frame row
absolutely instead of advancing with a line feed` — the very path that writes a
frame. The pictures were therefore of a build that no longer exists, which is
not what a screenshot is for.

Re-captured all three from the current HEAD binary in a real tmux pane measured
at 120x38 (`#{pane_width}x#{pane_height}`), each row chosen with a real SGR
click (`tools/click.py`) and the menu reopened afterwards so the shot shows the
clicked value ticked: `/model` → `future/glm-5.3`, `/theme` → Dracula, `/sessions`
→ 会话总管每日巡检简报. They are also rendered without a title strip now, the
same framing as the accepted `workbench-120x38.png` and the panel shots
(1112x792 for 120x38) instead of the 1112x820 the title bar produced.

The frames were measured, not assumed: a bare frame's header hairline is exactly
120 cells, and every row of each picker box closes at column 98 — the column a
76-wide box centred in a 120-wide frame produces, which no other width gives.
…ce record

`future tui` is the workbench, so the documents that described a plan now
have to describe the thing. This adds the four documents the plan promised
(parity inventory, ordered change list — both bilingual) plus the
requirement-by-requirement acceptance record, measured against `ba916d63e`.

What the measurements changed:

* The flag story is settled and documented as such: `future tui` starts the
  workbench and `--layout` / `--legacy` / `--classic` do not exist
  (`help.rs:96` pins their absence). The earlier plan's "`--layout
  workbench|inline`, default workbench" is recorded as obsolete rather than
  quietly dropped, because reintroducing a renderer switch is the failure
  mode that decision closed.
* Four P0 defects found by driving the live surface, each with a landing
  point and a test: the divider drag moves the rail opposite the pointer
  (measured 36 -> 42 on a rightward drag), five palette entries answer
  `Unknown command` (`/workspace /usage /skills /export /transcript`), the
  git branch never reaches the header (`branch: String::new()`), and the
  first frame can be composed for a stale height (one instance painted it a
  row high and repaired it on the next redraw).
* Deleting the inline UI removed screens, not just pixels: `/sandbox`,
  `/worktree`, `/keymap`, `/copy` and the external editor have no workbench
  surface. Two of those were parity rows where FutureOS was ahead.
* The landed pieces are recorded with their evidence: SGR 1006 end to end,
  five panels over real stores, whole-piece degradation, absolute row
  addressing, and one picker behind `/model`, `/theme` and `/sessions` with
  six palettes.

Screens: nineteen frames. Sixteen come from one live session against an
isolated agent (private FUTURE_HOME, fresh port, one real session's rows
copied, no credentials) at 120x38 / 90x24 / 60x20 — launchpad, both overlays,
the light palette, the narrow full-screen panel, and two that exist only to
show a defect; three are the repository's deterministic `capture.py tui`
picker frames. `tui/scripts/shot.sh` reproduces the live ones and re-derives
`workbench-panel-usage.png` byte for byte.
@huichen
huichen enabled auto-merge (squash) October 25, 2026 11:17
@huichen
huichen merged commit d8f574c into main Oct 25, 2026
10 checks passed
@huichen
huichen deleted the pr/huichen branch October 25, 2026 11:28
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