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

The front page's picture check stops growing: it keeps only the pictures it shows #866

Merged opened this in answer to

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

Merged

Closes #768

shipped production is serving it for issue #768 — its issue is already done deploy 058b6cf

opened this

Closes #768

What changes. strangersThumb in actions/front.ts remembered, per picture path, whether a thumb was taken as a stranger, and never forgot. Every retaken picture added an entry for the life of the process.

Now the memory is per forge (WeakMap<App, …>) and is pruned on every page: frontPage asks about the paths it shows, then forgets every path it did not ask about. The memory is therefore never larger than the current pictures, however often they are retaken. A picture still on the page is read once, as before.

There is no test-only export (the hollow audit holds).

Test. test/front.test.ts, by behaviour, with a spy on keepLook:

  • a picture already checked is not read again;
  • each of 25 retakes reads its new picture exactly once;
  • showing the first path again reads it afresh, which proves it was forgotten rather than kept forever.

Local runs: front, studio and the cross files give 274 pass. tsc is clean.

🤖 Generated with Claude Code

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs