Files
loki/docs
CatoandClaude Fable 5.1 87e4fec420 feat(widget): walk and talk — what was seen per moment, taps by their label, takes that chain, pictures Loki takes afterwards (#1239)
* feat(widget): walk and talk — what was seen per moment, taps by their label, takes that chain, pictures Loki takes afterwards

The owner (2026-10-17): "I can scroll through the site and click different
things while recording an audio … and as I comment, automatically the
screenshots or whatever else needs to be taken, so the changes will be made
in the most effective way possible."

A page cannot film itself on a phone without a permission prompt, so the
widget still takes no pictures. What it now takes, honestly, at the start,
when scrolling settles, on every tap on the site and on Mark: the part of
the page in view, the text at the reading line, how far the page is
scrolled, and the control that was tapped — by its own label (aria-label,
alt, title, text; a field by its label or placeholder), never by what was
typed into it. Whisper's timings put each sentence under the part that was
in view when it was said, as before; beside the note now travels the
structured list of moments (widget/moments-contract.ts: said → seen,
clamped on both sides, scripts/test/widget-server-caps-mirror.ts holds
them together).

- A walk is no longer one take: at the upload cap the recorder hands
  straight into the next take (the microphone stays granted), the clock
  keeps counting from the start of the walk, and Done joins the takes on
  one clock (joinTakes). Up to ten takes, about eighteen minutes.
- Ingest validates and stores the moments (site_feedback.moments,
  migration 0108); the fix prompt renders them as a fenced WALK, one line
  per moment, so the agent knows what "this button" was.
- The owner's row lists the walk (components/feedback/MomentsWalk) and a
  tap on "See what they saw" has Loki open that very view on the server —
  the page, scrolled to the tapped control or to the same scroll — and
  take the picture (/api/feedback/[id]/moment/[n] over page-picture.ts,
  which now takes a scroll position). The decision card says "4 parts of
  the page · tapped 2 things" so the owner knows a walk is behind it.

Checked in real Chromium: a click on the host's own button while
recording becomes a moment with that button's label and selector, Mark
marks the part in view, the scroll is kept, the password field's value
never travels; the owner and visitor flows at 320 and 390px pass as
before.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67

* chore(drizzle): regenerate the moments migration as 0109 on top of #1238

#1238 landed its own 0108 (site_feedback.read) first, so the moments
column moves to 0109 and its snapshot is generated from main's.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-17 14:39:14 +02:00
..