Skip to main content

Module http_naming

Module http_naming 

Source
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 max chars; None if 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 (its block_id). Routes through object.UpdateObjectMeta.
handle_tab_name 🔒
POST /api/v1/tab/name — rename a tab. Defaults to the caller’s own tab (resolved from block_id). Routes through object.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 from block_id). Routes through the same object.UpdateObjectMeta service path the InstancePanel rename uses, so persistence + live-title update are identical. agentmux-mcp’s SetWindowName tool POSTs here.
handle_workspace_name 🔒
POST /api/v1/workspace/name — rename a workspace. Defaults to the caller’s own workspace (resolved from block_id). Routes through workspace.UpdateWorkspace.
resolve_own 🔒
Resolve a target id from the caller’s own context (via block_id), using pick to select the field. Returns the route’s error response on failure (missing block_id, unresolvable block, or the field is None).