{"record":{"id":"ee55b677eb297e5c","repo":"gastownhall/beads","slug":"team-is-not-supported-with-proxied-server","errorCode":null,"errorMessage":"--team is not supported with --proxied-server","messagePattern":"--team is not supported with --proxied-server","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/bd/init_proxied_server.go","lineNumber":59,"sourceCode":"\tskipHooks              bool\n\tskipAgents             bool\n\treinitLocal            bool\n\tcontributor            bool\n\tteam                   bool\n\tteamServer             bool\n\tfromJSONL              bool\n\tnonInteractive         bool\n}\n\nfunc runInitProxiedServer(cmd *cobra.Command, ctx context.Context, in initProxiedServerInput) error {\n\tif in.fromJSONL {\n\t\treturn fmt.Errorf(\"--from-jsonl is not supported with --proxied-server\")\n\t}\n\tif in.contributor {\n\t\treturn fmt.Errorf(\"--contributor is not supported with --proxied-server\")\n\t}\n\tif in.team {\n\t\treturn fmt.Errorf(\"--team is not supported with --proxied-server\")\n\t}\n\n\t// Preflight the external dolt binary before any .beads/ write below\n\t// (checkExistingBeadsData onward). This only applies to managed\n\t// proxied-server mode (in.externalConfig == nil): external mode talks\n\t// to a remote/pre-existing dolt sql-server over the network and never\n\t// spawns a local dolt binary, so it has nothing to preflight here.\n\t// Failing here means a missing/broken dolt produces a clean preflight\n\t// error instead of a half-initialized .beads/ directory from a later\n\t// failure in newManagedProxiedServerUOWProvider.\n\t//\n\t// Shares resolveAndProbeDolt (uow_factory.go) with\n\t// newManagedProxiedServerUOWProvider, which this same `bd init\n\t// --proxied-server` invocation goes on to call a few lines below via\n\t// newProxiedServerUOWProvider: the shared doltVersionWarnOnce means the\n\t// version advisory prints at most once for the command, not once per\n\t// call site.\n\tif in.externalConfig == nil {","sourceCodeStart":41,"sourceCodeEnd":77,"githubUrl":"https://github.com/gastownhall/beads/blob/71377f276968b452ee607177637970a4ff888584/cmd/bd/init_proxied_server.go#L41-L77","documentation":"runInitProxiedServer rejects --team with --proxied-server. Team mode's shared-server assumptions conflict with proxied-server's managed external dolt binary, so the combination is rejected up front like the other flag conflicts.","triggerScenarios":"`bd init --proxied-server --team` — the team flag is set and rejected as the third validation check.","commonSituations":"Setting up a shared team database while opting into proxied-server mode, or script templates that always pass --team plus other mode flags.","solutions":["Remove --team when using --proxied-server.","Use `bd init --team` (without --proxied-server) for team-mode setup.","Pick exactly one init mode per invocation: local, team, contributor, or proxied-server."],"exampleFix":"// before\nbd init --proxied-server --team\n// after\nbd init --team   # or: bd init --proxied-server","handlingStrategy":"validation","validationCode":"if proxiedServer && team {\n    return errors.New(\"--team cannot be combined with --proxied-server\")\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pick exactly one of local/team/contributor/proxied-server per `bd init` run.","Avoid copy-pasting flag sets across different init workflows.","Gate mode flags behind separate script entry points.","Review `bd init --help` before adding flags to automation."],"tags":["cli","validation","init"],"backgroundTag":"incompatible-flags","analyzedSha":"71377f276968b452ee607177637970a4ff888584","analyzedAt":"2026-08-30T18:55:39.744Z","schemaVersion":2},"datasetVersion":"2026-08-30T23:17:21.991Z"}