The feedback loop between a chat and the people improving it, as a package:
- Under every answer a thumb up and a thumb down (`onFeedback` on ChatThread,
or `messageId` + `onFeedback` on AnswerActions). A thumb down opens a sheet
that asks why — one tap on a reason from FEEDBACK_REASONS, words optional,
then Send — so the product learns what the person wanted, not only that
it failed. Nothing is sent until they send it. Every label is translatable.
- The nightly judge's contract in core: CHAT_REVIEW_INSTRUCTION, the
ChatTranscript a product exports (turns with the assistant's steps, plus
the thumbs), reviewPrompt(scope, transcript), and parseChatReview reading
the verdicts back strictly (score 1–5, gaps from REVIEW_GAPS — dead_end,
wrong_tool, no_web, misread, vague, no_next_step… — and one concrete fix).
Loki runs the judge and files each gap into its feedback inbox.
- Icon-only actions are a full 44px wide, not only tall.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude <noreply@anthropic.com>
The pieces of the ChatGPT app the owner put beside ours (2026-10-21), done
once here so Loki, OrangeCat and every chat in the fleet get them:
- `AnswerActions`: the row under an answer. Copy; Listen, reading the answer
as prose (`plainTextForSpeech`, from loki) with the browser's voice or the
`speaker` an app passes (loki's studio voice), with a small player — Stop
and the time so far — while it reads; Share through the system sheet
where one exists. `ChatThread` renders it under every answer.
- Sources on a touch screen are ONE "Sources · n" button that opens a sheet
with every record (label, detail, link); chips stay on a mouse. `Sheet`
(the attach sheet's <dialog>, extracted) and `SourcesRow` are exported.
- `AttachMenu` takes `extra` rows under Camera · Photos · Files, and then
opens the sheet on a mouse too — an app's "one of my things" has no file
dialog to live in.
- The replies instruction makes the model lead: 2–4 replies on every answer,
the recommended next step first, drawn as the lead (`ck-reply-lead`).
- An empty box is one row on the narrowest phone: the placeholder is cut at
the edge, never wrapped into a clipped second line.
Browser checks cover the player, the sources sheet on a touch screen and
chips on a mouse, and the one-row placeholder at 320px.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude <noreply@anthropic.com>