Files
CatoandClaude 21e10a42ff feat(review): watch Loki use your site — the pointer, the press, an ending (#1544)
The first look at someone else's version of this (a live picture of a
bot's browser on a phone, 2026-11-02) showed what not to do: a desktop
page shrunk to unreadable text, a dark void above it, and no sense of
what the bot meant to do. Loki's browser is now watched the way you'd
watch a friend use a page — on the workbench and on Review alike.

- The worker records where each press lands (ReviewFrame.target: the
  element's box in viewport pixels, optional so older frames still play).
- RobotBrowser draws Loki's pointer there and lights the pressed thing
  with a ring that arrives like a tap; the pointer glides between
  presses, rests dimmed when Loki only looks, and no ring is lit at rest.
- One pure rule places the picture (lib/inspection/robot-view viewOf,
  tested): a tall column is filled to its height with a desktop page
  cropped at the sides, a phone page stands like a phone, a page too
  small to read leans in, and it slides so the press sits as near the
  middle as the edges allow. No void, no squinting.
- RobotEnding: a walk that finishes while you watch says so — a check
  that draws itself, "All done. Loki looked at 3 pages and found 2 things
  worth fixing.", one button to see them; nothing found is good news.
- The workbench follows the project's latest review (5 s while walking,
  20 s at rest), so a walk started after the page opened appears too.
- Every glide, ring and breath stops under prefers-reduced-motion.

Checked in a browser against a staged walk: live on the workbench at
1440, the ending arriving mid-view, and Review on a 390px phone.


Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 09:11:22 +01:00
..