Nicolas Suzor
7fe824781a
fix: use route prefix when creating issues in rigs ( #1028 )
...
* fix(create): Use prefix from routes.jsonl when creating issues with --rig
When using `bd create --rig <name>`, the prefix from routes.jsonl was
being discarded. This caused issues to be created with the target
database's default prefix instead of the route's prefix.
This is particularly problematic when using the redirect mechanism to
share a single database across multiple rigs - the redirect correctly
routes to the shared database, but the prefix was not being applied.
The fix:
1. Capture the prefix from routing.ResolveBeadsDirForRig()
2. Temporarily override the target database's issue_prefix config
3. Restore the original prefix after issue creation
Example scenario that now works:
- routes.jsonl: {"prefix": "aops-", "path": "src/academicOps"}
- src/academicOps/.beads/redirect points to ~/writing/.beads
- `bd create --rig aops "Test"` now creates aops-xxx instead of ns-xxx
Co-Authored-By: Claude <noreply@anthropic.com >
* fix(create): pass prefix via struct field instead of mutating config
The previous approach temporarily mutated the database's issue_prefix
config during cross-rig issue creation, then restored it afterward.
This was fragile in multi-user scenarios where concurrent operations
could see the wrong prefix.
New approach:
- Add PrefixOverride field to types.Issue
- CreateIssue checks PrefixOverride first, uses it if set
- createInRig sets issue.PrefixOverride instead of mutating config
This passes state as a parameter rather than mutating shared state,
making it safe for concurrent multi-user access.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
---------
Co-authored-by: Claude <noreply@anthropic.com >
2026-01-12 01:20:32 -08:00
..
2026-01-11 20:44:29 -08:00
2026-01-09 23:07:46 -08:00
2026-01-11 00:25:32 -08:00
2025-12-24 00:06:41 -08:00
2025-12-28 20:48:37 -08:00
2026-01-01 10:51:51 -08:00
2026-01-10 12:43:46 -08:00
2025-12-28 16:40:43 -08:00
2025-12-27 16:21:08 -08:00
2026-01-06 22:18:37 -08:00
2026-01-03 13:25:15 -08:00
2026-01-06 22:18:37 -08:00
2026-01-06 19:05:34 -08:00
2026-01-08 14:36:50 -08:00
2026-01-09 12:38:18 -08:00
2026-01-06 12:52:19 -08:00
2026-01-04 15:43:57 -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
2026-01-08 12:15:07 -08:00
2026-01-09 22:57:07 -08:00
2026-01-11 18:17:14 -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
2026-01-06 18:59:25 -08:00
2026-01-06 19:37:20 -08:00
2026-01-02 00:02:20 -08:00
2025-12-29 14:03:39 -08:00
2026-01-01 10:46:56 -08:00
2026-01-01 10:46:56 -08:00
2026-01-02 14:01:56 -08:00
2026-01-02 16:00:54 -08:00
2025-12-23 12:06:42 -08:00
2025-12-27 16:02:15 -08:00
2026-01-01 10:53:59 -08:00
2026-01-01 20:06:13 -08:00
2026-01-12 01:20:32 -08:00
2025-12-31 13:14:15 -08:00
2026-01-01 10:48:14 -08:00
2026-01-10 12:30:31 -08:00
2026-01-10 12:30:31 -08:00
2026-01-10 22:50:16 -08:00
2025-12-27 16:02:15 -08:00
2025-12-28 10:05:16 -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
2026-01-04 10:53:31 -08:00
2025-12-24 00:06:41 -08:00
2026-01-10 22:50:16 -08:00
2026-01-10 16:28:52 -08:00
2026-01-10 16:31:16 -08:00
2026-01-07 21:27:20 -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
2026-01-04 16:16:53 -08:00
2025-12-24 00:06:41 -08:00
2026-01-04 11:14:36 -08:00
2026-01-10 22:50:16 -08:00
2026-01-03 13:22:52 -08:00
2026-01-06 18:59:25 -08:00
2025-12-27 16:02:15 -08:00
2025-12-24 00:06:41 -08:00
2026-01-10 12:43:46 -08:00
2025-12-21 15:50:10 -08:00
2026-01-08 14:32:12 -08:00
2026-01-10 12:08:48 -08:00
2025-12-28 16:40:43 -08:00
2026-01-09 12:02:02 +01:00
2025-12-30 16:29:28 -08:00
2026-01-03 21:07:32 -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
2026-01-06 23:31:09 -08:00
2026-01-10 21:30:05 -08:00
2026-01-06 12:52:19 -08:00
2026-01-06 19:05:34 -08:00
2026-01-12 00:45:25 -08:00
2026-01-12 00:45:25 -08:00
2026-01-09 22:53:53 -08:00
2025-12-31 13:14:15 -08:00
2025-12-24 00:07:52 -08:00
2025-12-31 13:14:15 -08:00
2025-12-24 00:06:41 -08:00
2025-12-31 11:39:17 -08:00
2026-01-06 22:18:37 -08:00
2026-01-01 18:17:12 -08:00
2025-12-21 23:08:00 -08:00
2026-01-01 10:53:59 -08:00
2025-12-23 01:56:19 -08:00
2026-01-01 10:51:22 -08:00
2026-01-01 11:05:05 -08:00
2025-12-30 14:13:32 -08:00
2026-01-06 23:40:37 -08:00
2026-01-06 23:40:37 -08:00
2026-01-07 00:36:51 -08:00
2025-12-31 13:14:15 -08:00
2025-12-28 20:48:37 -08:00
2026-01-08 20:50:56 -08:00
2026-01-01 19:46:34 -08:00
2026-01-07 20:45:33 -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
2026-01-03 13:27:36 -08:00
2026-01-12 00:45:25 -08:00
2025-12-22 21:15:41 -08:00
2026-01-11 00:25:32 -08:00
2025-12-28 18:43:09 -08:00
2025-12-30 20:40:09 -08:00
2025-12-28 20:48:37 -08:00
2025-12-28 18:43:09 -08:00
2026-01-10 23:42:49 -08:00
2025-12-28 18:43:09 -08:00
2026-01-10 22:38:04 -08:00
2026-01-11 18:15:57 -08:00
2025-12-28 10:05:16 -08:00
2025-12-30 16:07:31 -08:00
2026-01-01 10:51:51 -08:00
2026-01-06 19:05:34 -08:00
2025-12-30 16:58:10 -08:00
2025-12-30 16:58:10 -08:00
2025-12-28 18:43:09 -08:00
2025-12-28 18:43:09 -08:00
2026-01-07 20:45:00 -08:00
2026-01-01 14:18:49 -08:00
2026-01-08 20:50:56 -08:00
2026-01-01 20:06:13 -08:00
2026-01-09 18:42:43 -08:00
2025-12-30 14:13:32 -08:00
2026-01-10 12:43:46 -08:00
2026-01-01 23:55:40 -08:00
2025-12-28 18:43:09 -08:00
2025-12-23 01:56:19 -08:00
2026-01-10 19:28:08 -08:00
2025-12-22 23:30:08 -08:00
2026-01-06 22:18:37 -08:00
2025-12-30 00:06:42 -08:00
2025-12-30 00:06:42 -08:00
2026-01-09 11:01:56 -08:00
2025-12-30 00:06:42 -08:00
2026-01-10 23:42:49 -08:00
2025-12-31 00:33:11 -08:00
2026-01-10 11:55:33 -08:00
2025-12-31 13:08:41 -08:00
2025-12-29 16:17:51 -08:00
2025-12-31 13:04:19 -08:00
2026-01-08 21:22:17 -08:00
2026-01-08 21:22:17 -08:00
2026-01-02 14:08:22 -08:00
2025-12-30 14:13:32 -08:00
2025-12-30 06:59:51 -08:00
2026-01-02 16:00:54 -08:00
2025-12-27 16:02:15 -08:00
2026-01-02 01:31:19 -08:00
2026-01-06 19:05:34 -08:00
2026-01-04 16:24:18 -08:00
2026-01-04 16:24:18 -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-31 00:33:11 -08:00
2025-12-31 00:05:53 -08:00
2026-01-01 10:51:51 -08:00
2026-01-07 20:45:40 -08:00
2026-01-07 20:45:40 -08:00
2026-01-07 20:44:16 -08:00
2026-01-01 20:06:13 -08:00
2026-01-08 21:22:17 -08:00
2026-01-06 19:05:34 -08:00
2025-12-27 16:02:15 -08:00
2025-12-27 16:02:15 -08:00
2026-01-06 19:05:34 -08:00
2026-01-04 10:53:31 -08:00
2026-01-04 10:53:31 -08:00
2025-12-27 22:24:19 -08:00
2026-01-06 19:32:20 -08:00
2025-12-31 13:14:15 -08:00
2026-01-06 18:59:25 -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-27 16:21:08 -08:00
2026-01-07 21:41:29 -08:00
2026-01-08 20:21:02 -08:00
2025-12-27 16:02:15 -08:00
2025-12-31 13:14:15 -08:00
2025-12-24 00:06:41 -08:00
2026-01-05 22:06:52 -08:00
2025-12-21 23:11:48 -08:00
2026-01-08 20:50:56 -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
2026-01-11 18:17:14 -08:00
2026-01-04 15:21:36 -08:00
2026-01-03 13:27:36 -08:00
2025-12-24 00:10:14 -08:00
2025-12-24 00:10:14 -08:00
2026-01-09 13:40:52 -08:00
2026-01-09 13:40:52 -08:00
2025-12-30 15:57:08 -08:00
2025-12-30 15:57:08 -08:00
2025-12-29 14:39:43 -08:00
2025-12-30 18:04:26 -08:00
2025-12-30 18:11:08 -08:00
2025-12-28 10:05:16 -08:00
2026-01-07 21:27:20 -08:00
2026-01-07 21:27:20 -08:00
2026-01-10 21:31:24 -08:00
2026-01-10 22:09:13 -08:00
2025-12-27 16:02:15 -08:00
2026-01-06 19:32:20 -08:00
2026-01-06 12:52:19 -08:00
2026-01-07 21:27:20 -08:00
2026-01-07 21:27:20 -08:00
2026-01-07 21:27:20 -08:00
2026-01-07 21:27:20 -08:00
2026-01-02 00:05:12 -08:00
2026-01-09 22:59:15 -08:00
2025-12-24 23:33:34 -08:00
2026-01-03 12:44:16 -08:00
2025-12-28 20:48:37 -08:00
2025-12-30 16:29:28 -08:00
2026-01-10 22:38:04 -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
2026-01-06 18:59:25 -08:00
2026-01-06 18:59:25 -08:00
2025-12-30 17:14:55 -08:00
2025-12-30 16:29:28 -08:00
2026-01-02 01:07:34 -08:00
2025-12-28 10:05:16 -08:00
2026-01-11 00:25:32 -08:00
2026-01-10 13:34:53 -08:00
2026-01-01 23:55:40 -08:00
2026-01-06 18:45:27 -08:00
2026-01-10 22:38:04 -08:00
2026-01-06 18:45:27 -08:00