mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 18:47:42 +01:00
#1640 closed a one-off's tab only when its own handoff closed the run. One that never reported (reaped), was refused on its ack, or ended with a runner restart kept its agent open in its lane, free to go on to something else and holding a project lane and a builder agent session. - one-off-close.ts: notifyRunClosed, which every close path calls once, queues close_tab for a one-off's lane tab; the handoff close no longer does it separately. - The close goes to the builder the dispatch command names now. A queued dispatch moved to the other builder used to be closed on the first one, which answered "nothing to close". - loki_dispatch's result carries the lane tab (sessionTab) and says it. - A refused fresh session reads the lane count again before it says the project is full; a database error used to read as "wait for one to close". - scripts/test/one-off-close.ts. Found by a review of the merged runner fixes (2026-11-12). Claude-Session: https://claude.ai/code/session_019MDtmtHxn2FxY2x8pJ83Xj Co-authored-by: Claude <noreply@anthropic.com>