Skip to main content

Module agent_reconcile

Module agent_reconcile 

Source
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: keeper holds 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.