diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-01-22 20:49:06 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-01-22 20:49:06 -1000 |
| commit | bedcd8a185e4197d087b2166afa79ff4dce25f7c (patch) | |
| tree | 415715d99e29c06b3b6e23626561bb79d26e94e3 /migrations/002_add_cache_metadata.sql | |
| parent | 77f5f1d7386811d7e57ab595db48dd8fc2c5ca84 (diff) | |
Fix slice reallocation bug in GetBoards
The boardMap was storing pointers to Board structs in the boards slice.
When the slice grew and reallocated, those pointers became stale, causing
cards to be added to old memory locations instead of the current slice.
Fixed by storing indices instead of pointers in boardMap.
Added tests to verify multiple boards with varying card counts are
correctly saved and retrieved.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'migrations/002_add_cache_metadata.sql')
0 files changed, 0 insertions, 0 deletions
