Stand down when the portal revokes this instance

The connector treats close code 4410 from the hub as final: it stops
dialling, keeps cloud.json so a new claim code replaces it, and reports
revoked in /cloud/status, which Settings → Remote access shows as Removed
at the portal. Enrolling again, or a restart, brings the link back. An
older hub still answers 403 and the link keeps retrying as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
2026-10-15 10:30:38 +02:00
co-authored by Claude Opus 5.5
parent 0ca692b371
commit 946376dd0a
5 changed files with 112 additions and 11 deletions
+1
View File
@@ -60,6 +60,7 @@ def read_status(request: Request) -> dict[str, Any]:
"instance_id": config.instance_id if config else None,
"last_error": None,
"connected_since": None,
"revoked": False,
}
status: dict[str, Any] = connector.status()
return status