Skip to main content

handle_host_browser_dialog

Function handle_host_browser_dialog 

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

POST /api/v1/host/browser_dialog — the host parked a page’s dialog in an agent-driven pane and asks what to do (dialogs spec §4.2). Body {id, target, kind, message, origin}; answers accept, cancel, or parked (the person is asked; the answer goes to the host’s dialog_answer later). {id, target, ended: true}: the dialog ended on its own (navigation, close), so a question about it comes down. suppressed: the host cancelled it as one of a flood, and only reports it. Host only.