Skip to main content

handle_ui_browser_handoff

Function handle_ui_browser_handoff 

Source
pub(crate) async fn handle_ui_browser_handoff(
    __arg0: State<AppState>,
    caller: Option<Extension<Caller>>,
    __arg2: Json<UiBrowserHandoffRequest>,
) -> impl IntoResponse
Expand description

POST /api/v1/ui/browser/handoff — backs BrowserHandoff (spec §5.2): a banner in the pane asks the user to do something the agent mustn’t (sign in, a CAPTCHA), and the call waits for their Done or Cancel. The agent’s tools on that pane are refused meanwhile (target_block_id).