refactor: sync simplification (#752)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-01-30 10:09:29 -08:00
committed by GitHub
parent 4859d3fca1
commit 8c3a6e7da0
4 changed files with 991 additions and 304 deletions

View File

@@ -2076,12 +2076,13 @@ export default function App({
pendingMemfsConflictsRef.current = status.conflicts;
} else if (
status.newFiles.length > 0 ||
status.pendingFromFile.length > 0
status.pendingFromFile.length > 0 ||
status.locationMismatches.length > 0
) {
// New files or file changes detected - auto-sync
// New files, file changes, or location mismatches detected - auto-sync
debugLog(
"memfs",
`Auto-syncing: ${status.newFiles.length} new, ${status.pendingFromFile.length} changed`,
`Auto-syncing: ${status.newFiles.length} new, ${status.pendingFromFile.length} changed, ${status.locationMismatches.length} location mismatches`,
);
pendingMemfsConflictsRef.current = null;
await runMemoryFilesystemSync("auto");