mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-05 11:48:31 +01:00
A phone tap ("Fix this" in the widget, "move forward" in chat) on a project
that prefers this computer sat "Queued for this computer" for 106 minutes
beside a cloud builder reading "online · not executing", and the hero told
the operator to restart a desktop app that was simply shut.
Routing
- A project that merely PREFERS this computer (no locus lock, cloneable
repo) falls through to the cloud builder when this computer is offline at
dispatch time and the cloud is online: `offlineFallbackChannel` +
`decideQueuedExecution({ offlineFallback })`. The chat says so
("… this computer is offline, so the cloud builder took it. Nothing to
do.") and the stored preference is untouched. A lock never falls
through; a cloud preference never falls to a laptop that cannot clone.
- The executor swaps in the cloud clone dir for a rerouted dispatch.
Already stuck
- `POST /api/control/reroute` (lib/reroute-queue.ts) moves unclaimed rows
waiting for this computer to the cloud — one row or all — on projects
the same rule allows; an `inject` row becomes a `dispatch` so it lands.
- Control hero: "Waiting for this computer · N queued 106m (loki), which is
offline. The cloud builder is online and can take it now." with ONE
button, "Run it in the cloud". The stall query reports `localQueued`.
- Feedback card: "This computer is offline — the cloud builder can take it
now" with the same button in place of "Open Fleet Runner … then Retry".
Control page, from the widget's own findings
- "N awaiting input" / "N working" now narrow the roster to that bucket,
with a chip to clear it (on a phone the tap changed nothing on screen).
- The page title is the shell's h1 at every width (md:sr-only), the Find
project and new-project fields carry labels, and the roster's 10px
evidence line and sort chips are 12px.
Claude-Session: https://claude.ai/code/session_011L2dmcydDLYAiNQwK4XcF4
Co-authored-by: Claude <noreply@anthropic.com>