From 4af38a5d2efca8a50dc1dc4e052d9c6050e01944 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Fri, 20 Feb 2026 15:43:21 -0500 Subject: [PATCH] fix: pin Antigravity user data to home PVC to survive pod restarts Without explicit --user-data-dir and --extensions-dir, Antigravity may default to a path outside /home and lose settings on restart, causing the setup wizard to reappear. Pinning both to $HOME ensures they land on the persistent home PVC. Co-Authored-By: Claude Sonnet 4.6 --- chart/Chart.yaml | 2 +- scripts/startapp.sh | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 2f862f3..908f511 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: devcontainer description: Antigravity Dev Container with Happy Coder AI assistant type: application -version: 0.1.10 +version: 0.1.11 appVersion: "latest" diff --git a/scripts/startapp.sh b/scripts/startapp.sh index 7a5a887..2502573 100644 --- a/scripts/startapp.sh +++ b/scripts/startapp.sh @@ -21,8 +21,13 @@ echo "Workspace: $WORKSPACE_DIR" case "$IDE" in antigravity) echo "Opening Google Antigravity in: $WORKSPACE_DIR" - # --no-sandbox is required for Electron apps in Docker (no kernel sandbox available) - exec antigravity --no-sandbox --new-window --wait "$WORKSPACE_DIR" + # --no-sandbox is required for Electron apps in Docker (no kernel sandbox available). + # Explicit --user-data-dir and --extensions-dir pin config to the home PVC so + # settings and the setup wizard state survive pod restarts. + exec antigravity --no-sandbox \ + --user-data-dir "$HOME/.config/antigravity" \ + --extensions-dir "$HOME/.antigravity/extensions" \ + --new-window --wait "$WORKSPACE_DIR" ;; none) echo "IDE=none: no IDE launched, keeping container alive."