Skip to main content

agent_panes_of

Function agent_panes_of 

Source
pub(crate) fn agent_panes_of(
    store: &Store,
    agent_id: &str,
) -> Vec<AgentOpenPane>
Expand description

Every pane of the agent whose definition id is agent_id, in every window and tab of this instance, running or not (a pane whose agent has stopped, a pane in a window nobody is looking at): where it is open, as open_agent_panes reports it. window_ids is empty for a pane no window shows. One agent should have one pane; a caller that is about to make one (an import, a restore, a drag) asks this first and reuses what it finds instead of creating a second.