beads/internal/utils
Nicolas Suzor c8187137f5
fix(utils): prevent nil pointer panic in ResolvePartialID (#1132)
Add nil check at start of ResolvePartialID to return a proper error
instead of panicking when storage interface is nil.

Root cause: When bd refile (or other commands) is called with a nil
storage, calling store.SearchIssues() panics with SIGSEGV. This can
happen when routing fails to initialize storage properly.

Now returns: "cannot resolve issue ID <id>: storage is nil"

Fixes: bd-7ypor

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 00:00:56 -08:00
..
id_parser.go fix(utils): prevent nil pointer panic in ResolvePartialID (#1132) 2026-01-17 00:00:56 -08:00
id_parser_test.go fix(utils): prevent nil pointer panic in ResolvePartialID (#1132) 2026-01-17 00:00:56 -08:00
issue_446_test.go fix: improve issue ID prefix extraction for word-like suffixes 2025-12-16 13:19:22 -08:00
issue_id.go fix: improve issue ID prefix extraction for word-like suffixes 2025-12-16 13:19:22 -08:00
path.go feat(context): centralize RepoContext API for git operations (#1102) 2026-01-15 07:55:08 -08:00
path_test.go feat(context): centralize RepoContext API for git operations (#1102) 2026-01-15 07:55:08 -08:00