The widget's chat was the fleet's own hand-rolled chat; with
data-fc-chat="kit" it is now drawn by @bitbaum/chatkit, the thread and
composer Loki's own chat renders, over the same conversation model.
- widget/chat/: a separate lazy chunk (public/widget-chat.js, ~24 KB
gzipped, Preact standing in for React), fetched on first open, carrying
the tag's nonce. chatkit's CSS is rewritten for the shadow root (:root ->
:host, rem -> px) and coloured from the boot theme.
- widget/conversation-kit.ts maps the model's snapshot to what chatkit
draws; Fix this, the changes, the confirmation card, the About chips and
Continue in Loki go into chatkit's slots as the widget's own nodes.
- A chunk that cannot load leaves the panel's own view: no dead end.
- /widget-chat.js is public in the auth proxy, like /widget.js.
- Tests: widget-kit-browser (34 checks: ask, card, screenshot, fallback,
phone width, host hotkeys, weight budget), widget-chat-css, and
widget-self-contained now guards the chunk/panel seam.
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck
Co-authored-by: Claude <noreply@anthropic.com>