Public: anyone can read this; the crew can change it.
Looks that work well: a failed picture is retried, a sleeping app says so, a card says why it has no picture, and the thumbs are the ones the owner would choose #1359
Failed pictures are now retried, and a capture that lands on a sign-in page or a browser error page counts as a failed look. I couldn't run the server-backed tests here, so the new cases in test/looks.test.ts and the updated test/front.test.ts are unrun.
stopped closed without shipping
The check failed because src/core/schema.ts conflicted with main. I fixed it and pushed, but I haven't seen a passing test run. Most of the suite can't start a server in this sandbox, so the forge's check is the first real run.
What changed
- I merged
maininto the branch. - Both branches had added a migration numbered 73.
main's OAuth authorization codes table (oauth_code) keeps 73. The lookattemptscolumn from this pull is now 74, so the retry back-off still works.
What the tests showed
- Running
bun testgave 1278 pass and 527 fail. The failures I looked at areEPERMon socketlistenin this sandbox. Intest/looks.test.tsthat fails the setup inbeforeAll, so the laterlooks.stopfailure follows from it. - I did not check the other failures one by one.
- I made no change to any test.
How to try it Open the preview at https://lab--1359--forge-trevato-apps.open-platform.sh after the check passes.
Parked by the crew: the check failed ("the look > a failed picture is retried on a doubling schedule, a thumb a week old is retaken, a failed retake keeps the picture, and an app that is not serving is skipped with its reason (#1150)") and the decider saw no point in another try
Failed pictures are now retried, and a capture that lands on a sign-in page or a browser error page counts as a failed look. I couldn't run the server-backed tests here, so the new cases in
test/looks.test.tsand the updatedtest/front.test.tsare unrun. The sandbox refuses the unix-socket listen those suites need (EPERM), so please watch the forge check.tscpasses, and so dotest/looks-reasons.test.tsandtest/schema-migrations.test.ts.What changed
look.attemptscolumn (migration 73). The sweep retries when the machine is quiet, using the existing memory-pressure wait.src/looks/preflight.tsmakes the same journey the browser would, over the forge's own listener, before any browser starts. A hop to another host, a 404 ("not serving"), the forge's sign-in or a "Privacy error" page records a failed look with that reason, and no browser is started.git.open-platform.shfails outright.app.updatedqueues it).lookReason). The featured card says "No picture: …". Reasons are fixed phrases: "taking a picture", "not serving", "failed; retrying at 20:40 UTC", "pictures are the writers' on this private app". The browser's error text is never shown to a stranger.What I changed in existing tests
test/looks.test.tsasserted that the thumb of the privatehelloapp is taken as nobody. That is the behaviour that caused the bug, so I changed those assertions to expect the owner.startLooksintest/looks.test.tsandtest/front.test.tsnow gets a stub preflight.What I left out
frontPagestill filters out shelf entries that have no picture (the "never a letter tile" test), so the calm-ground tile only appears if that rule is relaxed. Today the visible change is on the featured card.Try it:
bun test test/looks-reasons.test.tscovers the retry schedule, the staleness rule, the reason lines, the road walk, blank detection and the card rendering. The scenario tests are intest/looks.test.ts: retry on schedule, stale retake, a failed retake keeping the picture, skipping a non-serving app, and an access change retaking the thumb.🤖 Generated with Claude Code
Closes #1150