mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-06 02:38:14 +01:00
The owner walked Petvity for 43 seconds on 2026-10-18 — the home page, Features, the dashboard, Settings — saying the design was inconsistent and asking Loki to look at it all and say what it thought, then asked whether Loki had heard them at all. It had, and it had watched: every page and part was noted. But the card was every word verbatim under each part of the page, including "No, no, I'm just making a coffee", said twice to someone in the room; it led with Save and Fix it now for what was a question; it sat under three "Loki noticed" cards, one of them repeating the same finding; and replaying the walk showed every sentence filed one page early. Loki reads it first (widget/walk-read.ts, POST /api/widget/understand, guarded like /api/widget/advise): - The card says what it heard: "Loki heard you · 0:43 across 4 pages". - The box leads with the ask, editable; what was not meant for Loki is named as "Left out"; the words as spoken stay under "Word for word" with "Use my exact words instead". Whatever is saved, the words as spoken still travel with it in each moment's `said`. - A question leads with Ask Loki, answered about every page of the walk (the walk is sent as the review session); a change leads with Save (owner, then Fix it now) or Save feedback (visitor). - Nothing waits on the read: while it comes and when it fails, the card is the words as spoken with the buttons as before; words edited before it arrives are never replaced. - The card is brought into view from its top when it appears and when the read redraws it, without throwing the phone keyboard up again. Walk alignment: a page change is noted the moment the address changes (a site's own links change it without an event; polled every 250 ms while recording, popstate too). It used to wait for scrolling to settle, so the first words on each new page landed under the page before. A site-wide finding (the page's language) is said on the first page of a visit, not on every page (onceSiteWide in watch-trail.ts). Tests: widget-walk-read (rules, prompt, wiring), widget-walk-read-browser (the owner's walk replayed at 390 and 320: question, change, and words edited before the read), widget-browse-voice-browser updated for the new header and the read-fails path. Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67 Co-authored-by: Claude <noreply@anthropic.com>