Skip to main content

Module browser_retake

Module browser_retake 

Source
Expand description

POST /api/v1/ui/browser/retake and /handoff_status: an agent drives again a pane the person took over once they gave it back, and asks what became of a hand-off whose call it lost (docs/specs/SPEC_BROWSER_RETAKE_AND_COMMANDEER_2026_11_04.md §1). Neither goes through target_block_id: a retake is asked for a pane the agent no longer owns, so the rule is browser_owner::may_retake, and the caller’s identity is checked the same way every agent browser call checks it. The person’s Give back arrives from the host (give_back, called by handle_host_browser_attention), never from a client.

Functions§

give_back 🔒
The person’s Give back on block_id, relayed by the host: the agent that drove the pane last may retake it. Written to the block’s meta too, so it holds after an srv restart.
handle_ui_browser_handoff_status 🔒
handle_ui_browser_retake 🔒
limit_of 🔒
The sites the pane was limited to, as its header recorded them (browser:allowed_origins).
since_person_input 🔒
How long ago the host last saw the person use pane’s page (Duration::MAX if it never has), or None when the host cannot say, which keeps the pane the person’s until they give it back.
trimmed 🔒