From 8cdd22d27d532d73bc570340f3ffa3432934b012 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Thu, 19 Mar 2026 08:07:34 -0700 Subject: [PATCH] feat(workspaces): unify host and container paths in startup script --- .../workspaces/scripts/providers/GceCosProvider.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.gemini/skills/workspaces/scripts/providers/GceCosProvider.ts b/.gemini/skills/workspaces/scripts/providers/GceCosProvider.ts index 1ab20810ab..5f24bf100e 100644 --- a/.gemini/skills/workspaces/scripts/providers/GceCosProvider.ts +++ b/.gemini/skills/workspaces/scripts/providers/GceCosProvider.ts @@ -80,13 +80,15 @@ export class GceCosProvider implements WorkspaceProvider { mkdir -p /mnt/disks/data/main /mnt/disks/data/worktrees /mnt/disks/data/scripts /mnt/disks/data/config /mnt/disks/data/policies chmod -R 777 /mnt/disks/data - # 3. Handle Global Persistence Symlink - # We create a global /workspaces link that points to the data disk. - # This avoids dependencies on ephemeral home directories. + # 3. Handle Unified Path Symlink (/home/node/.workspaces) + # This ensures absolute paths match perfectly between host and container. + mkdir -p /home/node + ln -sfn /mnt/disks/data /home/node/.workspaces + chown -R 1000:1000 /home/node + + # Also ensure host users can find it ln -sfn /mnt/disks/data /workspaces chmod 777 /workspaces - - # Ensure host users can find it via their home too (if directory exists) for h in /home/*_google_com; do [ -d "$h" ] || continue ln -sfn /mnt/disks/data "$h/.workspaces"