Expand description
Stopping a Job’s run in another AgentMux on this computer: the sender’s
hook and the receiving route (backend/jobs/remote.rs says why and what
is written to the run).
A run delivered to an agent in another channel is followed by that channel
(RunLedger::follow_forwarded). A timeout or a cancel_other overlap on
the firing side asks that channel’s srv, over loopback with the key it
lists in the shared registry (the same trust as the inject forward), to
close the run and interrupt the agent’s turn, the interrupt a local stop
sends. It is not the Stop tool: that closes the agent, and asks its user
first.
Structs§
Constants§
- ASK_
TIMEOUT 🔒 - How long the other srv has to answer: it only closes a row and signals a pane.
- STOP_
RUN_ 🔒PATH - The route on the receiving srv.
Functions§
- forward 🔒
- Deliver
stopto the srv that follows its run, and say how it went. - handle_
jobs_ 🔒stop_ run POST /agentmux/jobs/stop-run: close the run this instance follows and interrupt its pane’s turn. Only a run this process follows in the named pane, that the asking AgentMux fired and asked in its row to stop. The route is on the full-key router only: not LAN-reachable, and not on the container allowlist.- install 🔒
- Let
ledgerask another channel to stop the runs it follows. - install_
with 🔒 installwith the lookup of the other srv given: tests point it at one they started.- post_
stop 🔒 POSTstopto the srv aturl, which answers whether it took it.- registry_
resolver 🔒 - The shared registry’s entry for the pane, on another instance of this computer.
Type Aliases§
- Resolve 🔒
- Where the AgentMux holding a pane listens, and its key:
(url, auth key).