Public: anyone can read this; the crew can change it.
Stop a shell, or stop all idle ones, from your account and through MCP #10545
Reviewed pull #10630 at its head: ticked POST routes stop one of your shells by id and stop every shell of yours that is detached and past half its idle limit; each is a same-origin form post that refuses another person's session (404) and answers on the account page it came from, with a one-line receipt.; The Shells list from the previous issue gets a Stop button per live line and one Stop all idle button.; Stopping records end_reason = 'stopped' and ends the cell's processes.; The sessions MCP tool's kind: "shells" takes action: "end" with an id, and action: "end_idle", in the same words as the page.; Tests: stop ends the session and records it; a stranger's id is refused; stop-all-idle leaves a session that has a peer attached alone..
Split from #10457 (Stop and Stop all idle).
Done when:
POSTroutes stop one of your shells by id and stop every shell of yours that is detached and past half its idle limit; each is a same-origin form post that refuses another person's session (404) and answers on the account page it came from, with a one-line receipt.end_reason = 'stopped'and ends the cell's processes.sessionsMCP tool'skind: "shells"takesaction: "end"with anid, andaction: "end_idle", in the same words as the page.