Expand description
Pane and agent open. Split out of server/mod.rs unchanged (SPEC_LARGE_FILE_MODULE_ANALYSIS_2026_09_30.md §4.1).
Functions§
- announce_
agent_ 🔒open - Tell the windows an agent opened a pane. The one the person is in offers to show it; the agent’s own open took neither their tab nor their focus.
- check_
meta 🔒 - The caller’s
meta, with srv’s own keys taken out: a named browser profile only if the user lets the agent use it. - handle_
agent_ 🔒open POST /api/v1/agent/open— launch an agent into a pane (idempotent: an agent already open in the target tab returns its existing block withcreated: false, same as the RPC path).- handle_
pane_ 🔒open POST /api/v1/pane/open— open a pane (editor/term/browser/…).- is_
agent 🔒 - Whether the caller is an agent AgentMux knows by its token. A person’s own shell (
muxopen,muxsh) calls the same routes and keeps itsfocus. - open_
error_ 🔒status - The HTTP status for
agent.open’s own error vocabulary. AGENT_NOT_FOUND / TEMPLATE_NOT_OPENABLE / INVALID_PROVIDER / CLI_NOT_AVAILABLE are the caller’s problem (a bad target, or a CLI that could not be installed); CLI_INSTALLING is neither — the CLI is on its way, so the same request will succeed shortly (503, retryable); anything else is a server-side failure. - open_
pane_ 🔒for handle_pane_open’s work.built_by_srvis true only for a request srv itself built from checked facts (the view of a paired computer’s agent, whose meta no caller wrote): a container agent’s snapshot step, which exists to confine what a request can read from its workspace, has nothing to confine there and would refuse the view.- pane_
open_ 🔒error_ status - The HTTP status for a
pane.openthat failed: the caller’s own mistake (a missing or invalid argument, a view that does not exist) is 400, an agent already at its floating-pane limit is 429, anything else is srv’s (500). - quiet_
agent_ 🔒open quiet_pane_openforagent.open, single or in a batch.- quiet_
pane_ 🔒open - What an agent’s open does about focus: nothing. An agent’s open never takes the person’s tab, focus or
caret, whatever
focusit sent (docs/reports/REPORT_ACTION_RESULTS_ALWAYS_VISIBLE_ACROSS_WINDOWS_2026_10_31.md §4 item 9); a person’s open (agentfalse) is left as sent. - ssh_
connection_ 🔒of - The SSH connection a pane.open names (the field, or
connectionin a caller-suppliedmeta), in its canonical form;Nonefor this computer or WSL.