Expand description
“Pause all agent browsing”: one emergency switch
(docs/specs/SPEC_BROWSER_WEB_TERMINAL_TYPING_2026_10_23.md §7, D9). While
it is on, every pane an agent drives refuses every agent call, and the
clocks of their Auto-approve grants stand still (browser_actions::is_paused
answers for it, so everything that honours a pane’s Pause honours this).
It is kept in a file in the config folder, so a restart does not switch it off: an emergency stop that reset itself would defeat its point. A file that exists but can’t be read counts as on.
Anyone may turn it on (browsergrants.pauseall): the person from their
window, an agent from its connection, and it records who. The person turns
it off from their window. An agent asks for that as the sensitive operation
resume_agent_browsing: the super agent reviews it, the person sees a
countdown and can veto it, and it is recorded as that agent, never as the
person (docs/specs/SPEC_SUPER_AGENT_2026_10_25.md).
Structs§
- Pause 🔒
- The switch while it is on: when, and who turned it on (None: the person).
Constants§
Functions§
- apply 🔒
- Move
curto on or off. Returns whether that changed anything: turning it on again keeps who turned it on first, and off again is nothing. - began_
after 🔒 - Whether the pause on began after
asked_ms: a different one from the pause a request was made about. - change 🔒
set, withlift_only_if_asked_at: when given, a pause that began after that time is left alone.- is_on 🔒
- lift_
asked_ 🔒at - Lift the switch for a request made at
asked_ms, if the pause it was made about is still the one on: a pause turned on after the request is a new emergency, and the old approval doesn’t undo it. Err says why nothing was lifted. - open_
block_ 🔒id - For
Browseropen, which resolves no pane of its own: the caller’s pane, once its identity is verified, and a refusal while the switch is on (a new pane is a pane an agent would drive). - path 🔒
- persist 🔒
- Keep the switch in its file. A test keeps nothing on disk.
- read_
file 🔒 - The switch as
pathholds it: on if the file is there. A file that exists but can’t be read, or has nothing readable in it, reads as on since 0: fail closed. No file is off. - refusal 🔒
- What an agent is told while the switch is on: who paused all agent browsing (the person, or the agent that did) and how it is lifted.
- save 🔒
- set 🔒
- Turn the switch on or off, as
by(None: the person). Returns where it stands now. A change is kept in the file, held on every grant’s clock, shown on every driven pane’s header and Log (asby, never as the person when an agent did it), and sent to the windows’ status bars. - slot 🔒
- status 🔒