Skip to main content

float_for_handoff

Function float_for_handoff 

Source
pub(crate) async fn float_for_handoff(
    state: &AppState,
    asked: Option<bool>,
    agent: Option<&str>,
    pane: &str,
    popup: bool,
) -> Option<Value>
Expand description

A browser handoff that asked for floating: true: the pane the person is asked to work in gets a window of its own first, at a browser’s default size and place (docs/specs/SPEC_AGENT_PANE_PLACEMENT_FLOATING_2026_11_22.md §4, choice 1, opt in: the page is made again in the new window, so it reloads). None when the agent did not ask; else { "floated": true }, or { "floated": false, "why": ... } when the pane stays where it is (it is not the caller’s, the cap of four, the rate limit, a popup window, a pane already waiting on the person): the handoff goes on either way and the banner shows there.