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Β§
- 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/β¦).- 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. - 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.