{"record":{"id":"82f2e04d534a26a4","repo":"gastownhall/beads","slug":"from-jsonl-is-not-supported-with-proxied-serve","errorCode":null,"errorMessage":"--from-jsonl is not supported with --proxied-server","messagePattern":"--from-jsonl is not supported with --proxied-server","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/bd/init_proxied_server.go","lineNumber":53,"sourceCode":"\tserverRootPath         string\n\tserverProxyPort        int\n\tserverProxyIdleTimeout time.Duration\n\texternalConfig         *configfile.ExternalDoltConfig\n\tquiet                  bool\n\tstealth                bool\n\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","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/gastownhall/beads/blob/71377f276968b452ee607177637970a4ff888584/cmd/bd/init_proxied_server.go#L35-L71","documentation":"runInitProxiedServer validates flag combinations up front: proxied-server mode manages its own data path and does not support importing from a JSONL export, so passing --from-jsonl together with --proxied-server returns this hard validation error before any writes.","triggerScenarios":"`bd init --proxied-server --from-jsonl <file>` — the fromJSONL input flag is set on initProxiedServerInput and rejected immediately.","commonSituations":"Copying an init command line used for local mode and appending --proxied-server, or scripting a migration from an existing JSONL export into a proxied-server setup.","solutions":["Drop --from-jsonl when using --proxied-server and import data afterwards with a separate import command.","If you need JSONL import, use the regular (non-proxied-server) `bd init --from-jsonl`.","Choose one mode: proxied-server for remote managed dolt, local init for JSONL-based setup."],"exampleFix":"// before\nbd init --proxied-server --from-jsonl export.jsonl\n// after\nbd init --proxied-server\nbd import -i export.jsonl","handlingStrategy":"validation","validationCode":"if proxiedServer && fromJSONL {\n    return errors.New(\"--from-jsonl cannot be combined with --proxied-server\")\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Treat proxied-server, contributor, team, and from-jsonl as mutually exclusive init modes.","Validate flag combinations in wrapper scripts before invoking bd init.","Read `bd init --help` mode sections when composing commands.","Import JSONL after proxied-server init using a separate import command."],"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"}