mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 04:32:32 +00:00
157273726d
The backend repeats AdminAction on every telemetry response while the session row carries it. The agent handled each echo anew: a new admin_marked_session with an immediate upload, whose response carried the next echo. With a running agent on a Mark-Succeeded session that looped at the device rate limit until the agent ended; Mark-Failed ended the agent and stayed bounded. - ServerControlPlane: AdminActionLatch admits the first AdminAction of a process; every later one only logs at Debug. - AdminAction=Succeeded runs the agent's own termination pipeline with outcome Succeeded, like Failed: what the portal's confirmation dialog and the docs promise, and what the restart path already did. - HandleAdminActionTests: Succeeded terminates; repeated echoes, a later different outcome and concurrent callers are handled once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>