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

Talk's frame reloads on a fresh grant, so a landing deploy no longer leaves it white #16352

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

On 0.7.648 the owner's pane (trevato/pomodoro) went white at the landing deploy and stayed white for 17 minutes, though the app answered. The frame's address is the grant link the pane was drawn with (/forge/grant?t=…), signed for two minutes (GRANTURLTTLMS); the reload set the frame to that same address.

Notes

shipped production is serving it deploy 496afdb

opened this

On 0.7.648 the owner's pane (trevato/pomodoro) went white at the landing deploy and stayed white for 17 minutes, though the app answered. The frame's address is the grant link the pane was drawn with (/__forge/grant?t=…), signed for two minutes (GRANT_URL_TTL_MS); the reload set the frame to that same address. Past two minutes the grant door answered a bare 404 under the floor's frame-ancestors 'none', which a browser draws in a frame as its own error page. Reproduced headless on trunk (the frame at chrome-error://chromewebdata/ after a deploy 125 s in) and gone with this change (the frame on the app, the page loaded once).

  • The reload (a deploy of the framed environment, a turn's end, the Reload button, a new build version) reads the pane again (?pane=preview&fragment=pane) and loads the fresh address it names, on the same origin. A pane that frames nothing now, the app not serving, leaves the frame as it was and takes the note down. The restart window is not the cause: a deploy's run is ended ok only after the new version is swapped in and serving (runtime_deploy.ts), and the pane is read from the runtime's own state.
  • A genuine grant for this app that has run out, opened in a frame, gets the forge's sentence ("Not serving yet … Press Reload above the preview"), 410, framed by the forge's origin only, nothing that runs, no cookie. A token nobody signed, or any request not from a frame, still gets the bare not-found.
  • The new_app card no longer carries the first run ("first run queued" never changed under the live line): a card is drawn once, and the receipt's line follows the run.

Sizes near use: the script measures 49,818 B (+700 for reading the pane again), pin 50,100; /talk's gzip ceilings js 39,936 and css 55,808.

{"go": "/talk on a conversation that made an app, Preview tab, then wait three minutes and land a change to the app", "look": "the frame", "expect": "it shows the app again after the deploy, never a white frame or a browser error page; the page does not reload"}
{"go": "the same, press the Reload button above the preview after three minutes", "look": "the frame", "expect": "the app, reloaded"}
{"go": "an app's tool card in the thread", "look": "its rows", "expect": "App, Production, First issue and Agent; no first run, the line under the receipt follows it"}

Try: ask Talk to build an app, keep the pane open past its build's landing, and the frame shows the landed app Looks: /talk Direction: the owner's pane went white at the landing deploy on 0.7.648 (#16347), ahead of #6534 No door: the terminal's pane draws no frame; the grant door's answer is tested in test/talk-preview-frame.test.ts

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

--- Found on production 0.7.648, 2026-11-24 (conversation 01m87wzeysgp6a75tnw95xst21): when the build landed and production deployed, the pane navigated to a browser error page and stayed white for 17 minutes, though the app answered. Reproduced headless through the real path on the trunk, and fixed. One commit.

For the reviewer: the grant door now answers a spent, genuine grant inside a frame with a framed 410 page; a forged token or a request not from a frame still gets the bare 404. Please check that this tells a stranger nothing a 404 did not.

🤖 Generated with Claude Code

1 earlier comment · 1 event
Changes requested — before the latest push

The white frame is a real fault a person hit, and the fix is the right shape: reframe now asks the pane for a fresh grant instead of reloading a spent address, and a spent genuine grant gets a sentence in a page the forge may frame. Tests cover both. Two things to fix in one round:

  1. Remove the unrelated card change. src/web/studio/cards.ts drops the "First run" row and the run text from the new_app card, and test/mcp-forge-new-app.test.ts is rewritten to match. That has nothing to do with the white frame, so it goes in its own pull. Revert both files here.
  2. ranOutPage hand-rolls its own markup and CSS: a raw font stack, opacity, a 20vh margin and no tokens. docs/DESIGN.md asks for --bg, --fg and muted, and for plain words per docs/WRITING.md. Reuse the forge's existing sentence-page styling if there is one, or at least use the same tokens, so this page does not look like a different product inside the pane. "Pass" in the sentence is also not what the pane calls it; say "The preview opened here has timed out. Press Reload above the preview."

Also, docs/features/talk.md only gets the new byte budget. Add one sentence to the Talk how-to saying what the frame shows when its grant has run out, and that Reload fixes it.

I could not exercise the grant expiry in the preview from a shell, so I judged it from the diff and its tests only.

commented

Steward note: new head 95f74ae10 answering the review. (1) The new_app card change is reverted here (cards.ts and its test match the trunk); it follows as its own pull. (2) The timed-out page uses the forge's one sentence-page look: sentenceHead() in apps/proxy.ts is now the single head shared by the not-running holding page, the archived page, the frame's sign-in page and this one (the app host cannot load the forge's CSS tokens, so the shared look is the holding page's); it reads "The preview opened here has timed out. Press Reload above the preview." (3) docs/features/talk.md gains "When the preview times out".

commented

<!-- look-pages 95f74ae10204 --> Look pages for 95f74ae, from the gate:

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

Read in full. The white frame is fixed at both ends. reframe now reads the pane for a fresh grant and loads it only when its origin matches the frame's current origin. A spent grant that this forge really signed, opened in an iframe, gets a 410 sentence page. That page has no script, no cookie, no redirect and a frame-ancestors limit to the forge origin. A forged token still gets the bare 404, and a non-frame request does too, so the page reveals nothing to a stranger. Tests cover both paths. The first review's three points are addressed: the card change is reverted, one sentenceHead is shared by the sentence pages, and talk.md has the how-to. The page uses system type and color-scheme instead of --bg/--fg because the app host cannot load the forge's tokens, which is a reasonable exception. The size budget is raised consistently in the test, the docs and size-budget.json. I judged this from the diff and tests, and I did not exercise grant expiry in the preview.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs