* Returns the canonical git repo root if available, otherwise falls back to * the stable project root. Uses findCanonicalGitRoot so all worktrees of the * same repo share one auto-memory directory (anthropics/claude-code#24382).
()
| 201 | * same repo share one auto-memory directory (anthropics/claude-code#24382). |
| 202 | */ |
| 203 | function getAutoMemBase(): string { |
| 204 | return findCanonicalGitRoot(getProjectRoot()) ?? getProjectRoot() |
| 205 | } |
| 206 | |
| 207 | /** |
| 208 | * Returns the auto-memory directory path. |
no test coverage detected