From 7b7ac72c14856f06130beab1d7143fcfe277d5fe Mon Sep 17 00:00:00 2001 From: DhanushSantosh Date: Sun, 18 Jan 2026 03:06:09 +0530 Subject: [PATCH] fix: use shared data directory for Electron and web modes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CRITICAL FIX: Electron and web mode were using DIFFERENT data directories: - Electron: Docker volume 'automaker-data' (isolated from host) - Web: Local ./data directory (host filesystem) This caused projects opened in Electron to never appear in web mode because they were synced to a completely separate Docker volume. Solution: Mount the host's ./data directory into both containers This ensures Electron and web mode always share the same data directory and all projects are immediately visible across modes. Now when you: 1. Open projects in Electron → synced to ./data 2. Switch to web mode → loads from same ./data 3. Restart server → both see the same projects Fixes issue where projects opened in Electron don't appear in web mode. Co-Authored-By: Claude Haiku 4.5 --- docker-compose.dev-server.yml | 9 ++++----- docker-compose.dev.yml | 8 +++----- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/docker-compose.dev-server.yml b/docker-compose.dev-server.yml index 9ff0972e..ea44fffc 100644 --- a/docker-compose.dev-server.yml +++ b/docker-compose.dev-server.yml @@ -59,8 +59,10 @@ services: # This ensures native modules are built for the container's architecture - automaker-dev-node-modules:/app/node_modules - # Persist data across restarts - - automaker-data:/data + # IMPORTANT: Mount local ./data directory (not a Docker volume) + # This ensures Electron and web mode share the same data directory + # and projects opened in either mode are visible in both + - ./data:/data # Persist CLI configurations - automaker-claude-config:/home/automaker/.claude @@ -97,9 +99,6 @@ volumes: name: automaker-dev-node-modules # Named volume for container-specific node_modules - automaker-data: - name: automaker-data - automaker-claude-config: name: automaker-claude-config diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index de4ebb11..d9cf830f 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -60,8 +60,9 @@ services: # This ensures native modules are built for the container's architecture - automaker-dev-node-modules:/app/node_modules - # Persist data across restarts - - automaker-data:/data + # IMPORTANT: Mount local ./data directory (not a Docker volume) + # This ensures data is consistent across Electron and web modes + - ./data:/data # Persist CLI configurations - automaker-claude-config:/home/automaker/.claude @@ -141,9 +142,6 @@ volumes: name: automaker-dev-node-modules # Named volume for container-specific node_modules - automaker-data: - name: automaker-data - automaker-claude-config: name: automaker-claude-config