* chore(deps): raise shared package floors to published versions
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.
* fix(widget): keep ChatKit embed under size budget
* test: isolate prompt delivery Git fixtures from hook environment
---------
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
The owner on their phone (2026-10-17): it should be clear on screen when
Loki is watching and when it is recording, opening it should be easy, and
the panel was too crowded and intimidating to use.
Watching
- The owner's launcher is ONE button that says its state in a word at
every width: "● Watching" with a live dot and a ring, or "Paused". A
tap opens Loki. Its second half, "Point", was the labelled, bigger part
on a phone, so the obvious tap pointed instead of opening; pointing is
"Point to area" in the composer.
Recording
- A red edge round the whole screen while Loki listens (it takes no
taps; grey while it writes it down), a red-bordered dock that says
"Recording 0:12", and a one-line hint instead of four.
The panel
- One status line instead of two rows: "Watching · 2 to look at · 4 live
› Pause"; opening it shows what Loki noted and where each change is.
- One microphone: the header's "Voice note" and the composer's "Record"
did nearly the same thing. "Talk" in the composer is talk-while-
scrolling, which also covers plain dictation; in chatkit it takes the
tool row in place of chatkit's own mic.
- "Fix it" and "Ask" instead of "Request a fix" and "Chat with Loki".
- "Continue in Loki" appears once something has been said.
- The visitor's phone launcher is 44px, the minimum tap target.
Docs (widget/README.md, docs/architecture/feedback-widget.md,
docs/development/contextual-voice-feedback.md) and the browser tests
follow the new controls; new pure helpers watchHeadline and
changesHeadline are unit-tested.
Claude-Session: https://claude.ai/code/session_01E1qoQ9syUYXCRNbyrpqPGa
Co-authored-by: Claude <noreply@anthropic.com>
* feat(widget): Loki's own look, in Loki's light or dark mode, with one scroll
The site widget took its colours from the fleet's shared tokens, whose
accent is OrangeCat's warm orange, and was dark only: on a client's light
site the owner saw an orange-ringed black panel and asked why Loki's widget
looked like OrangeCat.
- Themes are generated from Loki's own globals.css, light and dark. The
accent is the ink; the warm colour is only the focus ring and a picked
element's outline on the host page.
- Every widget stylesheet reads var(--lk-*), defined for both modes on the
shadow host; widget/theme-mode.ts picks one. The owner gets the mode they
chose in Loki (user_preferences.theme, saved by ThemeSync via
PUT /api/me/theme, returned with their changes and remembered per site);
everyone else gets their device's setting, followed live.
- The panel is one column with one scroll area (the thread) between a fixed
header and composer. The whole card used to scroll too, which hid the
composer below a laptop's fold and nested scrolls on phones.
- The desktop card no longer greys out the site it invites you to use; the
phone sheet opens at two thirds of the screen with a lighter scrim.
- About is a segmented control that fits a 320px phone on one line.
- The walkthrough card follows the same mode; its ring uses the highlight
so it reads on light and dark sites.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018LMe5Uv6mfWJibAiCaNbbk
* fix(widget): the launcher is findable — Loki's mark at full strength
On the owner's phone, signed out of the owner pass, AOZ showed a grey
pencil at 38% opacity and 85% size, and the owner said the widget was gone.
Without the launcher there is no way to the sign-in that brings owner mode
back. The resting launcher is now Loki's spiral at full strength with a
hairline and a soft lift off the page, on phones and desktop; it still
fades while the page scrolls.
Also: the user_theme migration is renumbered 0107 after main's 0106.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018LMe5Uv6mfWJibAiCaNbbk
* fix(widget): keep the shared chat's thread bounded however chatkit nests it
CI's widget-kit-browser (needs @bitbaum/chatkit, so it only runs there)
failed one check: the chat thread no longer had a max-height once the panel
became a flex column. The flex layout bounds it only when the wrap is a
direct child, so the cap is back as a backstop, and the test now pins the
outcome — the thread scrolls and ends inside a card that fits the screen —
instead of the mechanism.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018LMe5Uv6mfWJibAiCaNbbk
---------
Co-authored-by: Claude <noreply@anthropic.com>
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>