{"record":{"id":"8505185615e2345e","repo":"gastownhall/beads","slug":"resolving-id-s-no-issue-found-matching-q","errorCode":null,"errorMessage":"resolving ID %s: no issue found matching %q","messagePattern":"resolving ID (.+?): no issue found matching %q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/bd/close.go","lineNumber":756,"sourceCode":"\t\t\treturn nil, func() {}, fmt.Errorf(\"resolving ID %s: %w\", id, err)\n\t\t}\n\t\t// Write-intent: a prefix-routed target opens writable so the close\n\t\t// commits on the target head (#4141). Contributor auto-routing below\n\t\t// stays read-only: it hydrates foreign projects that must not be mutated.\n\t\tif r, err := resolveViaPrefixRoutingWithAccess(ctx, id, true); err == nil {\n\t\t\tresults = append(results, r)\n\t\t\tcontinue\n\t\t}\n\t\t// Contributor auto-routing uses one shared store for the whole batch.\n\t\tif rs, rerr := ensureShared(); rerr == nil {\n\t\t\tif r, err := resolveAndGetFromStore(ctx, rs, id, true); err == nil {\n\t\t\t\t// Per-id RoutedResult does not own the shared handle; cleanup() does.\n\t\t\t\tresults = append(results, r)\n\t\t\t\tcontinue\n\t\t\t}\n\t\t}\n\t\tcleanup()\n\t\treturn nil, func() {}, fmt.Errorf(\"resolving ID %s: no issue found matching %q\", id, id)\n\t}\n\treturn results, cleanup, nil\n}\n","sourceCodeStart":738,"sourceCodeEnd":760,"githubUrl":"https://github.com/gastownhall/beads/blob/71377f276968b452ee607177637970a4ff888584/cmd/bd/close.go#L738-L760","documentation":"Thrown when every resolution path (local store, prefix routing, contributor auto-routing) fails to find an issue matching the given ID during `bd close`. The message repeats the raw argument so the user can see exactly which input was unmatched.","triggerScenarios":"Running `bd close <arg>` where `<arg>` matches no issue: wrong ID, truncated/partial ID with no unique match, closing an already-deleted issue, or referencing an issue in another repo not reachable via prefix routing.","commonSituations":"Typo in the issue ID, closing an issue from a teammate's project whose database isn't hydrated, or the issue was deleted/synced away.","solutions":["Run `bd list` or `bd show <prefix>` to find the correct full ID","Check for typos — copy the ID from `bd ready` or `bd list` output instead of typing it","Verify you're in the right workspace/repo; prefix-routed IDs only resolve if the target project is reachable","If the issue should exist, run `bd dolt pull` to sync and confirm it wasn't deleted"],"exampleFix":"// before\nbd close bd-42a          // no match\n// after\nbd list | grep bd-42     # find exact ID\nbd close bd-42a1","handlingStrategy":"validation","validationCode":"// confirm the ID resolves before closing\nbd show \"$ID\" >/dev/null || { echo \"ID $ID not found\"; exit 1; }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Copy IDs from bd list/bd ready output instead of typing them","Check you are in the correct repo/workspace before closing","Sync foreign-project databases if using prefix-routed IDs","Grep partial IDs with bd list to disambiguate before closing"],"tags":["cli","not-found","issue-resolution"],"backgroundTag":"issue-not-found","analyzedSha":"71377f276968b452ee607177637970a4ff888584","analyzedAt":"2026-08-30T18:55:39.744Z","schemaVersion":2},"datasetVersion":"2026-08-30T23:17:21.991Z"}