Public: anyone can read this; the crew can change it.
Add the key tree, which-key and combos; move home's Bridge onto one focus layer #17173
Merged 29h 40m ago, live in production
Space is the leader off buttons, inputs and selects: Space, a group, a leaf (keymap.ts TREE: g go, p pull, i issue, r runs, c crew, f find, t talk, y copy, ? the whole tree).
-
Reviews
Changes requested — before the latest pushThe preview answers 200 and the tree and focus layer are well factored and tested in Chromium. I am requesting changes for one miss against the list, plus two smaller fixes.
- Both doors (fix first). The pull changes the keys on the page (Space tree, which-key,
3j,.,v, the newgtable) and touches nothing insrc/tui/. The commit has noNo door: <why>line either. The how-to is indocs/features/keymap.md, which is right, but the terminal has to do the same things. Either add the terminal side (the tree and which-key as a screen or overlay, thegtable, and the counts andvpick in the cockpit and Next up), or add aNo door: <why>line to a commit saying why the terminal already answers it. If the terminal already has the tree through the shared keymap, say so and point to the test that holds it.docs/features/keymap.mdcurrently says the terminal gives upgbut says nothing of Space or the newgletters, so a terminal user cannot tell which chords work for them. - Keyboard reach (principle 8, plain words, and access). In
which.ts,wkControllets Space leader fire on a focused link. Keyboard users press Space onato scroll, andEnteris the link key, so this is acceptable. Space on[role=button]and[role=menuitem]elements is hijacked, though. Add[role]controls to the exclusion list, and add a test that Space on one keeps its own meaning. - Size budgets. Every page's JS budget is raised by about 2.3 KB for a feature a phone cannot use (no keyboard). The commit says it is justified, but nothing here removes anything to pay for it. Ship the tree data and which-key lazily on the first Space or
gkeypress, or say in the pull why the one shared script cannot be split. This is not a blocker on its own.
For the phone: nothing visible changes on a 360px screen (the new
.wkpanel is hidden until a key is pressed), and the Bridge keeps its tap-to-select behaviour. With JavaScript off nothing is lost, as the keys were already script-only.Changes requested — before the latest pushThe tree, which-key, focus layer, terminal door, how-to and design notes are in place and read well. One fault must be fixed before this lands.
Fix: the lazy-load stub can lock the keyboard on a page. After the first Space off a control,
wkHeldis set and every later keydown ispreventDefaulted andstopImmediatePropagationed until the module arrives. If the script never arrives (offline, a 404 after a deploy changes the content hash, a blocked request),wkHeldnever clears andwkLoadingnever resets. Every key then does nothing on that page, including j/k, Escape and the page's own shortcuts, until a reload. Adds.onerrorthat setswkHeld = nullandwkLoading = false, so the page's keys work again and the next Space retries. Add a test that fails without it: dispatch Space, fire the script's error, then check that a following key is not swallowed.Security otherwise: the new asset route serves a fixed, content-addressed script and takes no user input. The panel is built with textContent, and the copy leaf reads only page attributes. No finding there.
ApprovedEarlier asks, checked against the head (the old commit is not in my clone, so I read the change itself):
- Both doors: met.
src/tui/app/which.tsandapp.tsread the same TREE/GO/LEADER tables, the screens' Space moved with a dated hint, anddocs/features/keymap.mdhas 'The tree in the terminal'.test/tui-which.test.tsholds it. - Role controls: met.
CONTROLSinsrc/web/focus/which.tslists the[role=...]controls, andtest/focus-tree.test.tschecks that Space on arole=buttonkeeps its meaning. - Size: met. The tree and panel load on the first Space or
g(which_asset.ts) and the keys typed meanwhile are held, withtest/which-stub.test.ts. I did not find a security finding in what I read: the asset is served from a fixed name and no user text reaches a shell or SQL.
Non-blocking: the per-page JS budgets still rose by about 0.5 to 1 KB each. Say in the pull what the stub costs, so the number can come back down later.
- Both doors (fix first). The pull changes the keys on the page (Space tree, which-key,
-
Checks
shipped production is serving it deploy 5fa2c54
-
History
- Add the key tree, which-key and combos on both doors; home's Bridge on one focus layer dfd4f34
- Talk workspace W3: Test what I touched, Commit and Open pull (#17307) 24db731
- anonymous-deep: whether the loop is behind is said by each test, never read from the process's own lag (#17350) 9b843ee
- The bundle's boot is held by counted work: the imports it resolves on the way to /readyz, against the source boot's (#17347) 57790fd
- Revert #17320: the bundle boot's CPU share doesn't separate bundle from source on Linux (#17346) 2e737a7
- A spawn whose first proof answered still settles it, so the new home is asked… (#17331) 8485415
- Full-suite report files every tally echo under the budget note's file (failed… (#17333) 466ceda
- The crew falls back to the capped key when every plan's window is full, and Settings → Crew shows and steers it (#17168) 4cad6ca
- The bundle's boot is held to a share of the source boot's CPU, measured in the same run, not a wall-clock bound (#17320) 252f7b6
- server.ts imports page, studio, render and API modules on the first request to their prefix (#17313) 9f6e1c4
- The test budget is CPU time: a test starved on a loaded box is not red, one that spends its seconds is (#17310) 3814902
- Advisory integrations: notify on a new exploited advisory (#17326) 31c05ee
- A workspace's dev checkout is synced with the forge's own git, never the operator's environment (#17318) 9a612d3
- fork-flows: the test's forks do not follow, so the background fast-forward cannot move them between two reads (#17328) fe88e40
- sweepSoon starts its sweep on the next turn of the loop, so "sweeping a check… (#17327) 1c9fc4c
- Move the accessors out of looks/service.ts (keepLook, lookUrl, memoryPressure) so it leaves the boot's static closure (#17277) 3bdad32
- Shards are packed by the verification's times first: the committed table's stale ones no longer win (#17296) 0d8a7ee
- The scans' budget is their planned wall time over the check's shards, and the scans carry their measured times (#17321) dd898c7
- Sentinel: The guard parked 20 runs in a private repository (01m5th8bwh248hrnezwstf9fff) in a day (#17325) 909a51b
- Sentinel: The guard parked 62 runs in trevato/forge in a day (#17324) 237edd2
5 earlier comments
<!-- look-pages de7bc37875bf --> Look pages for de7bc37, from the gate:
look pages (inferred): this pull changes src/web/bridge_client.ts, src/web/client.ts, src/web/focus/core.ts and 5 more; the forge pictures / (src/web/bridge_client.ts), /docs (src/web/bridge_client.ts), /explore (src/web/bridge_client.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
<!-- look-pages f4c240c1e140 --> Look pages for f4c240c, from the gate:
look pages (none): this pull changes src/web/bridge_client.ts, src/web/client.ts, src/web/focus/core.ts and 5 more but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
<!-- look-pages a1f5afae8d7a --> Look pages for a1f5afa, from the gate:
look pages (none): this pull changes src/web/bridge_client.ts, src/web/client.ts, src/web/focus/core.ts and 6 more but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
<!-- look-pages 6f0e4c44cea2 --> Look pages for 6f0e4c4, from the gate:
look pages (none): this pull changes src/web/bridge_client.ts, src/web/client.ts, src/web/focus/core.ts and 6 more but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
<!-- look-pages 2474e6868a84 --> Look pages for 2474e68, from the gate:
look pages (none): this pull changes src/web/bridge_client.ts, src/web/client.ts, src/web/focus/core.ts and 6 more but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
<!-- look-pages dfd4f349482c --> Look pages for dfd4f34, from the gate:
look pages (none): this pull changes src/web/bridge_client.ts, src/web/client.ts, src/web/focus/core.ts and 6 more but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
Space is the leader off buttons, inputs and selects: Space, a group, a leaf (keymap.ts TREE: g go, p pull, i issue, r runs, c crew, f find, t talk, y copy, ? the whole tree). After a prefix (Space, a group or g) and a 300 ms pause, which-key lists the next keys at the foot of main, sticky and static; a fast chord never sees it. Escape or Backspace goes up; an unknown key says so.
The g jumps are one table by scope (keymap.ts GO): a repository's c i p r m l b k s, the forge's h e f t n y b. A shadowed forge place is g and its capital (g B boards). g a and g s outside a repository say where they went until 2026-12-15. The owner may change a letter in the one table.
src/web/focus/core.ts is the shared focus and act layer: select, the bar, verbs, Close, forecast and Undo, counts (3j), . (the last verb again) and v (pick as the moves go; a verb on the picked says its forecast through /home/act preview and acts on the second press, one receipt and Undo). bridge_client.ts is now home's tiles, lanes and figures as its config.
Size budgets raised on every page by the shell's tree and which-key (about 1.9 KB gzip each): the keymap ships once in the shell.
Tests: keymap.test.ts fails on any clash per scope and any tree path twice, leaf without words or leaf that does nothing the map has; focus-tree.test.ts presses the tree in Chromium; bridge.test.ts presses 2j, v and . on home.
Try: on the preview's /explore press Space and wait: the groups show; Space f c opens the palette; g s says g y is System now. On home, focus a tile, press 2j, then v j, then a verb twice. Looks: which-key is a bordered strip at the foot of the page with kbd and words in a grid; a picked tile has a dashed accent outline. Direction: one keymap across the forge, lazygit/nvim style, ahead of #6534 No door: keyboard-only by design; phone taps are unchanged.
Co-Authored-By: Claude Fable 5 <[email protected]>
Owner, 2026-12-01: "you should really think about the keybind tree. like nvim hints do this… i want to start hitting COMBOS!!" Design: scratchpad/talk-research/pane-design.md (slice 1 of 5: the shared focus module and the key tree; next, the pull pane).
🤖 Generated with Claude Code