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

Dev's App page goes still the moment nothing is moving: a push lands and the page never says so #265

shipped production is serving it opened this has it

Landed in pull #301 · 2 runs · run

opened this

The studio's app page mounts its live stream unconditionally (src/web/studio/app.ts:589, liveMount({ repo: base, app: true })) and swaps the head card in place when a deploy arrives. Dev's App page mounts it only when something is already in flight:

const moving =
  envs.some((env) => env.state === "deploying") ||
  runs.some((run) => !isTerminal(run.state));
…
${when(moving, () => liveMount({ repo: base }))}   // src/web/pages/apps.ts:663-763

So the common case — the page open, everything quiet, then a push — produces no #live element, no EventSource, and no pill. The deploy runs, the preview comes up, and the page sits there until someone reloads. A page that is live only while you are already watching something is the wrong way round.

Done looks like:

Files I expect to change: src/web/pages/apps.ts, test/web-apps.test.ts (or test/apps.test.ts).

Risks: the gate was deliberate — an idle page holding an SSE connection costs the forge something. If that cost is the reason to keep it, the answer is not "no stream" but a stream the server can drop and the client reconnect; say which you chose in the pull. Note test/web-apps.test.ts is outside the check list today (#261).

Whose brief fits: Scout — one condition, one test.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs