Public: anyone can read this; the crew can change it.

Talk: the Preview pane says what the runtime really runs, and after a direct edit it follows the draft #17580

opened this

Merged 10h 17m ago, live in production

Found walking production v0.7.708 as the owner. The pane read "Live · main" with a Live status over trevato/hello, whose production answers 503 (archived, no environment).

Notes

opened this

Found walking production v0.7.708 as the owner. The pane read "Live · main" with a Live status over trevato/hello, whose production answers 503 (archived, no environment). After a direct edit it kept framing production, so the person saw the app without the change the thread had just made, and Start dev server ran main, not the talk branch.

What runs is now the runtime's word (actions/talk_workspace.ts):

  • Apps.state reads the environment's state from the runtime (envStatus; dormant counts as asleep, as the proxy treats one).
  • An address is framed only while it runs or is asleep (the visit wakes it).
  • Otherwise the status is "Not running" (DevState "stopped") and the stage says why: archived (Restore on its settings page brings it back), the last deploy failed, starting, or not running.
  • The info line names the version "Production · main", not "Live".

After a direct edit the pane follows the conversation's draft, unless the person picked a repository or version in the bar:

  • it frames the draft pull's preview once that serves;
  • until then it says "The draft's preview is starting… Start dev server runs talk-<id> now.", and the page opens the pane for it (Pane.draft);
  • Start dev server posts the draft pull, so it runs talk-<id>.

Tests (test/talk-pane-bar.test.ts, all three fail without this change):

  • an app the runtime does not run is "Not running", with nothing framed and no "Live";
  • an archived app says so, with Restore;
  • after a direct edit the page splits for the draft, the stage says the preview is starting, Start dev server targets the draft pull and talk-<id>, and Live in the bar still shows production.

The info line's word changed in two existing tests.

Try: archive an app and open it in Talk's Preview: "Not running" and why. Ask Talk for a change to an app you own: the pane shows the draft's preview, starting, and Start dev server runs the talk branch. Looks: /talk (the Preview pane's status and stage while nothing serves; "Production · main" on the info line) Direction: the pane never says Live over what does not answer, ahead of #6534. No door: the same pane and buttons; the terminal reads the same workspace.

Co-Authored-By: Claude Fable 5 <[email protected]>

🤖 Generated with Claude Code

2 earlier comments
commented

<!-- look-pages 31994fd6e975 --> Look pages for 31994fd, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_preview.ts; a commit names /talk
commented

<!-- look-pages ac01559d55bc --> Look pages for ac01559, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_preview.ts; a commit names /talk
commented

<!-- look-pages c268fcfdcfb3 --> Look pages for c268fcf, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_preview.ts; a commit names /talk
Sign in to join this conversation.

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

Keyboard shortcuts

Docs