After bd sync completes with sync.branch mode, the daemon or next CLI command could see a hash mismatch between the restored JSONL file and the DB metadata, triggering auto-import which then schedules re-export, dirtying the working directory. Two fixes: 1. sync.go: Update jsonl_content_hash after restoreBeadsDirFromBranch to match the restored file hash 2. daemon_sync.go: Update jsonl_content_hash after performAutoImport succeeds (was missing, unlike CLI import path) Fixes: bd-lw0x, bd-hxou 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 KiB
28 KiB