From a3cdc0d6d0130c806f3d7a1f70a83bccb89b22cc Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Mon, 22 Jun 2026 18:00:20 +0000 Subject: [PATCH] chrome-service: size headed Chrome window to fill Xvfb (noVNC cut-off) The noVNC view showed the browser in the top-left with the rest of the framebuffer black. Cause: Chrome launched with no --window-size, and there's no window manager, so it opened at its profile-persisted (smaller) size inside the 1280x720 Xvfb. Add --window-size=1280,720 --window-position=0,0 so the window fills the screen on every launch (fresh pods/profiles too). Live windows were already resized via CDP as a stopgap. Co-Authored-By: Claude Opus 4.8 --- docs/architecture/chrome-service.md | 5 ++++- stacks/chrome-service/main.tf | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/architecture/chrome-service.md b/docs/architecture/chrome-service.md index ba1a853c..c048894c 100644 --- a/docs/architecture/chrome-service.md +++ b/docs/architecture/chrome-service.md @@ -170,7 +170,10 @@ minor, with Python-side bindings pre-installed. Authentik-gated. The bare host serves `vnc.html` (image symlinks `index.html → vnc.html`); add `?autoconnect=true&resize=scale&path=websockify` to skip the Connect button. The view is **black when no browser window is - open** (idle) — that is normal, not a failed connection. + open** (idle) — that is normal, not a failed connection. Chrome is launched + with `--window-size=1280,720 --window-position=0,0` to fill the Xvfb screen + (no window manager runs, so without it Chrome opens at its profile-persisted + size and the rest of the framebuffer shows as a black cut-off). ### noVNC fd-sweep gotcha (stuck "Connecting") diff --git a/stacks/chrome-service/main.tf b/stacks/chrome-service/main.tf index c1dd48a8..7d370fbd 100644 --- a/stacks/chrome-service/main.tf +++ b/stacks/chrome-service/main.tf @@ -252,6 +252,8 @@ resource "kubernetes_deployment" "chrome_service" { --disable-dev-shm-usage \ --password-store=basic \ --use-mock-keychain \ + --window-position=0,0 \ + --window-size=1280,720 \ about:blank EOT ]