You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix global sync status blocking healthy projects from write operations #182
The current sync status system blocks ALL projects from write operations if ANY project has sync failures, breaking the intended project isolation in Basic Memory.
Problem
When any project has sync issues (e.g., "main" project with UNIQUE constraint failed), the global sync status prevents write operations in completely healthy projects.
Example Scenario
Switch to healthy project: basic-memory-testing-20250626-1009 (✅ 6 entities, sync working)
Try to create a note with write_note()
Result: ❌ Sync failed for: main - Please wait for migration to complete before creating notes
Expected: Note should be created successfully in the healthy project
Root Cause
In SyncStatusTracker._update_global_status():
ifany(s==SyncStatus.FAILEDforsinstatuses):
self._global_status=SyncStatus.FAILED# Blocks ALL projects
The write_note tool checks global status instead of project-specific status:
migration_status=awaitwait_for_migration_or_return_status(timeout=5.0)
ifmigration_status: # Returns error if ANY project failedreturnf"# System Status\n\n{migration_status}\n\nPlease wait for migration to complete before creating notes."
Impact
❌ Breaks multi-project isolation
❌ Prevents productive work in healthy projects
❌ Poor user experience when unrelated projects have issues
❌ Contradicts Basic Memory's design principle of project independence
Activity
fix: global sync status blocking healthy projects from write operations
phernandez commentedon Jun 26, 2025
fixed in #183