{"record":{"id":"1b54da0cc18a15c5","repo":"gastownhall/beads","slug":"s-1b54da","errorCode":null,"errorMessage":"%s","messagePattern":"%s","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/bd/config.go","lineNumber":791,"sourceCode":"\t\tpath = parent\n\t}\n\n\tif isGitRepo() && git.IsWorktree() {\n\t\tif fallbackDir := beads.GetWorktreeFallbackBeadsDir(); fallbackDir != \"\" {\n\t\t\treturn filepath.Dir(fallbackDir)\n\t\t}\n\t}\n\n\treturn \"\"\n}\n\n// resolvedConfigRepoRoot returns the repository root for the active beads\n// workspace. It follows FindBeadsDir semantics, including BEADS_DIR and\n// worktree/shared fallback resolution.\nfunc resolvedConfigRepoRoot() (string, error) {\n\tbeadsDir := beads.FindBeadsDir()\n\tif beadsDir == \"\" {\n\t\treturn \"\", fmt.Errorf(\"%s\", activeWorkspaceNotFoundError())\n\t}\n\treturn filepath.Dir(beadsDir), nil\n}\n\nvar configSetManyCmd = &cobra.Command{\n\tUse:   \"set-many <key=value>...\",\n\tShort: \"Set multiple configuration values in one operation\",\n\tLong: `Set multiple configuration values at once with a single auto-commit and auto-push.\n\nEach argument must be in key=value format. All values are validated before\nany writes occur. This is faster and less noisy than separate 'bd config set'\ncalls, especially in CI.\n\nExamples:\n  bd config set-many ado.state_map.open=New ado.state_map.closed=Closed\n  bd config set-many jira.url=https://example.atlassian.net jira.project=PROJ`,\n\tArgs:          cobra.MinimumNArgs(1),\n\tSilenceUsage:  true,","sourceCodeStart":773,"sourceCodeEnd":809,"githubUrl":"https://github.com/gastownhall/beads/blob/71377f276968b452ee607177637970a4ff888584/cmd/bd/config.go#L773-L809","documentation":"`resolvedConfigRepoRoot` cannot find the active beads workspace: `beads.FindBeadsDir()` returned empty, so there is no repo root to report for config operations. The message text is delegated to `activeWorkspaceNotFoundError()`.","triggerScenarios":"Running a config command (e.g. `bd config ...`) outside any directory containing a .beads workspace, with BEADS_DIR unset or pointing at a nonexistent path, and no worktree/shared fallback that resolves.","commonSituations":"Running bd config from $HOME or a non-repo directory; BEADS_DIR exported with a typo; running in a git worktree without the shared beads dir linked.","solutions":["cd into a directory inside a repo with an initialized beads workspace, or run `bd init` first","Check/unset or correct the BEADS_DIR environment variable","In a git worktree, ensure the shared .beads dir is linked per FindBeadsDir fallback semantics","Run `bd doctor` to diagnose workspace discovery"],"exampleFix":"// before\nBEADS_DIR=/opt/nonexistent bd config get prefix\n// after\nunset BEADS_DIR && cd /path/to/repo && bd config get prefix","handlingStrategy":"validation","validationCode":"[ -d .beads ] || [ -n \"$BEADS_DIR\" ] || { echo \"no beads workspace; run bd init\"; exit 1; }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Only run bd config inside an initialized workspace","Run bd init before config commands in new repos","Audit BEADS_DIR in shell profiles and CI environments","Link shared .beads dirs in git worktrees"],"tags":["config","workspace","cli"],"backgroundTag":"beads-workspace-not-found","analyzedSha":"71377f276968b452ee607177637970a4ff888584","analyzedAt":"2026-08-30T18:55:39.744Z","schemaVersion":2},"datasetVersion":"2026-08-30T23:17:21.991Z"}