From 14954131bd7ef07f0ed00b2493e96d3fea9adbd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Felix=20=C5=A0ulc?= Date: Sat, 10 Oct 2026 21:32:23 +0200 Subject: [PATCH 01/12] feat(control-center): count a slot as ready only when its sidecar is up /api/slots and /healthz only probed the VNC port, so a slot whose sidecar was down showed as ready and opening a file then failed with 502. Probe the sidecar's /healthz too (1s timeout) and report vnc, sidecar and ready (= both) per slot. The tab tooltip says which half is down. First tests for internal/api cover all four combinations. --- AGENTS.md | 4 +- README.md | 4 +- internal/api/handlers.go | 43 +++++++++++---- internal/api/handlers_test.go | 99 +++++++++++++++++++++++++++++++++++ web/app.js | 6 +++ 5 files changed, 141 insertions(+), 15 deletions(-) create mode 100644 internal/api/handlers_test.go diff --git a/AGENTS.md b/AGENTS.md index 27a863d..8158524 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -48,8 +48,8 @@ Listens on `:8080` (`LISTEN_ADDR`), plus TLS on `TLS_ADDR` when set. | Method | Path | Purpose | |--------|--------------------------|---------| | GET | `/` | Landing page with `