beads/internal/utils
Mohamed Ramadan a297ac46ac
fix(history): resolve partial/short issue IDs in bd history (#4910)
* fix(history): resolve partial/short issue IDs in bd history (#4868)

* fix(history): finish partial-ID resolution — compile against main's runHistory, surface ambiguity, document proxied gap

Rebase the contributor's resolution onto main's history seam, add
utils.ErrAmbiguousID (wrapped %w) so ambiguous prefixes report candidates
instead of "No history found", keep the not-found exit-0 contract
(#3502), and make the proxied-mode skip explicit.

Addresses the 2026-07-23 review on gastownhall/beads#4910.

Agent-Signature: claude-sonnet-5-medium on behalf of maphew

* test(history): assert both candidate IDs in ambiguous-prefix errors

Reviewer finding: a generic ambiguity error without the candidate list
still passed. Assert hi-zzzaaa1 and hi-zzzaaa2 appear in plain stderr and
in the JSON error body (which HandleErrorRespectJSON writes to stdout —
a second re-review round caught the test reading the wrong stream).

Agent-Signature: codex-gpt-5.6-terra-medium on behalf of maphew
Agent-Signature: claude-fable-5-high on behalf of maphew

---------

Co-authored-by: matt wilkie <maphew@gmail.com>
2026-07-25 22:52:48 -07:00
..
id_parser.go fix(history): resolve partial/short issue IDs in bd history (#4910) 2026-07-25 22:52:48 -07:00
id_parser_test.go fix: reject substring matches in ID resolution, require exact hash match only (#4939) 2026-07-25 22:28:43 -07:00
id_parser_unit_test.go perf(search): tighten label and partial-id queries (#3967) 2026-05-16 02:44:45 -07:00
issue_446_test.go style: run gofmt across entire codebase (bd-nmk12) 2026-02-07 19:35:20 -08:00
issue_id.go fix(sort): natural numeric sort for issue IDs with dotted suffixes (GH#3477) (#3486) 2026-04-27 07:04:37 -07:00
issue_id_test.go fix(sort): natural numeric sort for issue IDs with dotted suffixes (GH#3477) (#3486) 2026-04-27 07:04:37 -07:00
path.go fix(utils): resolve macOS true-case via F_GETPATH instead of scanning every ancestor (wy-9ai3u) 2026-07-25 22:24:39 -07:00
path_case_darwin.go fix(utils): resolve macOS true-case via F_GETPATH instead of scanning every ancestor (wy-9ai3u) 2026-07-25 22:24:39 -07:00
path_case_other.go fix(utils): resolve macOS true-case via F_GETPATH instead of scanning every ancestor (wy-9ai3u) 2026-07-25 22:24:39 -07:00
path_case_test.go test(utils): rate the true-case fast path against the walk, not the wall clock (wy-9ai3u) 2026-07-25 22:28:22 -07:00
path_test.go fix packaging and windows install regressions 2026-04-24 11:48:39 -07:00
strings.go fix: complete decision type aliases and help strings 2026-02-11 17:23:21 -08:00
strings_test.go fix: complete decision type aliases and help strings 2026-02-11 17:23:21 -08:00
testmain_test.go feat(storage): refuse test DBs on production dolt servers (AD-01) (#3632) 2026-07-24 01:28:51 -07:00