Skip to main content

pty_child_identity_env

Function pty_child_identity_env 

Source
pub fn pty_child_identity_env(
    agent_env: &HashMap<String, String>,
) -> Map<String, Value>
Expand description

The identity an agent’s PtyShell child carries, as its cmd:env, from the agent’s env after carry_slug_identity_env: its slug and git identity, so a commit typed there is the agent’s. Deliberately not AGENTMUX_AGENT_ID or MUXBUS_AGENT_ID: those are the agent’s address, and an interactive shell exporting AGENTMUX_AGENT_ID reports it through its shell integration (OSC 16162 E), which registers that pane as the agent for message delivery (termagent.ts), beside the agent’s own pane.