* feat(loki): one chat across projects — the named project wins, and the switch shows
A Loki chat already moves between projects: name one and the next answer
works there, and the scope follows. Two edges remained.
- The fast paths (business plan, profile update, screenshot) put the
selection before a project named in the message. The selection now
follows whatever project the last answer used, so "write the business
plan for orangecat" sent after a loki build went to loki.
resolveFleetCommandProjectKey now lets the named project win, as
resolveDispatchTargets already does.
- The switch was silent — only the thread header's label changed. The
thread now draws a quiet "Now on X" rule above the message that moved
the chat to another project (lib/loki/project-switches.ts, tested).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HsFC4ZgDDsMo61aFghG1xd
* fix(widget): on a phone, the panel stands on the keyboard; scope tabs on one row
Owner's phone, 2026-10-11: with the keyboard up, the Loki panel's "Build
it / Ask Loki" buttons were under the keys and the thread was a sliver.
Android Chrome lays the keyboard OVER the page (the layout viewport keeps
its height), so a sheet pinned to bottom:0 with a vh height sits behind it.
- sheet.ts follows the visual viewport: keyboardInset() says how much the
keyboard covers (tested; <80px is a toolbar, not a keyboard), and the
sheet then stands on the keyboard with its height capped to what is
visible. While typing, the starters and the way into Loki step aside
(.panel.kb) and come back when the keyboard goes.
- The "About · This page · Whole site · An element · Loki itself" row
wrapped onto two lines with the label floating beside both. On phones it
is one sideways-scrolling row; the label goes (the group keeps its
aria-label). The rule sits after the base .seg rule, which it overrides.
Checked in Chromium at 390×800 with a simulated 330px keyboard: the panel
ends at the keyboard (470px) and Ask Loki sits at 367–399px, where it was
at 625px — under the keys — before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HsFC4ZgDDsMo61aFghG1xd
---------
Co-authored-by: Claude <noreply@anthropic.com>
The owner, on loki.orangecat.ch from a phone (2026-10-09): "if it proposes
five fixes and I click fix, where is it going? … how do I keep track?",
"I don't know when it's noticing something", "it should be easy to draw
its attention", and the panel still had a lot going on.
- Suggested changes are ONE decision (widget/suggestions.ts): every row
ticked, a tap unticks, "Build these 3 as one change →" files one note —
one agent, one PR, one row in Your changes. It used to be a Build per
row: N runs queued in the project's one lane with nothing saying so.
The owner's builds start without a confirmation card ("Edit first"
opens it); a visitor's still confirm.
- Your changes: one summary line that opens ("1 building · 1 in line ·
1 live"); each row is its own link. A change waiting behind another
reads "In line" (owner-view.ts), not "Starting".
- Watch sees what a tap DID: for 1.5 s after a tap on a button or link it
waits for the page to change, ask the server or navigate, notes which
("↳ It asked the server"), and says at once — after one tap, not three
— when nothing visibly happened.
- ◎ beside the launcher while watching: point at anything on the page,
the panel opens with it attached.
- Phone sheet (widget/sheet.ts): drag the top up for full screen, down to
peek at the page, further to put it away.
- Shorter greeting.
- Tests: widget-suggestions, widget-sheet, widget-changes (summary, In
line), widget-thoughts (results); watch-browser covers the tap results
and the one-change build. Unit 360/360; watch/embed/host-avoid browser
suites pass locally.
Claude-Session: https://claude.ai/code/session_011L2dmcydDLYAiNQwK4XcF4
Co-authored-by: Claude <noreply@anthropic.com>