pub fn agent_worker_key(agent: &AgentEntry) -> (String, String)Expand description
The (host_app, role) of the worker a local presence speaks as: the
host app from its transport or agent type, and its ctx_agent role
made per session when the launching app named one
(super::session_role). Two sessions of one role on one instance are
two agents on Cloud; a subagent in the same session with the same role
is the same agent. A subagent has no transport of its own: it is told
by the client of the connection it shares with its parent
(parent_client), so a subagent of an app outside the host table
(mcp-client:Zed) runs under its parent’s app, never unknown.