Skip to content

A move-window leaves the lane's recorded window naming the session it came from (Amendment 18(a)/(b), and lane writes nothing by design) #95

Open

Description

@brettheap

Lane: openRepoTools-3 (openRepoTools-3)

Raised by Copilot's sixth round on #83 (lane:873), and it is a gap in the RECORD rather than in the read:

After the successful move-window immediately above, this returns without updating the lane's recorded window field. The binding still names $W_SESS:$W_ID, while the live process is now in $gl_this.

What happens. Amendment 18 Addendum 1 (i-2) makes lane <name> on a lane LIVE HERE bring its window into the asking tmux session — move-window -a -s <session>:<@id>, then select-window. The lane's STARTED/RESUMED line still carries window <the old session>:<index> <@id>. The window is alive, the process is alive, and the record now names a session that window is not in.

What #83 did about it, and what it did not. binding_window_state used to answer gone for any id whose session did not match — and gone is the ONE answer that makes a binding elsewhere read DEAD and hands lane-start and lane openRepoTools#30's takeover path. It now separates the two facts: an id that resolves nowhere is gone; an id that resolves in another session is unknown, which is clause (b)'s own posture for anything this place cannot pronounce on. So a moved window can no longer be read as a dead binding, and the takeover path costs only the case where an id has been reused — which was never a proof of death either.

What is still owed, and why it is a ruling. The record is stale until the lane's next STARTED/RESUMED or PAUSED. Keeping it current means one of:

  1. lane writes the record after a move. That repeals the word's own sentence — "It writes nothing to the register and it never runs claude itself" — which is what makes lane safe to run anywhere, including on a lane somebody else holds.
  2. The move is replaced by the client switch. --switch exists and leaves the window where it is; Addendum 1 (i-2) ratified the MOVE as the default on Brett Heap's measurement of 2026-09-14 ("the acts are tmux move-window -a -s <session>:<@id> and then tmux select-window"), so the default is his to change.
  3. A reader that follows a moved window by its @id alone, accepting any session — which is the agreement rule Amendment 11(h) added precisely because tmux reuses ids, and reversing it needs its own evidence.

None of the three is an adoption-PR act. Filed rather than chosen.

Where it bites today, for whoever rules on it: a lane whose window has been moved reads unknown for its window state, so the same-host gone takeover of a genuinely dead pane is unavailable for that lane until its next lane-kind line. That is the conservative direction, and it is the one #83 took.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions