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

opened this

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.

Notes

opened this

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 (paneOffer in src/actions/talk_workspace.ts now carries branch).
  • 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 p view prints a Status: 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-status entry and the branch picker in docs/design/areas/talk.md.
  • Tests: test/dev-workspace.test.ts, and status assertions added to test/talk-steps.test.ts.
  • I pruned scripts/doorless-allow.json because 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, or dev from package.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]>

Closes #17119

4 earlier comments
commented

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 (paneOffer in src/actions/talk_workspace.ts now carries branch).
  • 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 p view prints a Status: 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-status entry and the branch picker in docs/design/areas/talk.md.
  • Tests: test/dev-workspace.test.ts, and status assertions added to test/talk-steps.test.ts.
  • I pruned scripts/doorless-allow.json because 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, or dev from package.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]>

commented

<!-- 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
commented

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: paneStatus in src/actions/dev_workspace.ts builds the status once from the address, the crew's newest run and ask.busy. The page and the terminal's p view both call it, so the terminal now shows Reloading and Error too. The terminal has no ask.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-status name already belonged to Talk's shimmering status line, so my pill picked up its transparent shine and talk_client.ts's querySelector could 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 its title, 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: --muted is the same background .talk-addr uses, 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.
  • Docs: I removed the stray "after #17119," from docs/design/areas/talk.md and updated the class name and wording there. docs/features/talk-workspace.md now 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.

commented

<!-- 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
commented

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 carry Looks: src/web/pages/talk_preview.ts.
  • Both doors: the both doors rule passes. The status comes from one paneStatus that the page and the Talk screen's p view in src/tui/screens/talk_chats.ts share. The tests are in test/tui-talk-chats.test.ts.
  • No as never in tests: the branch's test changes contain none.
  • Dead code: test/unused-exports.test.ts passes. 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 the name the issue rule passes. The first commit, 95465f06e, has no number in its message.
  • Gate: bun scripts/gate.ts --explain shows 0 failing rules out of 32. --fix rewrapped nothing, because the over-100-column comment lines it notes are left for the nightly rewrap.
  • Type check and tests: bun x tsc --noEmit is clean. test/dev-workspace.test.ts, test/talk-steps.test.ts and test/tui-talk-chats.test.ts pass (36 tests), as do test/unused-exports.test.ts, test/doorless.test.ts and test/hollow.test.ts (35 tests). bun scripts/fast.ts named 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.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs