mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-06 15:12:30 +09:00
When the panel restarts or the agent process crashes without a clean disconnect, Server.status stays 'online' in the DB even though agent_registry has no in-memory record. The UI then shows a contradiction: "online" pill in the header, "Agent not connected" on the Docker tab. Reconcile in get_server: if there's no in-memory agent and the row says online, flip to offline and persist. The capabilities cache + last_seen still surface so the user sees the last known state, but the UI now correctly reflects that the agent isn't reachable right now. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>