* Direct override for the full auto-memory directory path via env var. * When set, getAutoMemPath()/getAutoMemEntrypoint() return this path directly * instead of computing `{base}/projects/{sanitized-cwd}/memory/`. * * Used by Cowork to redirect memory to a space-scoped mount where the * per-se
()
| 159 | * produce a different project-key for every session. |
| 160 | */ |
| 161 | function getAutoMemPathOverride(): string | undefined { |
| 162 | return validateMemoryPath( |
| 163 | process.env.CLAUDE_COWORK_MEMORY_PATH_OVERRIDE, |
| 164 | false, |
| 165 | ) |
| 166 | } |
| 167 | |
| 168 | /** |
| 169 | * Settings.json override for the full auto-memory directory path. |
no test coverage detected