Skip to main content

Module browser_control

Module browser_control 

Source
Expand description

POST /api/v1/ui/browser/take_control and /release: an agent drives a browser pane it did not open, and lets one go (docs/specs/SPEC_BROWSER_RETAKE_AND_COMMANDEER_2026_11_04.md §2). The profile rule is the one that decides who may open a profile (browser_identity::check_agent_may_use); on top of it the person is asked, in the pane, when their own sign-ins, their hands or another agent’s work are involved. Neither route goes through target_block_id: the pane is not the caller’s yet.

Structs§

Facts 🔒
The facts that decide whether agent may take a pane (what_it_takes).

Enums§

Need 🔒
What the person is asked, and why; nothing when taking the pane needs no one’s say.

Constants§

ASK_FOR 🔒
How long the person has to answer “X wants to drive this pane”.

Functions§

ask_the_person 🔒
Put “X wants to drive this pane” up in the pane and wait for the person: Ok when they allow it, else the response to give the agent (they said Not now, or nobody answered).
browser_block 🔒
The pane pane as stored, when it is a browser pane the caller may be refused or allowed on.
handle_ui_browser_release 🔒
handle_ui_browser_take_control 🔒
quiet_for 🔒
How long the person has left the pane alone, for Facts::since_input: the later of their last input in the page and their Take over click, which the host does not see. A pane the person took over from an agent, whose takeover srv no longer remembers (it restarted), is not known to be quiet.
site_limit 🔒
The sites a pane taken is limited to: those the agent passed, else the site the page is on. A pane that shows no web page (blank, a browser page) or whose address can’t be read has no site to limit it to, and is not taken without a list: a taken pane is never left unlimited by accident.
trimmed 🔒
what_it_takes 🔒
What taking a pane takes, once the profile rule has passed: a refusal, the person’s say, or nothing. Personal sign-ins are the person’s own: a container agent never gets them without the person sharing a profile, and a native agent asks.