beads/internal/utils
Steve Yegge 934ae04fa0 Fix gh-316: Prefer exact ID matches over prefix matches
The ID disambiguation logic treated 'offlinebrew-3d0' as ambiguous when
child IDs like 'offlinebrew-3d0.1' existed. Now the system:

1. Checks for exact full ID matches first (issue.ID == input)
2. Checks for exact hash matches (handling cross-prefix scenarios)
3. Only falls back to substring matching if no exact match is found

Added test cases verifying:
- 'offlinebrew-3d0' matches exactly, not ambiguously with children
- '3d0' without prefix still resolves to exact match

Amp-Thread-ID: https://ampcode.com/threads/T-5358ea57-e9ea-49e9-aedf-7044ebf8b52a
Co-authored-by: Amp <amp@ampcode.com>
2025-11-15 14:07:38 -08:00
..
id_parser.go Fix gh-316: Prefer exact ID matches over prefix matches 2025-11-15 14:07:38 -08:00
id_parser_test.go Fix gh-316: Prefer exact ID matches over prefix matches 2025-11-15 14:07:38 -08:00
issue_id.go bd sync: 2025-11-09 14:53:59 2025-11-09 14:53:59 -08:00
path.go Refactor: Extract path canonicalization into utils.CanonicalizePath() 2025-11-02 19:11:08 -08:00
path_test.go Refactor: Extract path canonicalization into utils.CanonicalizePath() 2025-11-02 19:11:08 -08:00