Skip to main content

take_over

Function take_over 

Source
pub(crate) async fn take_over(
    base: &str,
    agent_id: &str,
    token: &str,
    http: &Client,
) -> Outcome
Expand description

Take over’s relay step, after the holder answered its release request: claim agent_id’s lease now, and if the relay still names an instance on this computer, move it with POST /agents/lease/take (the relay allows that only within one account). A holder older than #3899 answers the release but keeps renewing the lease for as long as it runs, so without this the new pane is fenced seconds after it starts (docs/investigations/INVESTIGATION_TAKE_OVER_OLD_HOLDER_RELAY_LEASE_2026_09_27.md). Another computer is never taken from: Take over only works on this one.