Expand description
Catch-all service handler for the smaller service namespaces (userinput / block / subagent / history / agent).
ConstantsΒ§
- REFUSED_
DEFINE π - What a caller of
agent.defineon the service route is told. - REFUSED_
HISTORY π - What a caller of
history.Deleteorhistory.Clearon the service route is told.
FunctionsΒ§
- generate_
subagent_ πname - get_
controller_ πstatus - handle_
misc_ πservice - history_
get π - history_
list π - history_
list_ πfor_ agent - history_
sort π - The
sort_byandsort_dirarguments shared by the history listings, fromidxandidx + 1. - json_
reply π - A success reply carrying
valueas JSON (nulldata if it cannot be encoded). - list_
active_ πcron_ jobs - Swarm-pane Cron bucket (Phase 2 of the same spec). Unfiltered like
shell.ListActiveandsubagent.ListActive: every job whosecreated_byresolves to a live agent block; the frontend groups by block_id in buildTree(). A job whose creator has no live registration (agent pane closed, or created via a raw HTTP call with no matching reactive registration) is silently omitted: there is nothing to attach it to in a per-agent tree. - list_
active_ πshells - Swarm-pane long-running-process rows (SPEC_SWARM_LONG_RUNNING_PROCESS_ROWS_2026_07_20).
- resolve_
unnamed_ πbacklog - A bounded, rate-limited burst that resolves names for whatever is currently unnamed in the
backfilled/historical backlog (see
SubagentWatcher::resolve_unnamed_backlog). Only called fromSwarmViewModelβs constructor (a human opening the Swarm pane); fire-and-forget, the same pattern as eager namingβs owntokio::spawn. - save_
terminal_ πstate - Periodic terminal-state snapshot (SPEC_TERMINAL_SCROLLBACK_PERSISTENCE_2026_07_23.md Β§2.2):
TermWrap.processAndCacheData()(frontend/app/view/term/termwrap.ts) fires this every ~5s of active output viafireAndForget, so it stays best-effort: log and return success either way rather than surfacing storage errors to a caller that doesnβt check the result. Persisted as thecache:term:fullblockfile (TermCacheFileNameon the frontend), read back byloadInitialTerminalData()on reconnect alongside the raw"term"delta sinceptyOffset. - send_
user_ πinput_ response - Accepted and dropped: user input routing is not wired yet.
- subagent_
history π - subagent_
info π - watch_
agent π
Type AliasesΒ§
- Reply π
- A handlerβs result: the reply, or the message of the first argument that failed to decode.