Files
loki/src/hooks
Mao NakamotoandClaude Opus 4.8 1b14c3af9b fix(control): make dispatch reliably launch the agent + inject — the product loop
Dispatch was a silent no-op: manual "Next best" recorded an orchestration run
but never injected, and the inject path assumed a live agent (so an idle
project got nothing). Now a new `dispatch` pending-command does the whole thing
runner-side where the local machine is ground truth: ensure the project's
zellij tab, launch the agent (default claude) if none is running, inject the
prompt, and VERIFY the agent picked it up — reporting a precise status instead
of a fake ok. Both /api/inject and /api/orchestration/run enqueue it (with the
project dir + agent), so every dispatch path gets launch-if-needed for free.

Also: surface an offline runner honestly (the queued command says so instead of
reading as success); repoint "Open workspace" — which spawned a PTY on the
server (the box, not your machine) and exited instantly — to "Focus terminal",
driving your LOCAL zellij via the runner; add back-nav + an honest "runs on the
server" notice to /control/workspace and /terminal.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 16:40:09 +02:00
..