Files
beads/internal/storage
mayor f70b1f9b4a fix(dolt): add ID generation to transaction CreateIssue
The doltTransaction.CreateIssue method was missing ID generation logic
that exists in the SQLite transaction implementation. When issues were
created within a transaction with empty IDs (like during wisp creation),
they would all get empty string "" as the primary key, causing
"duplicate primary key given: []" errors.

This fix adds the same ID generation logic from SQLite transaction:
- Get config prefix from database
- Apply IDPrefix/PrefixOverride to determine effective prefix
- Generate hash-based ID using generateIssueID

Fixes wisp creation failures across all rigs running Dolt server mode.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 18:52:47 -08:00
..