mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 11:33:28 +01:00
The dispatch last-mile was failing on real edges once the runner went live: - Project keys never matched the names users actually gave their Zellij tabs: "revampit" ≠ "revamp-it", so focus/inject/launch threw "tab not found". New SSOT findMatchingTab() (src/lib/tab-match.ts) normalizes case + punctuation and is used in all three matching sites (terminals/zellij, agent-runtime, desktop poller). Existing fuzzy-matched tabs are reused; only a genuinely absent tab is created under its canonical name. - A runner reconnecting after days offline drained a stale command backlog against a changed Zellij and failed noisily. purgeStalePendingCommands() deletes unclaimed/unexecuted commands older than 20m before claiming. - launch_agent against a detached session hung to the 6s timeout and surfaced a cryptic "spawnSync /bin/sh ETIMEDOUT"; now it says which session is detached and to `zellij attach` it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>