With `transcribe`/`transcribeUrl` and no `prefer`, a press used to start on
the browser recogniser, which on Android ends the take at the first pause
whatever `continuous` says. OrangeCat's bot chats passed no `prefer`, so a
person speaking to Causius was cut off after one or two seconds while the
Cat's composer in the same app (`prefer: "server"`) listened to the end.
- New default: server first whenever there is a server leg; browser first
only without one, or with an explicit `prefer: "browser"`.
- `dictationLeg()` is the rule, pure and tested; `start()` uses it.
- Browser test: the take outlasts a 5.5 s pause; the Android recogniser test
asks for the browser leg through the demo's `?prefer=browser`.
- browser-scroll.mjs: read the file before writing the head, so a 404 no
longer crashes the run with "headers already sent" (failed on main too).
- 0.22.0.
Claude-Session: https://claude.ai/code/session_019MDtmsZNxP7CFqQUe4uV3t
Co-authored-by: Claude <noreply@anthropic.com>
* fix(replies): a bare reply array with no fence is still the replies
extractReplies took the replies only from the fenced block the
instruction asks for. A model that forgets the fence and ends its answer
on the bare JSON array (Causius in OrangeCat\x27s companions home,
2026-10-30) showed that array as text in the bubble. A complete array of
two to six short strings as the last paragraph is now read as the
replies and taken out, once the answer is complete; while streaming it is
left alone, and an array inside an answer is never touched. 0.21.3.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* fix(sheet): a sheet taller than the screen stays on it and scrolls
Sheet had no height cap (the native dialog cap is overridden so a bottom
sheet can reach the edge), so a panel taller than the viewport grew past
the top of the screen: OrangeCat's New bot sheet, a shelf of five bots over
the name, shape and colour form, opened with its title, close button and
first row cut off on a phone and on a 900px desktop (2026-10-31).
The dialog and its panel are capped at the viewport and the panel scrolls,
head in view, page behind it still. The browser test makes a sheet 3,000px
tall and measures it. 0.21.5.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
* chore(styles): regenerate the embedded chat stylesheet for 0.21.5
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
---------
Co-authored-by: Claude <noreply@anthropic.com>
Citation handles were read only as [F1] and [D1], so Solon's law answers
([L1]) and Substrata's web sources ([W12]) showed the bare handle with no chip,
link or sources row. A handle is now one or two capital letters and a number,
the pattern speakableText already used. With no citation map the answer is
not grounded and [A1] is shown as written; in a grounded answer an unknown
handle is still dropped. 0.21.4.
Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC
Co-authored-by: Claude <noreply@anthropic.com>
extractReplies took the replies only from the fenced block the
instruction asks for. A model that forgets the fence and ends its answer
on the bare JSON array (Causius in OrangeCat\x27s companions home,
2026-10-30) showed that array as text in the bubble. A complete array of
two to six short strings as the last paragraph is now read as the
replies and taken out, once the answer is complete; while streaming it is
left alone, and an array inside an answer is never touched. 0.21.3.
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
Co-authored-by: Claude <noreply@anthropic.com>
Problem: every entry from 0.19 to 0.21.1 sat under an 'Unreleased' heading although all of them are published, and 0.21.0 had no entry. Change: each release has its own version heading; 0.21.0's entry is written from its commit message (bitbaum/chatkit#48).
ChatScreen wrapped the footnote in a <p>. Substrata puts a key panel, a paragraph and a form in it; browsers close the <p> while parsing the server HTML, React hydrates a different tree and throws error #418 on /chat. Reproduced in a Substrata dev build (In HTML, <p> cannot be a descendant of <p>) and confirmed gone with a div. Class and styles unchanged.
The composer and ChatApp read images and text and refuse every other file, so
an app that reads PDFs (@bitbaum/chatkit/pdf) could not use the paperclip,
paste, drop or ChatAppHandle.send for them without a bridge. attach.readFile
(file, { limits, notes, images, room, progress }) returns the attachments to
stage (one file may become several), a note, or undefined to leave the file to
chatkit. Files are now read one at a time so images/room count the file
before. readAttachmentFiles is the same for code outside the box.
Found moving OrangeCat's Cat onto ChatApp: its PDF reading (live since
2026-10-27) had no place to plug in.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude <noreply@anthropic.com>
An empty `accept` means "anything", and Brave on Android answered the Files
input with Camera, Camera, Recorder and "Photos & Videos" — no file browser,
so a PDF could not be picked at all (OrangeCat, 2026-10-27, from a phone).
Files now asks for PDF and text only (FILES_ACCEPT, one "document" family),
which takes every capture app off the table; the type is still decided
after the pick. Release 0.20.1.
Claude-Session: https://claude.ai/code/session_019MDtmt7KKvAA6LzcgFqXA3
Co-authored-by: Claude <noreply@anthropic.com>
* feat(pdf): read a PDF someone attaches, as text or as pictures of its pages
No model on a free chain reads a PDF file, so a PDF never leaves the device
as one. @bitbaum/chatkit/pdf reads it in the browser with pdf.js:
- a PDF with a text layer comes back as text, page markers kept;
- one without (slides exported as pictures, a scan) comes back as its pages,
four to a sheet at 784px a page, for a model that can see.
chatkit-copy-pdf-assets copies pdf.js's worker and decoders into the app's
static folder; readPdf takes their URL. Without the decoders, JPEG 2000
pages (macOS's "reduce file size" export) draw blank. The legacy build is
used so older iPhones read PDFs too; pdf.js loads only on the first PDF.
Found on OrangeCat 2026-10-27: a 17-slide investor deck (no text layer,
JPEG 2000 images) could not be shared with the Cat at all. Checked in
Chromium against that deck: 5 sheets, every slide legible.
Release 0.20.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmt7KKvAA6LzcgFqXA3
* docs(pdf): describe the app's static folder without naming it as a chatkit path; chain the copy into build (pnpm skips prebuild)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmt7KKvAA6LzcgFqXA3
---------
Co-authored-by: Claude <noreply@anthropic.com>
The first four products to move onto ChatApp (heidi#226, orangecat#1447,
solon#309, substrata#262) each listed what it could not do and wrote a
workaround. This closes those gaps, additively:
- ChatApp ref (ChatAppHandle: send, fill, focus, newChat, openConversation),
initialMessage (once, StrictMode-safe) and deepLinkParam (fills, never
sends unless deepLinkAutoSend)
- Retry re-sends the failed turn's pictures
- ChatTurnError: the failure reason travels with its own turn
- stopKeepsPartial, per ChatApp and per turn
- starters with lang, historySlot/historyEmpty, attachExtras rows in the
attach sheet, chips on the sent message (chipsFor), onTemporaryEnd with
turn.chatId, renderFooter(m, { isLatest, index, send, fill }), thread.after
- the live Stop button is a 44px target
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude <noreply@anthropic.com>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
* docs: the fleet's chats side by side
Every product renders chatkit's Composer, most render ChatScreen and
ChatThread, but the app around them — chat list, New chat, Temporary chat,
titles, rename/delete, restore on reload, the queue, attachment defaults —
is written again in each product. One table, read from each repo's main
on 2026-10-27, with the file each cell comes from.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* feat(app): ChatApp, the whole chat app every product shares
The pieces were shared; the app was not. ChatApp composes ChatScreen,
Composer and ChatThread and owns what each product re-implemented:
- the header (Chats · title · New chat · More with Temporary chat, Share,
Rename, Delete) as frosted pills, with headerStart/headerEnd slots;
- the chat list: a <dialog> drawer on a phone (Escape, focus trap and
restore from the browser; opens on its close button, not the search
box), a rail when wide; search, Today/Yesterday/Earlier, one row
anatomy (title, date, one "…" → Rename · Delete as equal cells);
- New chat; Temporary chat that writes nothing and ends on leaving;
- titles from the first message (Heidi's rule) or makeTitle();
- the open chat restored on reload (or driven by conversationId);
- turns per conversation that keep running in the background, Stop that
keeps what arrived, Retry on a failure, a queue behind a running answer;
- attachments on by default, staged above the text, shown in the turn.
Storage is an adapter: ConversationStore (list/get/create/append/rename/
remove) with localConversationStore (versioned, never throws, quota drops
the oldest) and httpConversationStore (Heidi's REST shape,
serverWritesTurns for routes that store turns themselves). The product
supplies the transport and its words.
Additive: ChatScreen, Composer and ChatThread behave as before;
ChatMessageData gains optional attachments and Composer an optional
stagedPosition. Unit tests cover grouping, titles, search, dates, restore
and both stores (with storage that throws and a quota); test/browser-app.mjs
drives demo/app.html at 390px and 1440px.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
---------
Co-authored-by: Claude <noreply@anthropic.com>
* fix(scroll): preserve reading in page and nested conversations
* fix(scroll): distinguish reading gestures from layout-driven scrolling
* fix(ci): reuse the actual browser revision through release verification
0.16.0 let Markdown take alertLabels, but products render answers
through ChatThread, which did not pass them on: a German product would
have shown 'Caution' over 'Versuchen Sie nicht…'. ThreadLabels gains an
optional alerts map, passed to both the settled and the streaming answer.
Optional, so no product's labels object stops compiling.
Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH
Co-authored-by: Claude <noreply@anthropic.com>
The Release workflow runs verify, which includes the browser tests, and
failed with Playwright's 'executable doesn't exist' (2026-10-26, cutting
0.16.0). The fleet template (templates/package) already has this step and
accountkit ported it in its #25; this copy predated it. Now identical to
the template.
Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH
Co-authored-by: Claude <noreply@anthropic.com>
A model writing GitHub's '> [!CAUTION]' got the marker printed inside a
grey quote (causius, 2026-10-26). The five GitHub callouts (note, tip,
important, warning, caution) now parse to an 'alert' block, quoted or
bare, and render as one panel with the word above it; Markdown takes
alertLabels for the product's language. Only warning and caution take a
status colour, on the rule and the word.
A table whose header row was lost upstream opened on its rule and printed
as '| :--- | :--- |' prose (substrata, same day). The rule now opens a
table with no head, and rows render as many cells as the widest row.
Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH
Co-authored-by: Claude <noreply@anthropic.com>
Files from bitbaum/fleet `templates/package` that this repository does not have yet:
- `.github/workflows/release-notify.yml`
Only missing files are added — no file this repository already has is changed. `release.yml` is what lets the package owner release a new version from Loki (the package page: "Release vX.Y.Z"), or from the Actions tab.
Opened by bitbaum/fleet `scripts/packages/sync-package-template.mjs` (`.github/workflows/package-repos.yml`). It merges itself when this repository's CI is green.
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
Files from bitbaum/fleet `templates/package` that this repository does not have yet:
- `CLAUDE.md`
Only missing files are added — no file this repository already has is changed. `release.yml` is what lets the package owner release a new version from Loki (the package page: "Release vX.Y.Z"), or from the Actions tab.
Opened by bitbaum/fleet `scripts/packages/sync-package-template.mjs` (`.github/workflows/package-repos.yml`). It merges itself when this repository's CI is green.
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
Files from bitbaum/fleet `templates/package` that this repository does not have yet:
- `.github/dependabot.yml`
- `.github/workflows/git-release.yml`
- `.github/workflows/release.yml`
Only missing files are added — no file this repository already has is changed. `release.yml` is what lets the package owner release a new version from Loki (the package page: "Release vX.Y.Z"), or from the Actions tab.
Opened by bitbaum/fleet `scripts/packages/sync-package-template.mjs` (`.github/workflows/package-repos.yml`). It merges itself when this repository's CI is green.
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
Android's Chrome-family recognisers (Chrome, Brave, Samsung Internet), with
continuous + interimResults, report one utterance CUMULATIVELY: "why",
"why exactly", "why exactly is", ... - either one result re-reported with
resultIndex 0 on every event, or a new result per event at the next index -
and often every one flagged isFinal. Both the browser leg (listen) and the
preview beside a server recording (startPreview) pushed every final from
resultIndex onwards into an array kept across events, so Substrata's Ask box
on Brave/Android typed the sentence once per word: "why why exactly why
exactly is ...". Desktop Chrome reports stable finals at rising indices, so
it never showed.
heardFromResults (core, pure) now rebuilds the transcript from the WHOLE
results list on every event and collapses a growing chain to its last link:
a result that begins with the previous one's words and adds more replaces it;
once a list has shown that growth, a late shorter/identical re-report is
dropped and a near-identical revision ("is is so" -> "is it so hard")
replaces too. Only the tail may be interim; ending mid-revision delivers the
settled words. Both hooks call it; nothing accumulates between events.
Desktop behaviour is unchanged: different phrases stay, and a word repeated
as separate results ("no", "no", "no") stays repeated. Documented limitation:
"no" then "no no" as two separate results reads as one growing utterance.
Unit fixtures in test/dictation.test.js; test/browser.mjs drives the real
composer with a fake cumulative recogniser (fails on the old hook with the
owner's exact stutter). Released as 0.15.2.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude <noreply@anthropic.com>
Models end answers with their own "**Quick follow-up options**" (or
"Suggested replies", "Mögliche Rückfragen:", ...) right above the
quick_replies block; drawn over chatkit's buttons it reads as an empty
section (live on substrata.orangecat.ch).
- extractReplies drops the last block before the replies when it is a
heading or a bold/italic-only line of at most six words with no sentence
punctuation but a closing colon, plus an adjacent --- rule. Shape and
position, no word list, so every language. A bold sentence stays.
- Streaming ({ streaming: true }, passed by ChatThread) holds back a last
line that could still become such a label, so it never flashes.
- dropReplyLabel is exported; ChatThread applies it to app-supplied replies.
- REPLIES_INSTRUCTION: no heading or label before the block.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude <noreply@anthropic.com>
"Who produces gallium?" now carries a ranked bar chart, not a list. chatkit
stays dependency-free: it defines the data contract (`ChartBlock`, mirroring
@bitbaum/chartkit's props for line, bars, share, timeline, tiles) and a
renderer slot (`renderers={{ chart }}` on ChatScreen, ChatThread, ChatMessage,
Markdown and RichAnswerBlock); the app injects the drawing.
- Parser: each kind validated field by field (bounded lists, finite numbers,
safe links). A malformed block is rejected by the parser and degrades to
its caption and a table of the safe rows; without a renderer, or when one
returns null, chatkit draws that table itself. A chart is never a blank.
- Instruction: when to draw (ranked 3+ rows -> bars, shares -> share, 3+
points over time -> line, 3+ dated events -> timeline, 2-4 figures ->
tiles), figures only from tool results, hrefs copied from the result.
- Copy and Listen read the figures as lines, never the wire JSON.
- Tests: node tests per kind, the fallback and the renderer paths; the
browser test renders a bars block through a stub renderer and a line block
through the fallback in demo/screen.html at 320/390/1280, with the
broken-word scan and no horizontal overflow.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* feat(feedback): thumbs under every answer, and the chat-review contract (0.14.0)
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.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* fix(thread): the "Thought for" summary is a 44px target on a phone
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* fix(table): words are never cut — tables and stack tiles keep every word whole (0.14.1)
Substrata's answer table at 390px read "Te / rm" and "Di / re / ct / or / y"
(2026-10-22): .ck-md sets overflow-wrap: anywhere so a long URL cannot push
the thread wider, but `anywhere` also lowers a table cell's minimum width to
one letter, so a three-column table squeezed its first column to nothing.
- Tables: overflow-wrap normal inside the table, so a word is the smallest a
column can be; columns share the width by wrapping at spaces; when even
the words do not fit the wrapper scrolls, with a shadow on the edge that
has more.
- Stack figure: tiles are a wrapping flex row that asks for its share of the
width but never less than its longest word, so "three across" becomes "two
and one" on a narrow screen instead of cutting "Manufacture" (320px).
- test/browser.mjs: every word of every answer is measured in a Range at 320,
390 and 1280px and must sit on one line. The demo carries the table from
the screenshot; the check fails on the old stylesheet (Term, Directory,
Finding, Humans, Engineers, specialists, Manufacture).
- The "thumb down asks why" check measured a button mid-way through the sheet's
opening animation (43.9px); it now waits for the animations to finish.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* feat(audit): findBrokenWords, exported for every product's browser checks
The check that caught "Te / rm" and "Di / re / ct / or / y" is now
@bitbaum/chatkit/audit: findBrokenWords(root) lays every word out in a Range
and reports any drawn across two lines, and BROKEN_WORDS_SOURCE is its source
for page.evaluate. The browser test uses the exported function over the whole
page and proves it can fail (a squeezed word is reported, a wrapped sentence
is not).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* chore(release): 0.14.2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
---------
Co-authored-by: Claude <noreply@anthropic.com>
* feat(feedback): thumbs under every answer, and the chat-review contract (0.14.0)
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.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* fix(thread): the "Thought for" summary is a 44px target on a phone
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* fix(table): words are never cut — tables and stack tiles keep every word whole (0.14.1)
Substrata's answer table at 390px read "Te / rm" and "Di / re / ct / or / y"
(2026-10-22): .ck-md sets overflow-wrap: anywhere so a long URL cannot push
the thread wider, but `anywhere` also lowers a table cell's minimum width to
one letter, so a three-column table squeezed its first column to nothing.
- Tables: overflow-wrap normal inside the table, so a word is the smallest a
column can be; columns share the width by wrapping at spaces; when even
the words do not fit the wrapper scrolls, with a shadow on the edge that
has more.
- Stack figure: tiles are a wrapping flex row that asks for its share of the
width but never less than its longest word, so "three across" becomes "two
and one" on a narrow screen instead of cutting "Manufacture" (320px).
- test/browser.mjs: every word of every answer is measured in a Range at 320,
390 and 1280px and must sit on one line. The demo carries the table from
the screenshot; the check fails on the old stylesheet (Term, Directory,
Finding, Humans, Engineers, specialists, Manufacture).
- The "thumb down asks why" check measured a button mid-way through the sheet's
opening animation (43.9px); it now waits for the animations to finish.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
---------
Co-authored-by: Claude <noreply@anthropic.com>
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>
* feat(answers): answers that read like the ChatGPT app's (0.13.0)
Measured screen by screen against the ChatGPT app on a phone, and closed
in the package so every product gets it:
- Headings are signposts: a size up, with air above them, so a long answer
can be scanned and found again.
- Options are cards: a numbered list whose items open with a bold name gets
a tile badge, the name a size up, a hairline between cards, and a pill
for a short tag written right after the name (`[Recommended]`). The
instruction asks the model to mark the option it recommends that way.
- Sources are chips: a `[F2, F1]` handle is drawn after the sentence as
"Fleet AGENTS.md +1", linked when the record has a link, and moved after
the full stop when the model wrote it before.
- Links in the words that leave the site say so: dotted underline, arrow.
- A layered figure, `{"type":"stack"}`: full-width boxes top to bottom, a
row of tiles where a layer has parts (icons from a closed list, never
markup), the words that cross each arrow, an accent tone, a caption.
`diagram` stays for an arbitrary graph.
- "Thought for 3m 38s ›" above an answer from `message.thinking`, closed by
default; `live.steps` shows the same row open while a turn runs, with
the newest step marked. `ThinkingRow` and `formatThinkingDuration` are
exported; `thoughtFor`, `thought`, `thinking` join the thread labels.
Tests: tag and citation placement (core), stack validation and text form
(core), the whole answer rendered on the server (render), and the stack
fitting six tiles on a 390px phone with the thought line above (browser).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* fix(markdown): no space before the full stop when a citation chip moves after it
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
---------
Co-authored-by: Claude <noreply@anthropic.com>
Found while evig's public assistant moved onto chatkit, and fixed here so
every product gets it:
- The Copy · Listen · Share · Retry row sat at 36px while every other
control in the chat is 44, and "Nochmals versuchen" broke across two
lines at 390px. Each action is now a full-size target with its words on
one line; the row wraps between buttons when it must.
- Below 40rem the suggested replies are ONE row that scrolls sideways with
a fade where it runs on, the lead reply first and always on screen —
never a wrapping box of pills that breaks into "two and an orphan"
wherever the words run out. Wider, they still wrap.
- The browser test now counts .ck-action among the controls that must be
44px.
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>
* feat(markdown): answers that read like the ChatGPT app's (0.9.0)
Tables (sideways scroll on a phone, never a broken page), headings with
their level, nested and task lists, rules, web images. A list of named
things — every item opening with a bold lead — renders as cards: a badge
(the number, or the emoji the lead opens with), the name, the body. The
sources an answer cites are listed once under it as chips, from the
citations map; renderCitation lets an app keep its own source sheet.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* feat(markdown): renderSources slot for an app's own sources row
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
---------
Co-authored-by: Claude <noreply@anthropic.com>