Skip to main content

Module agent_move_here

Module agent_move_here 

Source
Expand description

Move an agent here from another pane of this AgentMux.

A second pane of an agent that is live in another pane is refused (open_in_other_pane). This is the recovery the refused pane offers beside “Go there”: stop the pane that holds the agent and let the refused pane have it. The holder pane stays open, showing the same notice with the roles swapped, so the move can be undone from there. Spec: docs/specs/SPEC_AGENT_SAME_PROCESS_DUPLICATE_PANE_RECOVERY_2026_10_01.md §4.3.

Constants§

MOVE_GRACE 🔒
How long the holder’s turn in flight may finish before its CLI process is killed.
MOVE_WAIT 🔒
How long the claimant waits for the holder’s lease to drop after the process is told to stop.

Functions§

move_here 🔒
Stop the pane that holds block_id’s agent, wait for the agent to be free, and tell the holder pane where it went. Ok with no from_block when no other pane held it.