mirror of
https://github.com/bitbaum/diplodoctor.git
synced 2026-12-04 05:30:15 +01:00
The /ask page becomes a ChatScreen, as Loki and Solon are: the conversation
fills the display under the site header, the page title floats over it as
one frosted pill (ck-glass), and the composer floats at the bottom with the
disclaimer as its footnote. fill="viewport" follows the visual viewport, so
the composer rides above the phone keyboard. The empty state (no file yet)
keeps its card and CTA.
- @bitbaum/chatkit moves from a git sha (0.8.x) to npm ^0.12.0;
@bitbaum/ai-kit ^1.20.1 → ^1.21.0. The workspace exemption is by name,
as the file's own comment says.
- lib/ask.ts appends RICH_ANSWERS_INSTRUCTION before REPLIES_INSTRUCTION
(evig and Solon's order) and takes the quick_replies block out of the
answer with chatkit's extractReplies, so the browser never sees raw JSON;
/api/ask returns { text, replies } and the page sets `replies` on the
assistant message, restoring the redaction placeholders in both.
- ChatThread gets share={{ title: SITE.title }}, so Copy · Listen · Share
appear under every answer; `listen` and `share` thread labels are added
in all five locales.
- globals.css sizes the screen to the visual viewport minus the sticky
header, on the repo's tokens.
Verified: pnpm run verify green (format, lint, typecheck, 194 unit tests,
build); the built app at 320, 390 and 1280px shows no sideways scroll, a
44px title pill, no target under 44px, and a failed turn with Retry.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>