Expand description
What an agent asked for a floating pane, checked here, resolved by the window (docs/specs/SPEC_AGENT_PANE_PLACEMENT_FLOATING_2026_11_22.md §2.1, §3).
srv cannot reach a window’s screen, so the request goes to the caller’s own window in the
openfloatingpane event and the window answers with pane.floatplaced, the same request, wait and
answer shape block.reveal uses. This module checks the arguments, fills the defaults (a browser’s
size and place), builds the event’s place and holds the waits.
Constants§
- BACKGROUND_
PLATFORM 🔒 - Whether this system keeps a window placed above every display off every screen (checked on Windows and macOS).
- BROWSER_
HEIGHT 🔒 - BROWSER_
MAX_ 🔒SHARE - BROWSER_
SPOT 🔒 - BROWSER_
WIDTH 🔒 - A floating browser an agent opens with no size: 1040 x 760 CSS pixels, at most 90% of the work area, flush right.
- MAX_
BACKGROUND_ 🔒PER_ AGENT - The most background browser sessions one agent holds, and the most on the machine (docs/specs/SPEC_BACKGROUND_BROWSER_SESSIONS_2026_11_28.md §3).
- MAX_
BACKGROUND_ 🔒PER_ MACHINE - MAX_
FLOATERS 🔒 - The most floating panes one agent has open at a time.
- SETTING_
FLOAT_ 🔒BROWSERS agent:floatbrowsers: the person has chosen that every browser an agent opens floats, unless the open says where it goes (docs/specs/SPEC_AGENT_PANE_PLACEMENT_FLOATING_2026_11_22.md §4, choice 1). Off by default.- SPOTS 🔒
- The named places in the work area.
- WAIT 🔒
- How long an open waits for its window to say where it put the pane. A window that is hidden or still
starting answers late: the open then says
queued.
Functions§
- answered 🔒
- A window’s answer (
pane.floatplaced). Whether a caller was still waiting for it. - background_
limit 🔒 - The refusal for a background session that would pass a cap (
mineandallare the live counts), or none. - background_
refusal 🔒 - The refusal for a background session on a system that cannot keep its window off every screen, or none. Windows and macOS keep a window placed above every display there (checked live on each); an X11 window manager may move it onto a screen (one did), so a session is refused there until the window can be kept hidden by other means (the person would see a window the agent said was hidden).
- browser_
defaults 🔒 - A floating browser an agent opens with no size is 1040 x 760 flush right, unless the request says otherwise; each of width, height and the place keeps what the agent gave. Returns the share cap that goes with the default.
- carry_
over 🔒 - Copies the floating-pane request of
fromontoto, for a request that was rebuilt from a fixed field list. - check 🔒
- The placement arguments, checked. They place a floating pane, so without
floating: truethey are refused, and the text says what to add. - check_
size 🔒 - One size argument: a positive number of CSS pixels, or a share of the work area (
"60%"). - expect 🔒
- Wait for the answer to the
openfloatingpanethat carriesrequest_id: register before publishing. - float_
by_ 🔒setting - Make a browser open float when
agent:floatbrowserssays so (float_default, and under the shared rate limit of an agent’s floating opens), with a floating browser’s defaults. A background session is refused here when it would pass a cap (background_limit) or the shared rate limit. - float_
default 🔒 - Whether a browser open floats by the setting: it is on, the open said nothing about
floating(an explicitfloating: falsekeeps the browser docked) and named no split, and the agent has room under its cap of four. A default never refuses an open: at the cap the browser opens docked, as it would with the setting off. - for_
browser 🔒 - A browser open’s floating arguments onto the pane request, checked, with a floating browser’s defaults. The
opener is the caller’s token’s UID, as
pane.openrecords an agent’s pane; the signed id for a caller with none. - forget 🔒
- Stop waiting for
request_id(its answer did not come in time). - limit_
text 🔒 - The refusal for an agent that has
MAX_FLOATERSfloating panes open. - live_
background 🔒 - The background sessions whose block is still there, of
agentor (with none) of every agent. - live_
floaters 🔒 - The floating panes
agenthas open now: the ones its record names whose block is still there. - names_
placement 🔒 - Whether the request names any placement.
- open_
answer 🔒 - The
dataof a browser open’s answer: the pane, what it browses as, and for a floating open where its window went. - place_
for 🔒 - The event’s
placeforcmd, with the id the window answers with.cascadeis how many floating panes the agent already has open; it steps a window only when the agent named no place. - waiters 🔒
Type Aliases§
- Answer 🔒
- What the window said.