Skip to main content

Module misc

Module misc 

Source
Expand description

Catch-all service handler for the smaller service namespaces (userinput / block / subagent / history / agent).

ConstantsΒ§

REFUSED_DEFINE πŸ”’
What a caller of agent.define on the service route is told.
REFUSED_HISTORY πŸ”’
What a caller of history.Delete or history.Clear on 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_by and sort_dir arguments shared by the history listings, from idx and idx + 1.
json_reply πŸ”’
A success reply carrying value as JSON (null data if it cannot be encoded).
list_active_cron_jobs πŸ”’
Swarm-pane Cron bucket (Phase 2 of the same spec). Unfiltered like shell.ListActive and subagent.ListActive: every job whose created_by resolves 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 from SwarmViewModel’s constructor (a human opening the Swarm pane); fire-and-forget, the same pattern as eager naming’s own tokio::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 via fireAndForget, 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 the cache:term:full blockfile (TermCacheFileName on the frontend), read back by loadInitialTerminalData() on reconnect alongside the raw "term" delta since ptyOffset.
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.