From 1488c5b251bc06d4c72483cce38984b7264d57e6 Mon Sep 17 00:00:00 2001 From: Sargun Vohra Date: Sat, 4 Apr 2026 21:11:48 -0700 Subject: [PATCH] fix: add writable global memory mount for main agent Main group had no mount for the global memory directory (/workspace/global), so it could only reach it through the read-only project root. This meant the main agent couldn't write to global memory despite groups/main/CLAUDE.md instructing it to do so. Add a writable mount at /workspace/global for the isMain branch, matching the read-only mount that non-main groups already have. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/container-runner.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/container-runner.ts b/src/container-runner.ts index 31efa96..dafa143 100644 --- a/src/container-runner.ts +++ b/src/container-runner.ts @@ -104,6 +104,16 @@ function buildVolumeMounts( containerPath: '/workspace/group', readonly: false, }); + + // Global memory directory — writable for main so it can update shared context + const globalDir = path.join(GROUPS_DIR, 'global'); + if (fs.existsSync(globalDir)) { + mounts.push({ + hostPath: globalDir, + containerPath: '/workspace/global', + readonly: false, + }); + } } else { // Other groups only get their own folder mounts.push({