Skip to main content

Module floater_place

Module floater_place 

Source
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 (mine and all are 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 from onto to, for a request that was rebuilt from a fixed field list.
check 🔒
The placement arguments, checked. They place a floating pane, so without floating: true they 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 openfloatingpane that carries request_id: register before publishing.
float_by_setting 🔒
Make a browser open float when agent:floatbrowsers says 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 explicit floating: false keeps 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.open records 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_FLOATERS floating panes open.
live_background 🔒
The background sessions whose block is still there, of agent or (with none) of every agent.
live_floaters 🔒
The floating panes agent has open now: the ones its record names whose block is still there.
names_placement 🔒
Whether the request names any placement.
open_answer 🔒
The data of 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 place for cmd, with the id the window answers with. cascade is 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.