Skip to content

chore(og): recapture the /lens card after #205's toolbar - #1038

Merged
oddharsh merged 1 commit into
mainfrom
claude/og-lens-recapture
Sep 30, 2026
Merged

oddharsh merged 1 commit into
mainfrom
claude/og-lens-recapture

Conversation

@oddharsh

Copy link
Copy Markdown
Owner

The /lens unfurl card still showed the toolbar from before #205. It was last captured in #173 (2026-07-30); #841 only re-encoded it from PNG to JPEG through zenc.

Before: the Compare mode tab sits first in the mode row, and the machine lenses (Agent-ready?, Raw response, What it claims, ...) run in one strip above all three panes. Verdict reads 13/100.

After: matches production today. The mode row reads Human, Machine, Browser, Delta, Compare. The lens tabs live inside the Machine View pane (Raw response, Reader's guess, What it costs, ...). The Browser Run pane shows the After interaction recipes and the HTTP vs rendered delta. Verdict reads 90/100.

How

The MAINTENANCE.md recipe: prewarm /lens/shot and /lens/browser for stripe.com (both were cold, 10s and 15s), then OG_ONLY=lens bun run og-cards. Only public/og/lens.jpg was rewritten. 154,194 B to 146,463 B.

One generator fix

The first recapture stamped an empty white box where the favicon goes. #346 moved /lens to a root-relative /section-icons/lens.svg, and the card is built with setContent, so there's no base URL to resolve it against. That's the failure the generator's own comment records for the section-icon fallback.

gen-og-cards.ts now inlines a root-relative .svg icon from public/, the same bytes the page serves. data: icons pass through untouched, so no other card changes: the 3 other pages declaring a root-relative icon are section indexes the generator doesn't card.

Checks

  • bun run derive:check: 5 fresh, 0 stale. og/cards is declared unverifiable (it captures production), so there's no lock to move.
  • bun run lint, bun run typecheck: clean.
  • bun run test: 985 pass, 0 fail.

The preset: "#lx-browser-run" in WORKER_PAGES names a button that no longer exists; its count() guard skips it, and Browser Run auto-renders anyway. Left as is.

The /lens card was last captured in #173 (2026-07-30), and #841 only
re-encoded it from PNG to JPEG. So it still showed the pre-#205 toolbar:
the Compare mode tab first, and the machine lenses in a strip above all
three panes. Production has the mode row as Human, Machine, Browser,
Delta, Compare, with the lens tabs inside the Machine View pane.

Recaptured from production with the MAINTENANCE.md recipe: both
Browser-Rendering caches prewarmed, then OG_ONLY=lens bun run og-cards.

The first recapture stamped an empty white box where the favicon goes.
#346 moved /lens's icon to a root-relative /section-icons/lens.svg, and
the card is built with setContent, so the href resolves against nothing.
gen-og-cards.ts now inlines a root-relative .svg icon from public/, the
same bytes the page serves. data: icons pass through untouched, and no
other carded page declares a root-relative icon.
@github-actions

Copy link
Copy Markdown
Contributor

Wire-size diff vs merge base

4ca393266755857e2b9540e9d7fccb2b9108b5c8 → d764355b5ed2784b531273eabf63e3eef0c7dae8

Brotli q11, the quality the edge serves. Every number here is deterministic:
an unchanged file produces no row. Advisory — this check fails on nothing.

Client assets

No change. 31 files, 109.72 KiB Brotli total.

Pages

No change. 70 files, 631.98 KiB Brotli total.

Worker bundle

No change. 262.11 KiB gzip.

Dictionary transport

Family dictionary acquisition: no change, 14.41 KiB q11.

pd/: no change. 203 deltas, 544.14 KiB total.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
aadhar-sh cf23b3d Commit Preview URL

Branch Preview URL
Sep 30 2026, 12:32 PM

@oddharsh
oddharsh merged commit af925a7 into main Sep 30, 2026
7 checks passed
@oddharsh
oddharsh deleted the claude/og-lens-recapture branch September 30, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant