Expand description
One pane per agent, for the layouts that already hold more (task #5419). An older build, an import or a
restore can leave two panes of one agent. The one that keeps the agent is the one running it, else the
one it launched last (super::agent_block::agent_blocks_by_uid); every other becomes a closed pane
that says where the agent is and offers Go there and Move here (open_in_other_pane, the recovery the
duplicate-pane spec built), so what a person types there is never taken in silence.
Runs once at startup and after a layout is opened. Each duplicate is one log line and one entry in
Warden’s Audit (agent.reconcile_duplicate_pane, by agentmux); a pane already closed this way for the
same keeper is left alone, so a second run changes nothing.
Structs§
- Duplicate 🔒
- An agent’s pane that is not the agent’s:
keeperholds it.
Constants§
- AUDIT_
COMMAND 🔒 - The command named in the audit.
Functions§
- agents_
with_ 🔒blocks - The agents (by the id their blocks resolve to) that have a pane or a parked block.
- already_
closed_ 🔒for - Whether the pane already says it is closed for
keeper. - close_
duplicate 🔒 - Close one duplicate: it says where the agent is, and the agent is not wanted running by it.
- find_
duplicates 🔒 - Every pane that is a second (or later) pane of an agent. A template’s id is skipped: the panes launched from it are different agents, told apart by their instance.
- install 🔒
- At startup, before any window shows the panes.
- place 🔒
- reconcile_
duplicate_ 🔒panes - Close every duplicate pane there is. Returns how many it closed now.