Expand description
Window, tab, pane and workspace naming. Split out of server/mod.rs unchanged (SPEC_LARGE_FILE_MODULE_ANALYSIS_2026_09_30.md §4.1).
Functions§
- clean_
name 🔒 - Trim a user-supplied name and clamp to
maxchars;Noneif empty. - finish_
name_ 🔒call - Run a naming service call and map the result to a JSON HTTP response.
- handle_
pane_ 🔒title POST /api/v1/pane/title— set a pane’s display title (frame:title). Targets the caller’s own pane (itsblock_id). Routes throughobject.UpdateObjectMeta.- handle_
tab_ 🔒name POST /api/v1/tab/name— rename a tab. Defaults to the caller’s own tab (resolved fromblock_id). Routes throughobject.UpdateTabName.- handle_
window_ 🔒name POST /api/v1/window/name— set a window’s display name (window:displayname), which the frontend turns into the OS/taskbar title. Defaults to the caller’s own window (resolved fromblock_id). Routes through the sameobject.UpdateObjectMetaservice path the InstancePanel rename uses, so persistence + live-title update are identical. agentmux-mcp’sSetWindowNametool POSTs here.- handle_
workspace_ 🔒name POST /api/v1/workspace/name— rename a workspace. Defaults to the caller’s own workspace (resolved fromblock_id). Routes throughworkspace.UpdateWorkspace.- resolve_
own 🔒 - Resolve a target id from the caller’s own context (via
block_id), usingpickto select the field. Returns the route’s error response on failure (missing block_id, unresolvable block, or the field isNone).