beads/cmd
julianknutsen dba2c993b2 fix: replace fsnotify with polling in bd show --watch
bd show --watch used fsnotify to watch the .beads directory for file
changes, but Dolt stores data in a server-side database — not files —
so file watchers never fired. The display never updated even when the
underlying bead changed status (e.g., to closed/done).

Switch to the same polling approach already used by bd list --watch:
query the database on a 2-second ticker and compare snapshots to detect
changes. This matches the pattern in watchIssues() (list.go:116-161).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 02:47:19 +01:00
..
bd fix: replace fsnotify with polling in bd show --watch 2026-03-22 02:47:19 +01:00