Steve Yegge
6b78b3fceb
fix: bd sync fails to copy local changes TO beads-sync worktree ( #810 )
...
The bug: In a bare repo + worktrees setup, jsonlRelPath was calculated
relative to the project root (containing all worktrees), resulting in
paths like "main/.beads/issues.jsonl". But the sync branch worktree uses
sparse checkout for .beads/*, so files are at ".beads/issues.jsonl".
This caused SyncJSONLToWorktreeWithOptions to write to the wrong location
(e.g., worktree/main/.beads/ instead of worktree/.beads/), so changes
made locally never reached the sync branch worktree.
#785 fixed the reverse direction (worktree → local) by adding
normalizeBeadsRelPath(), but the local → worktree direction was missed.
Fix:
- Export NormalizeBeadsRelPath() (uppercase) for cross-package use
- Apply normalization in SyncJSONLToWorktreeWithOptions for dstPath
- Apply normalization in daemon_sync_branch.go for worktreeJSONLPath
in both commit and pull paths
- Add unit tests for the normalization function
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2025-12-30 16:49:50 -08:00
..
2025-12-30 14:13:32 -08:00
2025-12-29 15:58:24 -08:00
2025-12-29 21:26:32 -08:00
2025-12-24 00:06:41 -08:00
2025-12-18 18:23:30 -08:00
2025-12-18 18:23:30 -08:00
2025-12-28 20:48:37 -08:00
2025-12-30 14:13:32 -08:00
2025-12-28 16:40:43 -08:00
2025-12-27 16:21:08 -08:00
2025-12-28 01:56:53 -08:00
2025-12-29 21:15:46 -08:00
2025-12-18 18:23:30 -08:00
2025-12-20 03:24:51 -08:00
2025-12-28 16:23:45 -08:00
2025-12-22 21:15:41 -08:00
2025-12-29 12:38:02 -08:00
2025-12-24 00:06:41 -08:00
2025-12-28 10:05:16 -08:00
2025-12-27 16:02:15 -08:00
2025-12-23 01:56:19 -08:00
2025-12-28 18:43:09 -08:00
2025-12-28 16:40:43 -08:00
2025-12-28 18:43:09 -08:00
2025-12-24 00:08:10 -08:00
2025-12-30 00:00:25 -08:00
2025-12-30 00:00:25 -08:00
2025-12-29 14:03:39 -08:00
2025-12-30 16:29:28 -08:00
2025-12-25 18:40:15 -08:00
2025-12-29 16:17:51 -08:00
2025-12-23 12:06:42 -08:00
2025-12-16 17:26:06 -08:00
2025-12-27 16:02:15 -08:00
2025-12-30 16:27:59 -08:00
2025-12-27 16:02:15 -08:00
2025-12-28 02:11:13 -08:00
2025-12-27 16:02:15 -08:00
2025-12-18 18:23:30 -08:00
2025-12-27 16:02:15 -08:00
2025-12-28 10:05:16 -08:00
2025-12-19 17:50:14 -08:00
2025-12-29 14:43:00 -08:00
2025-12-29 14:43:00 -08:00
2025-12-24 00:06:41 -08:00
2025-12-28 10:05:16 -08:00
2025-12-24 00:06:41 -08:00
2025-12-22 21:30:57 -08:00
2025-12-30 00:27:12 -08:00
2025-12-11 07:11:15 -05:00
2025-12-24 00:06:41 -08:00
2025-12-27 16:02:15 -08:00
2025-12-30 16:49:50 -08:00
2025-12-27 16:02:15 -08:00
2025-12-24 00:06:41 -08:00
2025-12-28 10:05:16 -08:00
2025-12-11 07:11:15 -05:00
2025-12-24 00:06:41 -08:00
2025-12-28 10:05:16 -08:00
2025-12-27 16:02:15 -08:00
2025-12-28 16:40:43 -08:00
2025-12-20 17:22:43 -08:00
2025-12-27 16:02:15 -08:00
2025-12-24 00:06:41 -08:00
2025-12-29 15:10:59 -08:00
2025-12-21 15:50:10 -08:00
2025-12-24 13:03:27 -08:00
2025-12-30 15:52:33 -08:00
2025-12-28 16:40:43 -08:00
2025-12-23 01:56:19 -08:00
2025-12-30 16:29:28 -08:00
2025-12-13 10:04:01 +11:00
2025-12-29 22:59:48 -08:00
2025-12-28 18:43:09 -08:00
2025-12-29 14:39:43 -08:00
2025-12-28 20:48:37 -08:00
2025-12-28 20:48:37 -08:00
2025-12-28 20:48:37 -08:00
2025-12-30 10:34:41 -08:00
2025-12-28 10:05:16 -08:00
2025-12-20 17:09:50 -08:00
2025-12-29 14:39:43 -08:00
2025-12-25 13:56:19 -08:00
2025-12-24 00:07:52 -08:00
2025-12-07 21:14:13 +11:00
2025-12-24 00:06:41 -08:00
2025-12-28 10:05:16 -08:00
2025-12-21 23:08:00 -08:00
2025-12-19 01:47:03 -08:00
2025-12-23 01:56:19 -08:00
2025-12-18 18:56:59 -08:00
2025-12-22 21:15:41 -08:00
2025-12-30 14:13:32 -08:00
2025-12-28 10:05:16 -08:00
2025-12-27 16:02:15 -08:00
2025-12-28 20:48:37 -08:00
2025-12-20 01:59:31 -08:00
2025-12-27 16:02:15 -08:00
2025-12-28 20:48:37 -08:00
2025-12-30 14:13:32 -08:00
2025-12-29 14:33:19 -08:00
2025-12-27 16:02:15 -08:00
2025-12-24 00:06:41 -08:00
2025-12-16 14:20:49 -08:00
2025-12-28 10:05:16 -08:00
2025-12-22 21:15:41 -08:00
2025-12-30 14:13:32 -08:00
2025-12-28 18:43:09 -08:00
2025-12-20 17:09:50 -08:00
2025-12-28 18:43:09 -08:00
2025-12-28 20:48:37 -08:00
2025-12-28 18:43:09 -08:00
2025-12-20 17:09:50 -08:00
2025-12-28 18:43:09 -08:00
2025-12-29 14:52:29 -08:00
2025-12-30 16:45:51 -08:00
2025-12-16 14:20:49 -08:00
2025-12-28 10:05:16 -08:00
2025-12-30 16:07:31 -08:00
2025-12-30 16:07:31 -08:00
2025-12-16 00:56:06 -08:00
2025-12-28 10:05:16 -08:00
2025-12-28 18:43:09 -08:00
2025-12-28 18:43:09 -08:00
2025-12-19 17:58:24 -08:00
2025-12-28 18:43:09 -08:00
2025-12-27 16:02:15 -08:00
2025-12-30 16:04:39 -08:00
2025-12-30 14:13:32 -08:00
2025-12-30 14:13:32 -08:00
2025-12-28 18:43:09 -08:00
2025-12-28 18:43:09 -08:00
2025-12-23 01:56:19 -08:00
2025-12-30 16:47:38 -08:00
2025-12-22 23:30:08 -08:00
2025-12-20 17:09:50 -08:00
2025-12-30 00:06:42 -08:00
2025-12-30 00:06:42 -08:00
2025-12-04 11:21:43 -08:00
2025-12-30 14:13:32 -08:00
2025-12-30 00:06:42 -08:00
2025-12-30 00:06:42 -08:00
2025-12-30 00:40:16 -08:00
2025-12-29 17:10:26 -08:00
2025-12-27 16:02:15 -08:00
2025-12-29 16:17:51 -08:00
2025-12-23 03:57:08 -08:00
2025-12-30 14:13:32 -08:00
2025-12-30 06:59:51 -08:00
2025-12-27 16:02:15 -08:00
2025-12-27 16:02:15 -08:00
2025-12-30 16:29:28 -08:00
2025-12-28 10:05:16 -08:00
2025-12-18 11:48:02 -08:00
2025-12-20 17:09:50 -08:00
2025-12-29 14:17:44 -08:00
2025-12-29 14:17:44 -08:00
2025-12-22 18:47:18 -05:00
2025-12-29 16:17:51 -08:00
2025-12-27 21:33:01 -08:00
2025-12-20 17:09:50 -08:00
2025-12-20 17:09:50 -08:00
2025-12-28 19:52:51 -08:00
2025-12-27 16:02:15 -08:00
2025-12-27 16:02:15 -08:00
2025-12-28 16:40:43 -08:00
2025-12-15 23:59:21 -08:00
2025-12-27 22:24:19 -08:00
2025-12-27 22:24:19 -08:00
2025-12-20 17:09:50 -08:00
2025-12-29 12:43:22 -08:00
2025-12-29 13:16:47 -08:00
2025-12-22 01:26:45 -08:00
2025-12-16 13:06:47 -08:00
2025-12-27 16:21:08 -08:00
2025-12-04 11:21:43 -08:00
2025-12-20 17:09:50 -08:00
2025-12-27 16:02:15 -08:00
2025-12-24 00:06:41 -08:00
2025-12-20 17:09:50 -08:00
2025-12-21 23:11:48 -08:00
2025-12-28 18:43:09 -08:00
2025-12-27 16:02:15 -08:00
2025-12-30 16:00:22 -08:00
2025-12-30 15:52:33 -08:00
2025-12-28 10:05:16 -08:00
2025-12-22 21:30:57 -08:00
2025-12-24 00:10:14 -08:00
2025-12-24 00:10:14 -08:00
2025-12-30 15:57:08 -08:00
2025-12-30 15:57:08 -08:00
2025-12-20 13:14:39 -08:00
2025-12-20 17:22:43 -08:00
2025-12-29 14:39:43 -08:00
2025-12-19 17:52:27 -08:00
2025-12-25 12:05:46 -08:00
2025-12-28 10:05:16 -08:00
2025-12-28 10:05:16 -08:00
2025-12-29 15:58:24 -08:00
2025-12-27 16:02:15 -08:00
2025-12-28 10:05:16 -08:00
2025-12-04 11:21:43 -08:00
2025-12-30 16:05:15 -08:00
2025-12-28 18:43:09 -08:00
2025-12-24 23:33:34 -08:00
2025-12-29 16:17:51 -08:00
2025-12-28 20:48:37 -08:00
2025-12-30 16:29:28 -08:00
2025-12-30 16:29:28 -08:00
2025-12-27 16:02:15 -08:00
2025-12-27 16:08:34 -08:00
2025-12-27 16:02:15 -08:00
2025-12-27 16:02:15 -08:00
2025-12-20 17:22:43 -08:00
2025-12-28 18:43:09 -08:00
2025-12-20 17:09:50 -08:00
2025-12-30 16:29:28 -08:00
2025-12-30 16:29:28 -08:00
2025-12-28 10:05:16 -08:00
2025-12-29 16:34:14 -08:00
2025-12-27 21:27:44 -08:00
2025-12-29 16:17:51 -08:00
2025-12-29 14:39:43 -08:00
2025-12-27 16:02:15 -08:00
2025-12-16 00:06:19 -08:00