Commit Graph
1 Commits
Author SHA1 Message Date
CatoandClaude 07b1fdee80 feat(loki-chat): a site conversation arrives as context, one primary control, a thread keeps its project (#1114)
From the owner's phone on /loki (2026-10-09): "Continue in Loki" from the
widget pasted the whole site conversation into the composer as raw "Me: … /
Loki: …" text, the model chip read "A…" and the project "kes…", a white
Talk pill outshone the send arrow beside it, and an unexplained dot sat in
the row.

- Site hand-off (lib/loki/site-handoff.ts, use-site-handoff.ts,
  SiteHandoffCard): ?q= in the widget's format is parsed into turns and
  shown where a thread would be — your words a pill, Loki's prose, a
  remark with its rule — above an EMPTY composer ("What should Loki do
  with this?"). "Take it from here" sends it on in one tap; whatever is
  typed is sent with the conversation attached once as a text file.
  The chats list steps aside while it is shown.
- One primary control: with an empty box, Talk takes the send slot (the
  same filled circle, a waveform) and the dead send arrow hides; typing
  brings Send back.
- The builder-honesty chip became a dot on the project pill (its words in
  the title); the pill's × is desktop-only (change scope by tapping it).
  The model chip has room to say "Auto".
- A thread opened by its link (?c=, Back) keeps its project — it read
  "No project — answers only" unless tapped in the list
  (initialLokiSelection).
- Tests: loki-site-handoff (agrees with widget/continue.ts byte for
  byte), loki-thread-scope. Seen on a local stack at 390×844.


Claude-Session: https://claude.ai/code/session_011L2dmcydDLYAiNQwK4XcF4

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-09 05:54:03 -07:00