Skip to main content

handle_host_browser_attention

Function handle_host_browser_attention 

Source
pub(crate) async fn handle_host_browser_attention(
    __arg0: State<AppState>,
    headers: HeaderMap,
    __arg2: Json<Value>,
) -> impl IntoResponse
Expand description

POST /api/v1/host/browser_attention — the user’s answer to a hand-off or approval banner, relayed by the CEF host. Only the host can call it: X-Host-Token must be the IPC token the host registered with (host_ipc.Register), which agents never see; the instance auth key alone, which every agent has, isn’t enough.