pub(crate) fn resolve_agent_context(
store: &Store,
block_id: &str,
) -> Result<AgentContext, String>Expand description
Walk block → tab → workspace → window from an agent pane’s block id.
Tabs carry no parent reference, so the workspace and window are found by
reverse lookup: the workspace whose tabids/pinnedtabids contains the
tab, then the window assigned that workspace. window_id/workspace_id
are None when the tab isn’t attached to a live window (e.g. a torn-off
tab mid-transition) — callers should treat that as “no window to name”.