Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Commit 275fbe3

Browse files
zircoteclaude
andcommitted
fix: use project-specific index path in status and validate commands
Changed get_index_path() to get_project_index_path() in both commands to correctly read from the project-specific .memory/index.db rather than the legacy global ~/.local/share/memory-plugin/index.db. This fixes the issue where /memory:status reported 0 memories despite 352 memories existing in the project index. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0d673cd commit 275fbe3

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

commands/status.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$(ls -d ~/.claude/plugins/cache/git-notes-mem
6868
uv run --directory "$PLUGIN_ROOT" python3 -c "
6969
from git_notes_memory import get_sync_service
7070
from git_notes_memory.index import IndexService
71-
from git_notes_memory.config import get_embedding_model, get_index_path, get_data_path
71+
from git_notes_memory.config import get_embedding_model, get_project_index_path, get_data_path
7272
7373
sync = get_sync_service()
74-
index_path = get_index_path()
74+
index_path = get_project_index_path()
7575
7676
print('## Memory System Status\n')
7777
print('| Metric | Value |')
@@ -109,10 +109,10 @@ uv run --directory "$PLUGIN_ROOT" python3 -c "
109109
import subprocess
110110
from git_notes_memory import get_sync_service
111111
from git_notes_memory.index import IndexService
112-
from git_notes_memory.config import get_embedding_model, get_index_path, get_data_path, NAMESPACES
112+
from git_notes_memory.config import get_embedding_model, get_project_index_path, get_data_path, NAMESPACES
113113
114114
sync = get_sync_service()
115-
index_path = get_index_path()
115+
index_path = get_project_index_path()
116116
117117
print('## Memory System Status (Detailed)\n')
118118

commands/validate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ except ImportError as e:
125125
sys.exit(1)
126126
127127
try:
128-
from git_notes_memory.config import get_index_path, get_data_path, NAMESPACES
128+
from git_notes_memory.config import get_project_index_path, get_data_path, NAMESPACES
129129
test_pass("Config module", f"Data path: {get_data_path()}")
130130
except Exception as e:
131131
test_fail("Config module", e)
@@ -178,7 +178,7 @@ print("## 3. Index Health")
178178
print("-" * 40)
179179
180180
try:
181-
index_path = get_index_path()
181+
index_path = get_project_index_path()
182182
if index_path.exists():
183183
test_pass("Index file exists", str(index_path))
184184
index = IndexService(index_path)

0 commit comments

Comments
 (0)