Merge pull request #1644 from sargunv/fix/global-memory-path
Fix global memory for main agent: correct path and add writable mount
This commit is contained in:
@@ -258,7 +258,7 @@ Read `/workspace/project/data/registered_groups.json` and format it nicely.
|
|||||||
|
|
||||||
## Global Memory
|
## Global Memory
|
||||||
|
|
||||||
You can read and write to `/workspace/project/groups/global/CLAUDE.md` for facts that should apply to all groups. Only update global memory when explicitly asked to "remember this globally" or similar.
|
You can read and write to `/workspace/global/CLAUDE.md` for facts that should apply to all groups. Only update global memory when explicitly asked to "remember this globally" or similar.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -104,6 +104,16 @@ function buildVolumeMounts(
|
|||||||
containerPath: '/workspace/group',
|
containerPath: '/workspace/group',
|
||||||
readonly: false,
|
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 {
|
} else {
|
||||||
// Other groups only get their own folder
|
// Other groups only get their own folder
|
||||||
mounts.push({
|
mounts.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user