Skip to main content

Module register

Module register 

Source
Expand description

POST /agentmux/reactive/register: a pane says which agent it runs.

Structs§

RegisterRequest 🔒

Functions§

announce_registration 🔒
What a registration that went through sets going: the block’s controller, the registries other instances read, the subagent watch, the cloud subscription and the Swarm’s event.
block_uid 🔒
Identity M2 (spec §4.4.1 row 3): a presence signal keyed by block. The sent name, as its route name, becomes the display binding and the cross-instance registries’ name, but identity is NOT taken from it (it may be a stale meta value or an id the agent emitted over OSC). The UID comes from the row the server made for this block, read on spawn_blocking like every async-handler store read (#1782).
handle_reactive_register 🔒
live_in_another_instance 🔒
One live instance per agent (SPEC_AGENT_SINGLE_LIVE_INSTANCE_2026_09_24 Phase 1, I9): a pane whose agent runs in another instance on this host must not register it. The cross-instance registries written below send this agent’s jekts to the freshest entry, so registering here would pull the live instance’s messages to a pane refused its turns. The frontend only logs a failed registration; it doesn’t retry.
watch_subagents 🔒
Auto-watch this agent’s Claude Code config dir for subagent JSONL files. block_id stamps subagent events with the owning pane so the frontend routes ⚡ panels to it only. The dir comes from the block’s own cmd:env (see resolve_claude_config_dir).