Files
loki/docs
CatoandClaude Opus 5.5 1d2523625c feat(widget): feedback back in front; Loki speaks up when something is wrong; Stop watching is one tap (#1099)
After #1092 feedback was hidden (Send to builder only appeared after asking
Loki), the page / whole site / element choice had become a toggle chip,
stopping Watch was only "Pause" on the top bar, and Loki only counted what
it saw.

- About: This page / Whole site / An element is one segmented control again,
  and the composer has Send as feedback (straight to the confirmation, no AI)
  beside Ask Loki.
- Watch speaks up: every notice (failed request, slow answer, the site's
  console error, slow load, a freeze after a tap, content jumping), every
  automatic fix, and the page checks after each page settles become a "Loki
  noticed" message in the conversation, in plain words naming the tap that
  led there, with Fix this (the request written out) and Why does it matter
  (asks the advisor with the session). Rule-based (explainNotice /
  explainChecks) - no background model call - and said once per visit.
- The bar says what Loki noticed, with Show (open the conversation) and
  Stop watching / Watch again; the header has Review + Stop watching, or
  Watch again. Stopped, nothing is recorded and nothing is said.

Tests: widget-watch 12 cases (explainers), widget-thread (noticed restore),
widget-watch-browser 50/50 (remark in words + Fix this, no repeat after
reload, header Stop watching records and says nothing - fails with the
guard removed), widget-embed-browser 47/47 (element feedback straight to
the builder, no AI call).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 09:35:00 -07:00
..