* feat(field): DictationField with no state in the app — native forms and react-hook-form (0.44.0)
- Uncontrolled mode: value/onValueChange optional, new defaultValue; the real
text box carries name, so a native form or server action posts typed and
said words, and a form reset restores defaultValue.
- react-hook-form: forwardRef (ref is the text box), onChange(event) for
every change including microphone/Improve/Undo/setText, onBlur(event).
- Browser test drives react-hook-form itself (register, Controller, reset)
and a native form; docs/roadmap.md records the remaining typing gaps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtoej4Vu1mYafzzcLc
* docs(field): say the ref works across the peer React range, not a version
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtoej4Vu1mYafzzcLc
---------
Co-authored-by: Claude <noreply@anthropic.com>
The four steps 0.41 left in the README are done:
- One frame: TypingBox (typing.tsx) draws the voice bar, box, strip, text,
tools row and the take's problem for both. The field's tools row is the
composer's ck-tools, so its paperclip and microphone are bare icons like
the composer's (they were bordered circles). Frame and text share one set
of rules in styles.css; each shape keeps only its differences.
- One text hookup: useTypingText (dictation + appendTranscript +
clipToMaxLength + the latest-text ref).
- One submit-key rule: submitKeyAction in composer.ts, exported.
- Same controls on both: Composer `attachments`; DictationField
`handleRef` (DictationFieldHandle) and `attachExtras`.
Public APIs are additive. All existing tests unchanged; new unit, render
and browser checks (390px, 320px dark, desktop).
Claude-Session: https://claude.ai/code/session_019MDtmv1SAs6YZn4FrewbXR
Co-authored-by: Claude <noreply@anthropic.com>
DictationField takes `attach?: boolean | AttachOptions` and an app-owned
`attachments?: AttachmentsController`: the same paperclip sheet, paste,
drop, staged previews with Remove and limits as Composer. Off by default.
The paperclip wiring, staged strip, mic button and the shared voice and
attach labels move into one internal module (src/react/typing.tsx) used by
both Composer and DictationField. Composer's behaviour and API unchanged.
README gains the Composer-vs-DictationField rule and the plan for the rest
of the unification.
Claude-Session: https://claude.ai/code/session_019MDtmv1SAs6YZn4FrewbXR
Co-authored-by: Claude <noreply@anthropic.com>
A framed Composer drew Attach and the microphone as filled circles next
to a bare model chip; they are bare icons now, as in the inline composer.
DictationField had the double box 0.39.1 removed from the composer: a
host's input rounding and focus ring drew inside its frame. Both are
measured inside the hostile-host demo.
Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh
Co-authored-by: Claude <noreply@anthropic.com>
Found on OrangeCat (owner's phone, 2026-11-15) in the Cat chat: the site's
*:focus-visible ring and rounded textarea rule drew a second box inside the
composer. The Messenger was guarded; the plain Composer was not. The guard
now sits on every composer's field and the Messenger's copy is gone.
test/browser.mjs measures the focused field inside a hostile host
stylesheet (one shared demo helper, demo/hostile-host.ts): FAIL before
(ring + 6px radius), PASS after. Embedded sheet 10,996 B gzipped (budget
11,000), by dropping a rule that set an outline only to remove it.
Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh
Co-authored-by: Claude <noreply@anthropic.com>
* fix(styles): starters are one column at every width (0.31.3)
The empty chat's starters wrapped into a row of pills. A row of choices is
never wrapping pills (fleet AGENTS.md, "One shape per kind"; OrangeCat UX
audit 2026-11-12, auth-firstrun#5). .ck-starters-list is now a column and
each .ck-starter a full-width, left-aligned, 44px row. Checked in
test/styles.test.js and test/browser-app.mjs at 390px and 1440px.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn
* fix(messenger): a message's actions by keyboard; alone with an agent every message is for it, and its answer reads it
- The actions button of a message was display:none until hovered, so Tab
never reached it and Edit and Delete had no way in without a mouse. It is
hidden by opacity now, takes focus, is 44px, and stays on the screen on a
phone. Long press and right click are unchanged.
- soleAgent(): one person and one agent. There the empty conversation says
the agent answers every message, Ask <agent> is not offered, and a message
starts the wait for a named agent without naming it.
- receiptOf(): where only agents could read a message, it is read once an
agent's own read mark is past it. A conversation with only an agent stayed
at Sent for ever.
- An awaited agent is not also shown typing.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn
* chore(release): 0.35.0
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn
* test(app): a 44px control measured mid-slide is not a small target
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn
* fix(messenger): the Agent mark only under an agent; a message is never drawn as nothing (0.37.0)
Found on OrangeCat (owner's phone, 2026-11-15), a conversation with a
person and the Cat:
- The top bar drew "Agent · Cat is in this conversation" under the
person's name, so it read as "Penguin is an agent". The mark is now drawn
only where the title is an agent; with people here the line reads
"@penguin · Cat is here". `agentHere` is now "{name} is here" (the old
wording was cut off at 390px).
- A message with no words, card or files was an empty row with a time and
a tick. It now says "This message could not be shown."
(`labels.emptyMessage`).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn
* test: drop tests duplicated by the branch merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn
---------
Co-authored-by: Claude <noreply@anthropic.com>
* fix(styles): starters are one column at every width (0.31.3)
The empty chat's starters wrapped into a row of pills. A row of choices is
never wrapping pills (fleet AGENTS.md, "One shape per kind"; OrangeCat UX
audit 2026-11-12, auth-firstrun#5). .ck-starters-list is now a column and
each .ck-starter a full-width, left-aligned, 44px row. Checked in
test/styles.test.js and test/browser-app.mjs at 390px and 1440px.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn
* fix(messenger): a message's actions by keyboard; alone with an agent every message is for it, and its answer reads it
- The actions button of a message was display:none until hovered, so Tab
never reached it and Edit and Delete had no way in without a mouse. It is
hidden by opacity now, takes focus, is 44px, and stays on the screen on a
phone. Long press and right click are unchanged.
- soleAgent(): one person and one agent. There the empty conversation says
the agent answers every message, Ask <agent> is not offered, and a message
starts the wait for a named agent without naming it.
- receiptOf(): where only agents could read a message, it is read once an
agent's own read mark is past it. A conversation with only an agent stayed
at Sent for ever.
- An awaited agent is not also shown typing.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn
* chore(release): 0.35.0
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn
* test(app): a 44px control measured mid-slide is not a small target
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn
---------
Co-authored-by: Claude <noreply@anthropic.com>
A photo that is not square was a tall oval; a host's focus ring drew a box
inside the composer; a host's 44px minimum for links pushed the name off its
subtitle; a host's paragraph rules loosened an agent's answer. The browser
suite now loads a hostile host stylesheet and a 300x500 photo and measures.
Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6
Co-authored-by: Claude <noreply@anthropic.com>
Reply to any message (the answer carries one line of the original, which
leads back to it); emoji reactions, one per person, shown at once; cards for
value in a thread (a payment request, money sent, a gift), written by the app
for this reader and drawn in one shape; the app's own actions in the box's
"+", with one "how much?" sheet for those that need an amount.
Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6
Co-authored-by: Claude <noreply@anthropic.com>
Cat Bot has to be a complete equivalent of Grok Bot, which has a voice mode.
The chat could take dictation and read an answer aloud, but not hold a
spoken conversation.
- VoiceMode (the screen), useVoiceMode (the loop), voiceModeReducer (the
rules, pure): listening -> thinking -> speaking -> listening. One big
button ends the person's turn (a pause ends it by itself where the
browser's recogniser runs) and cuts in while the answer is read. The app
passes onTurn(text) => Promise<answer> and, if it has one, a studio
speaker.
- The microphone and the voice follow the phase and nothing else
(voiceModeWants): never both open, neither open when the call is off. Two
empty takes, a failed transcription or an answer that never comes each end
the call in words, with "Talk again".
- Fix, useDictation: a second start() before the browser had handed the
microphone over opened a second microphone and orphaned the first, whose
track stayed live with nothing left to stop it. One request at a time now,
and a take cancelled while the microphone was still opening closes it
where it arrives. Found by this change's browser test.
- Its styles are their own section and styles/voice.css, so the embedded
chat sheet stays inside its 11 KB budget.
test/voice-mode.test.js (8) and test/browser-voice.mjs (a real browser, a
fake-device microphone, every opened track counted). pnpm run verify passes.
Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi
Co-authored-by: Claude <noreply@anthropic.com>
* Messenger: people talking to people, and to the agents among them (0.26.0)
OrangeCat's direct messages were built in the app, so what was wrong with
them could not be fixed for the next product: an agent's answer in a
conversation between two people looked like the other person's, nothing
said an agent was taking part, top bar and a two-row box took half a
phone, and nothing could be attached. This is the messenger as a package.
@bitbaum/chatkit/messenger: Messenger (the whole screen) and its parts
useMessenger, ConversationList, MessageThread, MessageAttachments. The app
implements MessengerTransport; the package has no database, websocket or
storage. styles/messenger.css is the embedded sheet plus the Messenger's
section, without ChatApp.
- An agent is told from a person by the shape of its face, an Agent mark
with whom it answered for, and an outlined bubble; the top bar says it
is in the conversation; naming it shows that it is thinking, and says
so if it never answers.
- Files: Camera, Photos, Videos, Files, checked against the attachment
policy before an upload starts, photos shrunk in the browser, progress
and Try again per file, a full-screen viewer, a film drawn as its still.
- The thread: runs, day lines, a New line, ticks from readState, a failed
message kept with Try again, earlier messages loaded above with the
reader's place kept, one bubble per message however often it arrives.
- Composer: layout="inline", attachmentsAlone, attach.take, attach.accept,
a "videos" source, files dropped onto the box. Defaults unchanged.
The state is one pure function (messengerReducer), tested in Node.
test/browser-messenger.mjs drives demo/messenger.html at 390px, 320px
dark and 1280px. It found two defects before any product did: a read mark
that cleared the badge without telling the server, and a page of history
that pulled the reader to the end of the thread.
threadkit 0.1.2 (attachment policy, mention matcher, readState) is merged
and tagged but not on npm, so those rules are carried word for word in
src/thread-rules.ts with threadkit's own tests; the file says when it goes.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6
* test(messenger): wait for the opened conversation before reading its thread
Side by side, the conversation that was open can still be on screen with a
"New" line of its own, so the check read the old thread on a slow runner.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6
---------
Co-authored-by: Claude <noreply@anthropic.com>
On bitbaum /hire/ at 390x844 the contact box (a ChatThread, a receipt link
and the Composer) sits mid-page and the document owns the scroll. The
reader's first message pinned the end of the thread to the bottom of the
viewport, which scrolled the page UP by about 300px and pushed the composer
they were typing in below the fold.
What a consumer gets:
- When the document owns the scroll, following only moves the page down:
with the end of the thread already on screen, nothing moves. A thread or
panel that scrolls itself is unchanged, and the jump button still goes to
the latest turn in either direction, because the reader asked.
- --ck-follow-gap (a length, default 0) on the thread's wrapper or any
ancestor leaves that much room under the latest turn when the page
follows, so a composer under the thread stays in view. The browser
resolves it (rem, em, px, calc); unset, negative or invalid is 0.
- While the reader has sent nothing on a page, nothing moves, as before.
How it is checked: test/browser-scroll.mjs gains a mid-page fixture
(demo/scroll.html?owner=page&greeting&below) at 390 and 1280px. With the
composer mid-screen the first message does not scroll the page up and the
composer stays on screen; as the thread grows past the foot of the screen
the page follows and leaves the end at 0px, 10rem, 6em, 90px and (invalid)
0px above the bottom of the viewport, within 2px. Both checks fail on the
previous code; every existing scroll case passes unchanged.
Claude-Session: https://claude.ai/code/session_019MDtmsSWTTpVpe4wh3v1sb
Co-authored-by: Claude <noreply@anthropic.com>
* feat(field): DictationField in a form — name, error, submit keys, field-level focus (0.27.0)
Loki's 36 hand-made text areas could not become DictationField because a
form needs props the field did not pass through (measured: onKeyDown 10,
maxLength 9, id 7, autoFocus 7, disabled 5, onBlur 2, onFocus 1, name 2,
spellCheck 1, plus validation errors on the field).
- name, autoFocus, readOnly (no mic, no Improve, no Undo)
- invalid / error: aria-invalid, the frame in --ck-danger, the error under
the field as role=alert, error and hint linked with aria-describedby
- onKeyDown, and onSubmit owned by the package: Cmd/Ctrl+Enter in a text
area, Enter in one line; never while composing, disabled, read-only or
during a take
- onFocus / onBlur for the whole field: the mic is not a blur, and a blur
during a take is held until its words reach onValueChange
- inputProps for spellCheck, autoComplete, inputMode, aria-*, data-*;
managed props win
- Enter in Improve's instruction box applies it
Tests: server markup in render.test.js; a Strict Mode form fixture in
browser-field.mjs at 390px and desktop, light and dark, and 320px with an
error shown. Version 0.27.0 (0.26.0 is already on npm).
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmsyW2aAn78GgfRxyn5
* fix(field): Improve at work is not a blur; Enter never sends the native form mid-take
Review findings on the 0.27.0 DictationField form props:
- Improve disables its own box and button while it works, so focus fell off
with nowhere to go and the field reported a blur. Improve at work now
counts as busy, like a take.
- With onSubmit, Enter in a one-line field (Shift+Enter, during a take,
read-only) no longer runs the browser's implicit form post.
- error="" or 0 is no error: no danger frame, no aria-invalid with nothing said.
- inputProps.style no longer reaches the box (16px text is the package's).
- The form fixture loads a development bundle, so Strict Mode is exercised.
- README and CHANGELOG: a held blur is not reported if the host unmounts
the field; the hint's aria-describedby is the one markup change.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmsyW2aAn78GgfRxyn5
---------
Co-authored-by: Claude <noreply@anthropic.com>
A ChatThread holding one greeting, at the foot of a long page, has no
scroll of its own, so the document owned the scroll and useStickToBottom
pinned the document to the thread's end on mount. bitbaum.orangecat.ch
/hire/ and /builders/ opened on the contact box, past the headline and
the prices.
While the document owns the scroll and the reader has sent nothing, the
thread does not move the page and shows no jump button. The reader's
first message starts the following, as before; a conversation that
already holds a turn from the reader still opens at its latest turn.
test/browser-scroll.mjs covers it on a new fixture
(demo/scroll.html?owner=page&greeting) at 390 and 1280px and fails on
0.25.0.
Claude-Session: https://claude.ai/code/session_019MDtmsSWTTpVpe4wh3v1sb
Co-authored-by: Claude <noreply@anthropic.com>
The owner's finding, 2026-11-06: every product installs the shared packages
and the text boxes people type in are still made by hand, with no microphone;
two comment systems were written in one week. This gives the two remaining
shapes of "a person types words" a component, so there is nothing to build
locally.
- DictationField: a labelled text area (or one line) with the composer's
microphone — Web Speech, the recording fallback, the take with its timer,
kept for a retry — appending to what is there; 16px, 44px targets.
Optional improve={{ run, suggestions }}: one tap or say/type what to change;
working, failure and Undo in words, the text untouched on failure. No model
call or prompt here; run is the app's.
- CommentThread: oldest first, the box is Composer, a transport the app
implements (post, optional remove), optimistic removal rolled back with a
message, a refused post keeps the draft, text not markup, a sign-in link
for a signed-out reader, times in a stated timeZone.
- VoiceBar/VoiceProblem are one implementation shared by Composer and the
field; Composer behaves as before.
- Styles after the ChatApp boundary: the embedded sheet keeps its budget.
- test/browser-field.mjs + fixture page; render tests; README; 0.23.0.
verify: format, lint, typecheck, build, 142 unit tests, and all five browser
suites (the four existing ones unchanged) pass.
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD
Co-authored-by: Claude <noreply@anthropic.com>
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>
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>
* 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
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
---------
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>
* 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>
Header and composer float over the thread, like the ChatGPT and Claude
apps: words scroll under both and fade, header buttons are frosted pills
(ck-glass), the composer is a see-through pill. The scroller is padded by
the measured heights (--ck-top-inset / --ck-bottom-inset), so the last
answer rests above the composer. useStickToBottom now stays pinned
through size changes (a growing composer, insets measured after paint).
The user's bubble is neutral (--ck-bubble), not the accent.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude <noreply@anthropic.com>
OrangeCat's Cat ends an answer with two to four tappable replies; it was the
most convenient control in any of the fleet's chats and existed nowhere else.
It now lives here so every product gets it from one place.
- REPLIES_INSTRUCTION: the prompt text that asks the model for a
```quick_replies block in the same turn (no second call, no latency)
- extractReplies(): parses it back out, deduplicated and capped, and hides
an unfinished block while streaming so no one watches JSON appear
- ChatThread onReply: buttons under the latest answer only, never while a
turn runs; the block is stripped from every answer even without onReply
- ChatReplies: the same buttons for apps that render their own thread
Claude-Session: https://claude.ai/code/session_01Mg5wrkfw95JWfmAz8yRT1j
Co-authored-by: Claude <noreply@anthropic.com>
From heidi's downscale.ts: a phone screenshot goes out as a ~1024px JPEG
instead of a multi-MB PNG — cheaper vision calls, and the full screenshot
never leaves the device. Attach notes become labels (attachNotes).
Browser test sends a 1290x2796 screenshot and asserts a 1024px JPEG
under the limit; mutation-checked (fails with maxImageEdge 0).
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat: chatkit v0.1 — one chat for every product
The fleet had 13 chats in 10 repos, each written fresh, each missing what
another had fixed. This extracts loki /loki (composer, thread, messages,
markdown, attachments) and adds heidi's microphone and orangecat's keyboard fix:
- Composer: auto-growing 16px textarea, Enter/Shift+Enter/IME, Send and Stop
in one slot, attachments with paste, mic always present, every label
translatable, app-specific controls in slots.
- useDictation: browser recogniser first; missing or SILENT (4 s watchdog,
bounded permission wait) -> record and transcribe on the server; a dead
recogniser remembered 30 days; every failure shown in words.
- ChatThread/ChatMessage: stick-to-bottom + jump button, speaker names once two
agents speak, Copy on answers, Retry on the last one, failed turns visible.
- Markdown with no HTML path; javascript: links stay text.
- styles.css: --ck-* variables defaulting to @bitbaum/design-tokens.
- verify = format, lint, types, build, 18 unit/render tests and 21 browser
checks (390px + desktop, light + dark, a sentence through a fake mic past a
silent recogniser). Browser checks mutation-tested (14px input, 60 s
watchdog) — both fail as they should.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(styles): --ck-* defaults at zero specificity on :root, so an app's own values win
Declared on the chat's elements they overrode any app setting --ck-* at the
root — the opposite of what the README promised. Found preparing loki, whose
colour variables are full OKLCH colours under the design-token names and so
must map them. New browser check: a :root --ck-accent reaches the chat.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>