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 <noreply@anthropic.com>
This commit is contained in:
2026-02-20 15:43:21 -05:00
parent 90350a2090
commit 4af38a5d2e
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -2,5 +2,5 @@ apiVersion: v2
name: devcontainer name: devcontainer
description: Antigravity Dev Container with Happy Coder AI assistant description: Antigravity Dev Container with Happy Coder AI assistant
type: application type: application
version: 0.1.10 version: 0.1.11
appVersion: "latest" appVersion: "latest"
+7 -2
View File
@@ -21,8 +21,13 @@ echo "Workspace: $WORKSPACE_DIR"
case "$IDE" in case "$IDE" in
antigravity) antigravity)
echo "Opening Google Antigravity in: $WORKSPACE_DIR" echo "Opening Google Antigravity in: $WORKSPACE_DIR"
# --no-sandbox is required for Electron apps in Docker (no kernel sandbox available) # --no-sandbox is required for Electron apps in Docker (no kernel sandbox available).
exec antigravity --no-sandbox --new-window --wait "$WORKSPACE_DIR" # 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) none)
echo "IDE=none: no IDE launched, keeping container alive." echo "IDE=none: no IDE launched, keeping container alive."