mirror of
https://github.com/Kynde/dais.git
synced 2026-10-20 08:32:28 +02:00
Durable persistence means a picked target stays picked even after its pane dies — which is right, since dais-driven panes come and go. Release is the missing complement: how you say you are done with one and hand the digit back to the picker. state/daemon: - state/release-slot: refuses an unknown slot and the LAST remaining slot, and moves :active-slot to the next survivor when the active one goes. load-targets only honors the durable overlay while (get targets active-slot) resolves, so a dangling active slot would silently discard every persisted target on the next daemon start. - target action "release"; persists through transition!'s existing :targets watch, so a release sticks across restarts exactly like a pick does. dais-ctl: target release <slot>, plus slot completion in _dais-ctl. dais-top: x then 1-5, sticky footer prompt, ? entry. It takes a digit rather than acting on the picker's highlighted row because the usual reason to release a slot is that its pane is GONE — and a gone pane has no row in the picker, which only lists live tmux panes. Also fixes the startup banner: it printed (:targets cfg) — config, not the durable overlay the daemon actually runs with — so it misreported every picked or released slot on every restart. Now reads the state atom, sorted, with * marking the active slot. config: drop the retired system:claude.0 slot. ai/gotchas.md records two things this turned up: the :active-slot-must-resolve invariant, and tmux pane_index being positional — closing a pane renumbers those after it, so a stored "s:w.2" silently retargets while still reading alive and green.