{"record":{"id":"14c3a63e7341e0c9","repo":"gastownhall/beads","slug":"issue-s-not-found","errorCode":null,"errorMessage":"issue %s not found","messagePattern":"issue (.+?) not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/bd/comments_proxied_server.go","lineNumber":157,"sourceCode":"\tif err != nil {\n\t\treturn nil, nil, fmt.Errorf(\"adding comment: %w\", err)\n\t}\n\treturn result.Comment, issue, nil\n}\n\n// resolveCommentTargetProxied resolves the anchor and applies the CLI's own\n// pre-flight policy. It reads in a unit of work of its own and writes nothing,\n// so the role's request stays the whole of the transaction.\nfunc resolveCommentTargetProxied(ctx context.Context, id string) (*types.Issue, error) {\n\tuw, err := proxiedOpenReadUOW(ctx)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tdefer uw.Close(ctx)\n\n\tissue, _, err := workapi.GetIssueOrWisp(ctx, workapi.NewUOWDetailSource(uw), id)\n\tif errors.Is(err, storage.ErrNotFound) {\n\t\treturn nil, fmt.Errorf(\"issue %s not found\", id)\n\t}\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"resolving %s: %w\", id, err)\n\t}\n\tif err := validateIssueUpdatable(id, issue); err != nil {\n\t\treturn nil, err\n\t}\n\treturn issue, nil\n}\n","sourceCodeStart":139,"sourceCodeEnd":167,"githubUrl":"https://github.com/gastownhall/beads/blob/71377f276968b452ee607177637970a4ff888584/cmd/bd/comments_proxied_server.go#L139-L167","documentation":"Error \"issue %s not found\" thrown in gastownhall/beads.","triggerScenarios":"Thrown at cmd/bd/comments_proxied_server.go:157 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the issue ID with bd show and correct it if wrong","Create the issue before adding comments to it"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"bd show \"$ID\" >/dev/null 2>&1 || { echo \"issue $ID does not exist\"; exit 1; }","typeGuard":null,"tryCatchPattern":"out=$(bd comment \"$ID\" ... 2>&1) || {\n  case \"$out\" in *\"not found\"*) echo \"bad ID: $ID\";; esac\n}","preventionTips":["Copy issue IDs from bd list output","Verify the workspace before running proxied commands","Sync databases (bd dolt pull) if the issue lives in another project","Check for deleted/renamed issues after merges"],"tags":[],"backgroundTag":null,"analyzedSha":"71377f276968b452ee607177637970a4ff888584","analyzedAt":"2026-08-30T18:55:39.744Z","schemaVersion":2},"datasetVersion":"2026-08-30T23:17:21.991Z"}