Expand description
Agent-facing shortcuts (ListShortcuts / RunCommand / PressKeys, and UI bind / reset),
docs/specs/PLAN_SHORTCUTS_VERIFIED_AND_APP_API_2026_10_10.md §4. Same
identity model as the rest of ui_handlers: the caller’s own pane is
derived from its verified identity, never taken from the request.
Constants§
- MAX_
BINDINGS 🔒 - The most keys, and the longest key or
when, a request may carry: a command has a handful of keys. - MAX_
KEY_ 🔒LEN - MAX_
WHEN_ 🔒LEN
Functions§
- agent_
name 🔒 - What the person calls the agent: the name it was given, not the lowercase id it signs its requests with. The id stands in for an agent the registry does not know.
- close_
pane 🔒 - RunCommand
pane:close: the pane named bytarget, closed the way ClosePane closes it (app_api::pane::close_pane_as): it waits 30 s for its user to keep it, and the answer says so. The key itself closes the focused pane at once, with no undo, so the page never runs it for MuxAPI. - handle_
ui_ 🔒press_ keys POST /api/v1/ui/shortcuts/press— backsPressKeys.- handle_
ui_ 🔒reset_ shortcuts POST /api/v1/ui/shortcuts/reset— backsUIactionreset.- handle_
ui_ 🔒run_ command POST /api/v1/ui/shortcuts/run— backsRunCommand.- handle_
ui_ 🔒set_ shortcut POST /api/v1/ui/shortcuts/set— backsUIactionbind. The page applies the same edit the Settings view makes and refuses what an agent may not do (a key another command has, a key the system takes); the person is told and can undo it.- handle_
ui_ 🔒shortcuts_ list POST /api/v1/ui/shortcuts/list— backsListShortcuts.- name_
or_ 🔒id - refused_
command 🔒 - Commands no agent may run: agents are first-class owners, so only what has no protection. A permanent delete can’t be undone. The frontend refuses it too, and PressKeys of any key bound to it.
- shortcut_
target 🔒 - The pane a command or key press acts on: the caller’s own pane (
own) whenrequestedis absent or names it, else the paneotheraccepts (a browser pane it opened), else the refusal. A command is the person’s own action as far as the app can tell, so an agent never runs one against the focused pane (which may be another agent’s, or theirs) or any pane it doesn’t drive.