mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 06:37:38 +01:00
The "Could not bring zellij up" toast fired on every Fleet Runner boot. It came from a cold-start that could not work: `restoreFleetOnBoot` fetched the user's last runtime snapshot — whichever channel pushed last, so on the laptop it got the box's fleet with `/home/ubuntu` paths — wrote a zellij layout for it, and spawned `zellij --session fleet --layout` detached with no TTY. A zellij client needs a terminal to bring up its server; probed three ways on 2026-09-11, that spawn never produced a session, every time. The toast said "Open Settings to retry"; Settings had a Restoration section that the desktop never read (autoRestore hardcoded true) and no retry. Since 0.8.3 the owned PTY was the default with zellij kept as the fallback for tabs it could not find. The fallback is where every stuck dispatch ended: "no zellij tab with that name in any active session" (2026-09-10 21:08, an inject into Heidi), a keystroke typed into "Tab #9", a session spawned that no terminal could show. This release deletes the fallback instead of hardening it a fourth time. Runner: - poller: inject requires a live owned PTY and fails loudly otherwise (the cloud enqueues a DISPATCH for a project with no session, so a miss is a real error); launch/dispatch/switch own the PTY with no fallback; close and peek answer from the PTY or say there is none; focus_tab is retired; install_cli runs the installer in an owned PTY; the zellij session/tab helpers, the pre-flight `ensureSessionForCommand`, the ETIMEDOUT translation, and FLEETCROWN_RUNNER_PTY are gone. - pusher: open tabs are the owned PTYs; pane records no longer join through ZELLIJ_PANE_ID or stamp a session name. - index: no cold-start on boot, no bundled-binary PATH prepend, no zellij in the prerequisites scan; peek-tab reads the owned buffer. - desktop/scripts/download-zellij.mjs and the prebuild download are deleted. Web (the pieces that existed only for the cold-start): - /api/control/runtime-state/desired (cross-channel snapshot read) deleted. - Settings → Agent → Restoration (FleetLifecycleSettings + its API) deleted; the users.fleet_settings column stays (migrations never DROP) and is unread. - src/lib/zellij-bootstrap.ts and zellij-layout-generator.ts deleted. Fleet Runner 0.8.19; changelog entry written for the person who installed it. Claude-Session: https://claude.ai/code/session_01WSNERoZZqW2TgqbAGHSQZf Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>