mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-05 14:27:21 +01:00
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>