Files
beads/cmd/bd
Steve Yegge 97500a8de0 fix(sync): prevent daemon race condition from dirtying working directory
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>
2025-12-13 06:54:46 -08:00
..
2025-12-03 16:24:46 -08:00
2025-12-13 10:07:36 +11:00
2025-11-25 19:32:05 -08:00
2025-12-07 20:57:58 +11:00
2025-12-13 10:07:36 +11:00
2025-11-24 21:16:44 -08:00
2025-11-24 11:28:32 -08:00
2025-12-13 10:07:36 +11:00
2025-11-23 17:16:27 -08:00
2025-12-03 16:24:46 -08:00