2 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 01253d8a23 fix(scroll): back at the bottom by hand, the jump button goes; chips answer the question (0.22.1) (#62)
* fix(scroll): back at the bottom by hand, the jump button goes (0.22.1)

A finger rocks back a pixel or two as it lifts; that last touchmove read
as scrolling up and paused following at the bottom, so the jump button
stayed over the reply chips with nowhere to jump to (OrangeCat's
Diplodoctor chat on Android, 2026-11-01). A touch that ends at the very
bottom, or a downward scroll that arrives there, resumes following.

Browser test on ChatScreen at 390px with real touch: fails on 0.22.0,
passes now; a real tap on the button still lands at the latest message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtms1H9g9uu7AdDgJzLQ

* feat(replies): when an answer ends on a question, the chips answer it

Under four questions about a sore finger, Diplodoctor's chips were "I have
more info" and "Consult a doctor": a tap answered nothing. On its live
model, 2 of 9 chip sets answered the question; 7 of 9 with this sentence.
In REPLIES_INSTRUCTION, every fleet chat gets it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtms1H9g9uu7AdDgJzLQ

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 21:09:02 +01:00
CatoandClaude Opus 5.5 ed759a8516 feat: chatkit v0.1 — one chat for every product (#1)
* 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>
2026-09-24 23:14:53 -07:00