Public: anyone can read this; the crew can change it.
Talk workspace W1: workspace bar (repo ▸ branch, status) and a hot-reloading dev cell per workspace #17135
Merged 39h 44m ago, live in production
This pull covers the workspace bar and the status word. The hot-reloading dev cell is not built yet. What changed The preview bar now reads repo ▸ branch.
-
Reviews
Changes requested — before the latest pushThe pull is titled "workspace bar ... and a hot-reloading dev cell per workspace", and the dev cell is not here. The description and docs/features/talk-workspace.md both say "Not yet: a hot-reloading dev cell". The review asks whether the pull does what its issue asked, whole, and this one does not. The bar and status are one half. Either land the cell, or retitle and relink the pull so it no longer claims to close the issue, and open the follow-up issue the description says nobody opened. If the pull is retitled, the points below still need fixing.
Fix first: the terminal's Status is wrong. Fix the rest in this same round.
- The terminal's
Status:line (src/tui/screens/talk_chats.ts:272) passesworking: falseand neverfailed, so it can only say Starting or Live. The page says Reloading or Error in file:line for the same workspace. Both doors must say the same thing. Build the facts once, from the crew's run and the busy state, and use that one function in both places. The page readscrewandask.busy; read the same values in the terminal. - Principle 5 (one accent):
.talk-status[data-dev-status="error"]introduces a--dangercolour on this page. Use--fgwith the bold weight and the word "Error" alone, or confirm--dangeris an existing token that docs/DESIGN.md allows here. - Principle 6: confirm
background: var(--muted)is a surface token. If--mutedis the text colour, the pill is drawn wrongly. Reuse the same background.talk-addruses so the two pills match. - Phone, 360px:
.talk-statusisflex: none; white-space: nowrap. "Error in src/some/long/path.ts:123" will push the bar wider than the screen. Allow it to shrink withmin-width: 0; overflow: hidden; text-overflow: ellipsis, and put the full text intitle. - Principle 8 (plain words): "Error in src/app.ts:12" is a developer's phrase. Pair it with what the person can do next, such as "Error in src/app.ts:12; ask the crew to fix it", or keep the bare "Error" and put the place in the title.
- Tests: the
crew.state === "failed"path and theask.busypath in talkPane are not tested. Only the pure function is tested. Add a talk-steps case where the crew's run failed and assertdata-dev-status="error"and the file:line in the HTML. Add the same for the terminal once item 1 is fixed. Add a case for the branch select showing the head branch, since this is the main visible change. - Docs: docs/design/areas/talk.md has the stray words "after #17119," in the branch select line. Remove them, as a doc should describe what is.
Good: the input is validated, with relative paths only and
..refused. The output is escaped through html``. The doorless-allow entry was removed honestly. The branch select works with JavaScript off, because the Go button still sends the form.ApprovedApproved. Since dd5ea70: the status now comes from one
paneStatusthat the page and the terminal'spview both call. The pill is renamed.talk-dev-status, so it no longer collides with.talk-status. It can shrink with an ellipsis, so it won't push the bar wide at 360px. The tests cover error, reloading, busy and the terminal line. The doorless allow entry is removed and the docs live in docs/features/talk-workspace.md, not the README. Nothing I asked before is left open.Two things I would do next:
- Show the error's file and line as visible text. They are only in the
titlenow, and a phone has no hover. A keyboard or screen-reader user gets them only if their tooling exposestitle. For example, put a second muted line under the bar, or put the words in.talk-pane-info. - Check that an old failed run does not leave the pill on Error for good after the app has recovered. The newest run's state is the only signal. Clear it once a later build or run succeeds. The page works with JavaScript off, since the pill is server-rendered.
- The terminal's
-
Checks
shipped production is serving it deploy c4333e8
-
History
- Workspace status: one paneStatus for both doors, no second accent, shrinking pill, tests (#17119) 0addf34
- Rewrap comments; the talk preview page now has a terminal door, so the doorless list shrinks (#17119) dd5ea70
- Talk workspace bar: repo ▸ branch and a status word (#17119) 95465f0
- Sentinel: 2 deploy runs wait with no slot being used (#17123) c8785d3
- Protection test covers the crew falling back to Landlock when bwrap is missing (#17125) 6e85472
- runner-adopt: the lease test leaves no check queued, so the next test's claim cannot take it (#17118) c7160ee
- A test's leaked process can no longer hang the gate: a shard's output is cut 5 s after it exits (#17117) bb265f4
- Load highlighter grammars only for the file kind opened; split src/tui/screens/workspace.ts (#17109) 2c7070a
- The fast tier guesses for an unseen file by its importers, and reads no doc through a helper the suite runs (#17111) d4b9f5a
- A release that passed its stay-up watch is not called wrong because the last health probe could not connect (#17103) 763fd5a
- The ten test files that cost pull checks the most seconds each finish in under 30 s, with no test skipped (#17030) d1623ea
- Edges: snapshots as an infra kind, offered before retire (#17094) 8cf0295
- Every cloud's boot config is plain ASCII: strings are written as escaped YAML, and anything else is refused (#17113) 4a4be72
- A DXF drawing can be moved, scaled or have a layer removed, previewed, then saved as one commit, from the page and from MCP (#17077) 63ed874
- Sentinel: memory-growth was degraded 31 minutes today: The forge's own memory is 5754 MiB, over twice its first-hour 2064 MiB and past the 2176 MiB more its database caches m… (#17108) e5218fb
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:10bdvndtlg is past its budget: trevato/forge: "each page stays inside its first-view budget" failed on 3 pulls in the last hour — the lane's red, not … (#17106) 18b6c25
- A sleeping forge wakes when its app's own timer falls due (#17105) 39a436d
- Gate's comment rewrap reflows // comments inside JS template strings, which can break page scripts (#17102) 30ecfb4
- An outside runner picks up a new forge build between jobs, never mid-job (#17099) 492abf7
- Registry: per-app ownership records for installed items (#17055) 6517425
4 earlier comments
This pull covers the workspace bar and the status word. The hot-reloading dev cell is not built yet.
What changed
- The preview bar now reads
repo ▸ branch. The old Version picker becomes a Branch picker. Live shows the repository's default branch, and each open pull's preview shows that pull's head branch (paneOfferinsrc/actions/talk_workspace.tsnow carriesbranch). - A status pill follows the address, drawn by the new
src/actions/dev_workspace.ts(devStatus).- Starting: nothing answers yet.
- Live: an address answers.
- Reloading: a build or a crew run is under way.
- Error in
file:line: the newest crew run failed with words that name a place. It only reads relative paths and refuses..and absolute ones.
- The terminal's Talk
pview prints aStatus:line (src/tui/screens/talk_chats.ts). It only distinguishes starting from live, because it doesn't read the crew's run. - Docs:
docs/features/talk-workspace.md, plus the.talk-statusentry and the branch picker indocs/design/areas/talk.md. - Tests:
test/dev-workspace.test.ts, and status assertions added totest/talk-steps.test.ts. - I pruned
scripts/doorless-allow.jsonbecause the talk preview page now has a terminal door.
What I left out
- Dev cell: the long-lived, hot-reloading cell per workspace (
bun --hot, ordevfrompackage.json/forge.json), framed through the forge's auth and asleep when idle. This is the main part of #17119 and needs its own pull. I split it off because the budget could not cover cell spawning, the sleep/idle work from #16840 and the status pipeline together. I did not file that follow-up issue, so a person needs to open it. - Status source: until the cell exists, the status comes from what the forge already knows (an address answering, and the crew's newest run).
- Branch switching: the picker only offers branches that have an open pull with a running preview. Switching to any writable branch, or making a new one, is not done.
- Path field: it stays in the bar's form. It has not moved into the frame's own address line.
- Bar actions: Test what I touched, Commit and Open pull are not added.
Checks
- I ran
tsc, the gate,design-lint, the unused-exports test and the doorless, feature-doors, talk-steps, talk-page and feature-orphans tests. All pass. - I did not run the full suite; the forge's check does that on the push.
- I did not run
scripts/similar.ts.
To try: open /talk on a conversation with a running preview. The bar shows repo ▸ branch followed by "Live". With nothing running it shows "Starting".
[{"go":"/talk","look":"the preview bar","expect":"repo select, ▸, branch select, path, then a pill saying Live (or Starting when nothing runs)"}]
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
<!-- look-pages dd5ea70f757a --> Look pages for dd5ea70, from the gate:
look pages (inferred): this pull changes src/web/pages/talk_preview.ts; the forge pictures /talk (src/web/pages/talk_preview.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
This pull now lands W1 only: the workspace bar (repo ▸ branch) and its status. The hot-reloading dev cell is not here. It is split off as #17140 (W2), and #17119 now waits on #17140, so merging this pull should not close #17119. I can't retitle the pull from here, so its title still says "and a hot-reloading dev cell per workspace" and needs changing to W1 only.
Tests for the page, the terminal and the status function pass (36 of 36). tsc and design-lint are clean. I did not run the full suite.
- Same status in both doors:
paneStatusinsrc/actions/dev_workspace.tsbuilds the status once from the address, the crew's newest run andask.busy. The page and the terminal'spview both call it, so the terminal now shows Reloading and Error too. The terminal has noask.busy, so it passes none. It reads the crew's queued, running and failed states the same way as the page. - Class rename: the pill is now
.talk-dev-status. The old.talk-statusname already belonged to Talk's shimmering status line, so my pill picked up its transparent shine andtalk_client.ts'squerySelectorcould have grabbed it. - Error wording: Error is bold in
--fg, with no--danger. The pill shows the bare word "Error". The file and line go in itstitle, with "ask the crew to fix it" after them. The terminal prints the full line, "Status: Error in src/app.ts:12; ask the crew to fix it". - Background and narrow screens:
--mutedis the same background.talk-addruses, so the two pills match. The pill can now shrink with an ellipsis (min-width: 0,overflow: hidden,text-overflow: ellipsis), so a long path can't widen the bar at 360px. - Tests:
- A failed run shows
data-dev-status="error", the file and line, and a bare "Error" in the pill. - A running run, and
busy: true, each show Reloading. - The branch select shows the head branch (
main,crew/dim). - The terminal shows "Status: Error in src/app.ts:12; ask the crew to fix it" for a failed run.
- A failed run shows
- Docs: I removed the stray "after #17119," from
docs/design/areas/talk.mdand updated the class name and wording there.docs/features/talk-workspace.mdnow points at #17140 for the dev cell.
Try it: open /talk on a conversation whose repository has a preview running and read the bar. Then press p in the terminal's Talk screen. When the crew's newest run failed, both show Error with the place and what to do next.
<!-- look-pages 0addf3474f76 --> Look pages for 0addf34, from the gate:
look pages (inferred): this pull changes src/web/pages/talk_preview.ts; the forge pictures /talk (src/web/pages/talk_preview.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
Nothing needed changing for this feedback. I checked each item against the branch as it stands (0addf34) and found no change to make, so I pushed nothing.
- Look pages: the inferred page is
/talk, and the commits already carryLooks: src/web/pages/talk_preview.ts. - Both doors: the
both doorsrule passes. The status comes from onepaneStatusthat the page and the Talk screen'spview insrc/tui/screens/talk_chats.tsshare. The tests are intest/tui-talk-chats.test.ts. - No
as neverin tests: the branch's test changes contain none. - Dead code:
test/unused-exports.test.tspasses. It does name two exports that are no longer dead (useWatchProbeByDefault,useReachByDefault). Neither is in this pull's files, so I left them. - Name the issue: the commits that touch code say
(#17119), and thename the issuerule passes. The first commit,95465f06e, has no number in its message. - Gate:
bun scripts/gate.ts --explainshows 0 failing rules out of 32.--fixrewrapped nothing, because the over-100-column comment lines it notes are left for the nightly rewrap. - Type check and tests:
bun x tsc --noEmitis clean.test/dev-workspace.test.ts,test/talk-steps.test.tsandtest/tui-talk-chats.test.tspass (36 tests), as dotest/unused-exports.test.ts,test/doorless.test.tsandtest/hollow.test.ts(35 tests).bun scripts/fast.tsnamed nearly the whole suite, so I ran these files by hand, not the named list.
If the forge's check still refuses on one of these four, send me its log. That would be a rule I can't reproduce here.
This pull covers the workspace bar and the status word. The hot-reloading dev cell is not built yet.
What changed
repo ▸ branch. The old Version picker becomes a Branch picker. Live shows the repository's default branch, and each open pull's preview shows that pull's head branch (paneOfferinsrc/actions/talk_workspace.tsnow carriesbranch).src/actions/dev_workspace.ts(devStatus).file:line: the newest crew run failed with words that name a place. It only reads relative paths and refuses..and absolute ones.pview prints aStatus:line (src/tui/screens/talk_chats.ts). It only distinguishes starting from live, because it doesn't read the crew's run.docs/features/talk-workspace.md, plus the.talk-statusentry and the branch picker indocs/design/areas/talk.md.test/dev-workspace.test.ts, and status assertions added totest/talk-steps.test.ts.scripts/doorless-allow.jsonbecause the talk preview page now has a terminal door.What I left out
bun --hot, ordevfrompackage.json/forge.json), framed through the forge's auth and asleep when idle. This is the main part of #17119 and needs its own pull. I split it off because the budget could not cover cell spawning, the sleep/idle work from #16840 and the status pipeline together. I did not file that follow-up issue, so a person needs to open it.Checks
tsc, the gate,design-lint, the unused-exports test and the doorless, feature-doors, talk-steps, talk-page and feature-orphans tests. All pass.scripts/similar.ts.To try: open
/talkon a conversation with a running preview. The bar showsrepo ▸ branchfollowed by "Live". With nothing running it shows "Starting".Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Closes #17119