One window for several agents (SPEC_COUNTDOWN_BUTTONS_AND_BATCH_AGENT_ACTIONS_2026_10_28.md §4).
A Stop agents over five agents is one request: one deadline, one OS notification (“Closing 5
agents: A, B, C and 2 more in 30 s”) with Keep running and Close now for all of them, and one
audit entry. Each agent’s own pane keeps its banner, and its Keep running keeps that agent only.
A request opened on another AgentMux instance on this machine (a
cross-channel FleetBulkStop target, whose user is asked there): where
its status lives. status for these is proxied (see remote_for).
The asker as the user knows them: the display name of the agent whose id by
is (QTest, not qtest), else by as given (a fixed app string, a name
another AgentMux claims, or an agent that is not running).
pending → proceeding, atomically, handing over the action to run:
exactly one of the window running out and the user’s Keep running wins
(ReAgent P1 on #3789 — checking and setting under separate locks let a
late check see pending after a keep).
The asker’s name, cleaned for display. Normally a verified agent id; the
only other sources are fixed app strings and a name another AgentMux on
this machine claims (cross-channel), so it gets the same treatment.
A caller’s reason, cleaned for the user to read (spec §3.11). Replaced
wholesale by REASON_HIDDEN when it trips the keyword list the jekt tier
gate and notification previews use; otherwise its first line, control and
bidi-override characters removed, whitespace collapsed, cut at
REASON_MAX. Markup is not interpreted here: the banner renders it as
text and a toast never carries it.
“Close now” (the second button of the banner and the toast): the person ends the wait, and the
shutdown begins at once as it would at the deadline. closed_now if the request was still
pending, too_late if it was kept, had begun, or is not this block’s. Only the person’s: the
RPC and the toast press that call it are proven by the caller.
How long the user has to keep these panes when an agent asks to close them: BROWSER_CLOSE_WINDOW when every one
is a browser pane, else OVERRIDE_WINDOW.
The OS notification for view’s request: what will happen, the time left
to its deadline, and Keep running. Raised when the request opens, and again
when a stronger request takes it over (the same toast is replaced in place,
since both share the block’s notification group).
Ask to shut block_id down, subject to the user’s override. A request
already pending — or under way — for the block is joined instead: the clock
never restarts, and no second window opens beside it (ReAgent P1 on #3789:
a second banner’s Keep running could not stop the first). A joiner whose
action does more (see Action::rank) replaces the pending action and is
named on the banner, so nobody is told the outcome of less than they asked
for (ReAgent P1 on #3798). The returned view says whose request it is: a
caller whose by/via differ has joined someone else’s.
Whether the block’s session is running, not merely registered: a stopped
agent keeps its controller (Policy::stop), and the Keep running button of
its notification would restart nothing (it reads “Keep open” instead).
What a caller that did not wait is told of an ended request: which agents the user kept running and
which closes failed. None when everything it asked for was closed (or was already gone).
Have by told, by one [AgentMux] note, how request_id ended if the user kept what via asked to
close or the close failed. For a caller that did not wait for the window; a close that went ahead
says nothing, as the caller asked for it. A request that has already ended tells at once.
The OS notification’s body for a pending shutdown. App-controlled text and
the asker’s name (cleaned); the reason is left out on purpose. “My Agents”
is only for a closed agent tab: a pane close now reaches only panes that hold
no agent (a browser, an editor), which have no conversation to keep.