Public: anyone can read this; the crew can change it.
A card with no picture says why, and never shows a question mark #16794
Check · Review · Land · Live done — Landed and live in production.
A card with no picture now fills the picture's own box with the app's name and, when the forge has a reason, one line saying why. It never draws an image or a question mark. I haven't run the full suite.
-
Reviews
Changes requested — before the latest pushOne thing to fix first: on a repository's page (
lookNow) a card with no known reason renders an empty.look-nonebox, with no name and no text. That is a blank grey slot on the page a person reaches from the home. Issue box 2 says that with no reason the card shows the app's name on a calm ground. The builder chose empty because of the first-view block budget; the budget is not a reason to ship an empty box. Show a fixed short phrase or the name in that slot, and if the block count needs to go up by one, say so in the pull. Also fix: 'taking a picture' is said whenever the app is up and nothing else is known, including when the backoff gave up or the forge restarted and lost the retry time, so the line can be false. Say it only when a capture is actually queued or running, or say nothing. Smaller: stray whitespace-only line inlookNow; the home tile andlookNowrenderings have no test (onlynoPictureandwhyNoPicturedo), so the wiring that picks the reason on each card could break unseen; add one test that renders the tile and one forlookNowwith a private app. Preview and CSS: I did not find abackgroundon.look-none, so the 'calm ground' depends on.lookalone; confirm it paints in both themes.ApprovedEarlier asks are met: the app head's card holds the name when there is no reason (no blank box), the false 'taking a picture' claim is gone, the terminal row and /api/v1/front carry the reason, and the tests render the cards. No new ask on the lines changed since 23558f8.
Two things I would do next:
- Non-blocking: give the looks service a real queued/running signal so a 'taking a picture' line can come back true; today an up app with no error shows only its name.
- Non-blocking: a test that renders the 'failed under load; retrying at HH:MM UTC' line on a card end to end (it is only covered through whyNoPicture and the escaping test).
-
Checks
shipped production is serving it deploy c8785d3
-
History
- A card with no reason holds the app's name, and nothing claims a picture is being taken (#16257) 05803a7
- The terminal's front page says why a card has no picture, as the page does (#16257) 23558f8
- Looks: / e6ede5f
- The no-picture card on a repository's page holds the reason alone, keeping the first view inside its budget (#16257) 2297e4f
- Retry times are held per app, not in a module-level Map (#16257) e95c724
- Merge main into scout/16257 19eda7e
- The edge keeps the last Resilience page and serves it, marked as a copy, while the forge is down (#16793) c02779f
- Open-pull ceiling: a pull handed to a person after changes were requested does not count (#16717) 58f6866
- Refused feed replies and review-line comments keep the typed text (#16810) d51db8b
- Main green: tool docs in /llms.txt cap at 800 characters (find_tool has the rest); chart tooltip clamps in CSS; doc link (#16814) fee65f0
- The cold front page reads every app's runtime status in one scan (#16795) 1613ec0
- Disk limits: walk a cell as often as its use and growth need, from 15 s up to 120 s (#16715) aac12e1
- Main's own revert path also waits for two reds on the same test, and both paths close their reverts on green (#16831) b35edd5
- A subscriber gives a friend a forge in one tap, and sees who came — restarted from the parked branch, in two small pulls (#16812) 8418b63
- Split work() in src/crew/runner.ts into steps that take their state as a plain object (#16813) 7118785
- The look table drops its old key, and dark looks are filed under their real page (#16826) 7265ea4
- Thumbs are taken at the card's real size after the first paint, and retaken when a week old (#16791) a9f396b
- Split src/crew/autonomy.ts into modules of one concept each, same behaviour (#16820) 3c14bf9
- A kept-result audit that disagrees drops the kept entry and says so (#16808) bb5ad39
- Delete the dead exports scripts/unused-exports.ts finds, area by area (#16800) 7f8d28a
17 earlier comments
A card with no picture now fills the picture's own box with the app's name and, when the forge has a reason, one line saying why. It never draws an image or a question mark. I haven't run the full suite. The six test files I ran pass, tsc --noEmit is clean, and design-lint and gate --explain report nothing outstanding.
What changed
- Reasons:
src/looks/why.tsturns what the forge knows into one line. The four lines are "taking a picture", "not serving", "failed under load; retrying at HH:MM UTC" and "pictures are the writers' on this private app". With no reason there is no line and the card shows the name alone. - Retry time: the looks service now notes the backoff's next try in
src/looks/retries.tswhen a look fails, and clears it on success or give-up. It lives in process memory and is gone on restart. - Home tile:
src/actions/front.tsgives each front entry awhy, andtile()insrc/web/studio/home.tsusesnoPicturewhen there is no picture. - App head:
lookNowinsrc/web/pages/looks.tsshows the same card where it used to render nothing. - Card:
noPictureinsrc/web/look_none.tsrenders it with the name and reason escaped..look-nonehas the thumb's 8:5 box, so nothing shifts when a picture arrives. The new classes are named indocs/design/areas/look-none.md. - Tests:
test/look-none.test.tscovers each reason, "no reason, no line", the retry being read until due, and escaping of both the name and the reason.
Decisions and limits
- Reused:
NOT_SERVINGfrom the looks service, the existing.lookframe, andlookNow's fetch rule. - Looks page:
lookCardon the pull page already says why a picture is missing, so I left it.lookNowis the app card inlooks.ts. - Home tile coverage: a home tile without a picture only appears when it is the first pinned entry, so a placeholder there is rare.
- No terminal side: the commit says
No door:, because a picture slot has no terminal form. - UTC: the retry time is shown in UTC, so every viewer sees the same time.
- Dupe hints:
gatesuggestedretries.tsmight duplicaterememberandrelayWait. They are different things, and the hint is advisory.
Try it: open / on the preview. A first tile whose app has no picture shows its name and the reason in the picture's box. bun test test/look-none.test.ts runs the new tests.
I merged main into the branch and pushed it. I haven't seen the forge's check on the merged head yet.
The conflict was not in the files you listed. The merge only conflicted in src/looks/service.ts. That was the ./backoff.ts import: main added realClock, and my branch added the ./retries.ts import. I kept both, so the import line now has realClock and the clearRetry, noteRetry import is still there. None of the other files you listed conflicted.
- Type check:
tsc --noEmitis clean. - Look and retry tests: I ran only the tests with "look" or "retr" in their names. 287 passed, 14 were skipped and 1 failed. The failure is
looks.test.ts"a real capture through the grant door, with /usr/bin/chromium". It needs a real Chromium, which the sandbox doesn't have. - Not run: I didn't run the full suite or the tests for the other merged areas, so the forge's check covers those.
- Gate output:
gate.ts --fixprinted some "one implementation?" similarity notes aboutsrc/looks/retries.ts. I changed nothing for them.
A card with no picture now says why, in the picture's box, on the home and looks pages. This push fixes the check that failed three times: "no process-wide state that requests write to".
What changed
- Cause of the failure:
src/looks/retries.tskept the backoff's next-try times in a module-levelMap. - The fix: those times are now held per
Appin aWeakMap<App, Map>, the same patternappsRuntimeuses.noteRetry,clearRetryandretryAttake theapp, and the callers insrc/looks/service.ts,src/web/pages/looks.tsandsrc/actions/front.tspass it. - Reasons shown: "taking a picture", "not serving", "failed under load; retrying at HH:MM UTC", and "pictures are the writers' on this private app". The text comes from
src/looks/why.ts. - No reason: the card shows the app's name on a calm ground, with no
<img>and no question mark. The card keeps the picture's size, so nothing shifts when a picture arrives. - Tests:
test/look-none.test.tscovers each reason, the escaping of name and reason, and the retry held per app.
What I left out
- Retry times are lost on restart. The next failure notes them again.
- Times are shown in UTC, so every viewer sees the same page.
Checks
bun x tsc --noEmitandbun scripts/design-lint.tspass. Inscripts/gate.ts --explainevery rule is ok, and the look-pages rule is met by an existing commit line.- The look tests pass except
test/looks.test.ts"a real capture through the grant door, with /usr/bin/chromium". It could not take a capture in this sandbox, so I did not run it here. - I did not run the full suite; the forge runs it on push.
Try it
- Open
/and/looksfor an app with no picture. - Check that the reason line shows, and that the card is the same size once a picture lands.
[
{"go": "/", "look": "an app card with no picture", "expect": "one reason line or the app's name on a calm ground; no broken image, no question mark"},
{"go": "/looks", "look": "the same app", "expect": "the same reason, in the picture's box, with no layout shift"}
]This is an informational note from the gate, not a failure, and I changed nothing in response to it. The gate classifies the pull as named: a commit already says Looks: /, and / is a page in app.looks. So the forge pictures / for the changes to src/web/look_none.ts, src/web/pages/looks.ts and src/web/studio/home.ts. No push was needed, so I didn't re-run the tests or type check.
What the pull does
- A card with no picture now says why, in words, and never shows a question mark.
src/web/look_none.tsholds the reason text. It is rendered on the looks page (src/web/pages/looks.ts) and on the studio home (src/web/studio/home.ts). - The retry times for these cards are held per app. They are no longer in a module-level
Map.
What to look at
- The preview of
/, in light and dark. Find a card with no picture and check that it gives a reason and has no?.
What I left out
- Nothing new in this round.
I fixed the failing first-view budget test and pushed. I didn't run the whole suite, only the tests that cover this change. The tests I ran pass, tsc and design-lint are clean, and the forge will run the full check on this push.
Cause. The no-picture card on a repository's front page added one text block and one word to that page. That put it at 19 blocks against a budget of 18, in test/attention.test.ts and test/attention-stamped.test.ts. That page passes at the merge base, which has 18 blocks.
Fix. noPicture now leaves the app name out when it is given an empty name. The repository page passes an empty name because the page already names the repository, so there the card holds only the reason. The studio tile still passes the name, so it is unchanged. I also made the card's wrapper and name spans, which didn't change the count by themselves.
The other two failures. "A review run past its budget is queued again once" and "the memory sampler logs what the jobs allocated" passed when I ran test/crew-review-budget.test.ts and test/job-alloc.test.ts. I didn't investigate them further. Your check log shows the two attention tests green on main, which supports the budget overrun being this pull's.
For review. I didn't raise the budget, because the budget file is only meant to go down. On a repository's page, a card with no picture and no known reason now renders an empty box. If you'd rather show a name or a fixed phrase there, the budget would need to go up by one block.
I addressed the look-pages note by adding an empty commit whose line is Looks: /, and pushed it. / is already one of the app.looks pages in forge.json.
The gate's note said it already saw a commit naming /, so it may have been informational only. I didn't change any code, and I didn't re-run the tests or type check, because nothing but the commit message changed.
The gate also reports one comment over 100 columns, in src/actions/front.ts. I didn't touch that file in this pull, and the gate says the nightly rewrap handles it on main.
A card with no picture now says why, in one line, and never draws a question mark. It does this on the home page's tiles and on a repository's "now" card, and now in the terminal too. The gate passes (0 fail), bun x tsc --noEmit is clean, and bun scripts/design-lint.ts is clean. These tests pass: look-none, tui-front, front, unused-exports and mcp-size. I ran those directly because scripts/fast.ts was too broad to name tests.
What changed
- Reasons:
src/looks/why.tsgives one line per case: "taking a picture", "not serving", "failed under load; retrying at HH:MM UTC", or "pictures are the writers' on this private app". With no reason, the card shows only the name. - Retry times: these are held per app in
src/looks/retries.ts, not in a module-levelMap. - Cards:
noPictureinsrc/web/look_none.tsfills the picture's own 8:5 box, so nothing shifts when a picture arrives. It escapes the name and the reason and draws no image. On a repository's page it holds the reason alone, to stay inside the first-view budget. - Terminal door (new, from the feedback):
GET /api/v1/frontand MCPfront_pagerows now carrywhy, and the terminal front-page row leads its meta with it. The area docdocs/design/areas/look-none.mdand the contract text are updated. - Feedback items:
- Both doors: the terminal change above, with a test in
test/tui-front.test.ts. - No
as never:test/look-none.test.tsuses a realcreateAppinstead of{} as App. - Issue number: the commit line names #16257.
- Dead code:
test/unused-exports.test.tspasses.
- Both doors: the terminal change above, with a test in
- Look pages: the new commit has a
Looks: /line, so the look rule's note stays satisfied.
What I left out
- On the front page, only a first pin can show the no-picture card. Other apps without a picture wait for one, as before.
- Retry times are not kept across a restart. The next failure notes them again.
To try it
- Pin an app with no picture first on the front page. Its card and the terminal's "Front page" row both read "taking a picture", or whichever reason applies.
A card with no picture now always shows something true: the reason when the forge has one, otherwise the app's name. It never shows an empty box, an image or a question mark. The gate passes (0 fail), tsc is clean, and the look-none, tui-front, front and unused-exports tests pass. I did not look at the preview, so the dark-theme check below is from the CSS, not from a screenshot.
What changed
- Blank slot fixed: the repository page's card (
lookNow) now passes the app's name, so with no reason it shows the name and not an empty.look-nonebox. The whitespace-only line is gone. I did not change the block count and did not need to. - "Taking a picture" removed: the forge cannot tell whether a capture is queued or running. After the backoff gives up, or after a restart loses the retry time, an up app with no error would still have said it, which is false.
whyNoPicturenow returns only what it knows: "not serving", "failed under load; retrying at HH:MM UTC", or "pictures are the writers' on this private app". The terminal row follows the same data. - Tests that render the cards (in
test/front.test.ts):- A pinned app with no picture renders a named card with no
<img>and no reason. After a failed look is recorded, that card says "not serving". lookNowfor a private app shows the writers' line to a stranger. For an open app with no reason it shows the name alone.- The terminal front-page test now uses a recorded failed look and expects "not serving".
- Cast in the
lookNowtest: it builds its context withas unknown as Ctx, the same casttest/sealed-preview.test.tsuses. The earlieras neveris gone from my tests.
- A pinned app with no picture renders a named card with no
- Calm ground:
.look-nonehas nobackgroundof its own, but it carries the.lookclass..looksetsbackground: var(--muted), which the theme variable switches for light and dark.
What I left out
- There is no "a picture is on its way" line. Adding one needs a real queued or running signal from the looks service.
- Only a first pin can show the no-picture card on the home page. Other apps without a picture still wait for one, as before.
Nothing in the feedback needed a code change. The gate holds this branch to every rule it listed, and each is already met, so I pushed nothing new.
- Look pages: the note is satisfied. Commit
e6ede5f6ccarriesLooks: /, and so do the two later commits. - Both doors: the terminal's front screen (
src/tui/screens/front.ts) shows the same reason as the page, andsrc/actions/front.tsand the/api/v1/frontcontract carry it.test/tui-front.test.tscovers that. as never: the tests added on this branch contain none.- Issue number: each commit subject names
(#16257), except theLooks: /commit, whose body names it. - Dead exports:
test/unused-exports.test.tsandtest/hollow.test.tspass. - Also run:
bun scripts/gate.ts --fix(no rewrap to commit),bun x tsc --noEmit(clean), andtest/front.test.ts,test/look-none.test.tsandtest/tui-front.test.ts(32 pass).
What the pull does: a card with no picture says why and never shows a question mark. When no reason is known, it holds the app's name and does not claim a picture is being taken. The web page and the terminal front page show the same reason.
Not run: the full suite. The change reaches too many test files to name, so the forge's check runs it.
To try it: open / on the preview, https://lab--16794--forge-trevato-apps.open-platform.sh. Find a card with no picture; it shows the reason or the app's name, never ?.
[
{"go": "/", "look": "a card with no picture", "expect": "it shows the reason, or the app's name when there is none, and no question mark"},
{"go": "/", "look": "any card whose picture is not yet taken", "expect": "no text claims a picture is being taken"}
]
🤖 Generated with Claude Code
Left #16257 open: 1 unticked item remain (An app card on the home (src/web/studio/home.ts) and on the looks page (src/web/pages/looks.ts) with no picture shows the one-line reason the forge has: "taking a picture", "not serving", "failed under load; retrying at HH:MM" (from the backoff's next try), or "pictures are the writers' on this private app".).
A card with no picture now fills the picture's own box with the app's name and, when the forge has a reason, one line saying why. It never draws an image or a question mark. I haven't run the full suite. The six test files I ran pass,
tsc --noEmitis clean, anddesign-lintandgate --explainreport nothing outstanding.What changed
src/looks/why.tsturns what the forge knows into one line. The four lines are "taking a picture", "not serving", "failed under load; retrying at HH:MM UTC" and "pictures are the writers' on this private app". With no reason there is no line and the card shows the name alone.src/looks/retries.tswhen a look fails, and clears it on success or give-up. It lives in process memory and is gone on restart.src/actions/front.tsgives each front entry awhy, andtile()insrc/web/studio/home.tsusesnoPicturewhen there is no picture.lookNowinsrc/web/pages/looks.tsshows the same card where it used to render nothing.noPictureinsrc/web/look_none.tsrenders it with the name and reason escaped..look-nonehas the thumb's 8:5 box, so nothing shifts when a picture arrives. The new classes are named indocs/design/areas/look-none.md.test/look-none.test.tscovers each reason, "no reason, no line", the retry being read until due, and escaping of both the name and the reason.Decisions and limits
NOT_SERVINGfrom the looks service, the existing.lookframe, andlookNow's fetch rule.lookCardon the pull page already says why a picture is missing, so I left it.lookNowis the app card inlooks.ts.No door:, because a picture slot has no terminal form.gatesuggestedretries.tsmight duplicaterememberandrelayWait. They are different things, and the hint is advisory.Try it: open
/on the preview. A first tile whose app has no picture shows its name and the reason in the picture's box.bun test test/look-none.test.tsruns the new tests.Closes #16257