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
agentmay 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
paneas 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.