Where in the file pane.open asks to land: a text line, a hex byte offset, a PDF page. Each is read by its own viewer
and ignored by the others; a line or page of 0 counts as absent.
Block-meta key: the Editor’s initial file opens following newer files
in its folder (an image or video tab). An entry of
editor:pending_open_files says the same per file, as
{"path": ..., "follow_folder": true}.
Block-meta keys: where a new Editor pane’s initial file opens, once: the hex viewer’s byte offset and the PDF
viewer’s page (editor:line, the text viewer’s, is open-at-line.ts’s). An entry of editor:pending_open_files
says the same per file, as {"path": ..., "line": ..., "offset": ..., "page": ...}.
Block-meta key carrying an ARRAY of files the reused pane should open —
the sole delivery path (see below for why an earlier version’s second,
“live MPS event” path was removed). Drained (all entries, in order)
reactively by EditorViewModel’s createEffect over its own block meta,
then cleared immediately after — covers both “not yet mounted when this
was written” and “already mounted, reacts as soon as the write lands”
uniformly through the same MuxObj sync path the pane already depends on
for everything else.
Block-meta key: the viewer the Editor’s initial file opens in (pane.open’s
viewer, so muxsh edit shows any file as text). An entry of
editor:pending_open_files says the same per file, as
{"path": ..., "viewer": "text"}.
The title the opener gave the pane. A browser pane also records the address it was opened at, so it keeps
the title only while it stays on that site (frontend/app/view/browser/given-title.ts).
Tell the source window to open the floater. For an agent’s open the event carries what it asked for, and
the open waits for the window to say where the pane went (placed), or says queued when it does not
answer in time.
Close the tab target_block_id on behalf of caller_agent_id: it waits 30 s for its
user to keep it (§6.5) and answers 202 with the pending request, which names the tab and
says whether the pane closes with it (pane_closes: it was the pane’s last tab). The
pane’s other tabs stay. That includes a tab the caller is in: closing it ends the caller
(which only QuitSelf may do without the user’s window). Audited as pane.close. Shared by ClosePane
and RunCommand’s pane:close (server/ui_shortcuts.rs), so both carry the
same protection. via names the tool in the pending request and the audit.
Create the block through the reducer (NOT wcore-direct) so it lands in
state.blocks — the tear_off_block saga’s pre-condition checks the
reducer-canonical block map. The BlockCreated event also carries the
meta, which persist_subscriber::apply_block_created writes into the
mstore Block so the editor renders with its file + tree state. We skip
layout placement, so the block never renders docked before the saga
moves it into the floating workspace (no flash).
The Editor: the file, then what only an explicit caller value writes. Tree state: without one the Editor decides
(collapsed for a pane opened on a file, which this always is).
The Files pane. The folder comes from file, else cwd, else home; select becomes a one-shot files:select
the view applies after its first listing and then clears. SPEC_FILE_BROWSER_PANE_2026_10_01.md §6.2, §8.1.
GET /api/v1/agent/shutdown/{request_id} — where a shutdown waiting on the
user’s override stands (§6.5): pending, kept_by_user, proceeding,
shut_down, superseded or failed.
If the calling agent (identified by its own block id, caller_block_id)
already has an Editor pane open in its own tab, push file into that
pane as a new tab instead of creating another Editor pane. Returns
Ok(None) when there’s no existing Editor pane to reuse (or the caller’s
tab can’t be resolved) — the normal create-new-block path handles that
case unchanged.
Core pane.open logic, shared by the WebSocket RPC handler
(register_pane_open) and the HTTP route POST /api/v1/pane/open
(agentmux-mcp’s OpenEditor tool). Creates a block for the requested
view, enqueues a layout action (split or insert), and broadcasts the
block/tab/layout updates so the frontend renders the new pane.
Floating-pane branch of open_pane. The block already exists in
source_tab_id’s blockids (created by the caller, with no layout node).
This moves it into a fresh floating workspace via the tear_off_block
saga, sets up the new tab’s layout, broadcasts the new MuxObjs, and asks
the source window’s frontend to materialize the chromeless floating OS
window via the host open_floating_pane_window command (srv cannot open
windows itself). See docs/specs/SPEC_OPENEDITOR_FLOATING_AND_COLLAPSED_TREE_2026_06_16.md.
An agent ending its own session — QuitSelf, or ClosePane with no
arguments (§7), which has no quote and so always asks the user. A
user-started, untainted turn with the user’s quote quits when the turn
ends; anything else waits 15 s for the user to keep it (§6.5).
Translate split_direction + split_reference_block_id into a placement:
a split of the reference block’s pane, or the first free slot when either
is missing. A direction ending in :half (down:half) gives the new pane exactly half of the
reference pane’s space; without it the new pane takes the layout’s default size.
Tear the block off into a fresh floating workspace + tab (reuses the
exact saga the drag tear-off uses: CreateWorkspace → CreateTab → MoveBlock).
Returns the new workspace’s and tab’s ids.