Skip to main content

Module pane_dock

Module pane_dock 

Source
Expand description

An agent’s dock and float of a pane it opened (docs/specs/SPEC_AGENT_PANE_PLACEMENT_FLOATING_2026_11_22.md §2.2, §3): a floating pane goes back into a tab, a docked one gets a window of its own. Both run the tear-off and redock the person’s drag runs (service::tear_off), so the pane, its block id and everything that finds it by that id (the Browser* tools, the opener record) are unchanged by the move. Only a pane the caller opened.

Functions§

dock 🔒
dock: a floating pane the caller opened goes back into the caller’s own tab, beside the caller’s pane on the side split names, or where it was torn from when that place can still be found. The window closes with its last pane.
dock_all 🔒
A Stop of the agent agent_uid: each floating pane it opened is docked into the tab home_block (its own pane) is in, where it was torn from when that place can still be found. Nothing is closed. Returns how many were docked.
float 🔒
float: a docked pane the caller opened gets a window of its own, placed as an open’s floating places one (the same size, spot, x and y; none gives the default, a browser’s 1040 x 760 flush right).
float_for_handoff 🔒
A browser handoff that asked for floating: true: the pane the person is asked to work in gets a window of its own first, at a browser’s default size and place (docs/specs/SPEC_AGENT_PANE_PLACEMENT_FLOATING_2026_11_22.md §4, choice 1, opt in: the page is made again in the new window, so it reloads). None when the agent did not ask; else { "floated": true }, or { "floated": false, "why": ... } when the pane stays where it is (it is not the caller’s, the cap of four, the rate limit, a popup window, a pane already waiting on the person): the handoff goes on either way and the banner shows there.
float_pane 🔒
Float the docked pane target, which agent opened: the answer of a float call, or the status and text it is refused with. A browser’s page is made again in the new window, so it reloads at its address.
home_of 🔒
The tab and workspace a block is in now.
redock_into 🔒
Redock the floating pane target (in src, a tab and its workspace) into tgt: beside beside’s pane on its side code, or, with none, where it was torn from when that place can still be found. The pane is no floater after.
refuse 🔒
service_call 🔒
split_code 🔒
The redock’s direction code for a side of the caller’s pane (layout_helpers::queue_target_layout_split).