Skip to main content

rebind_on_spawn

Function rebind_on_spawn 

Source
pub fn rebind_on_spawn(
    home: &Path,
    pair_id: &str,
    parent_pid: u32,
    probe: &dyn ProcessProbe,
) -> Result<RebindOutcome, ToolError>
Expand description

An MCP server that starts under OPENCODE_CTL_PAIR: unless claude-pid names an alive process, drop claude-exited and dead-seen and write claude-pid from the parent process.