{"record":{"id":"a609b3bfba31fd29","repo":"plandex-ai/plandex","slug":"failed-to-process-map-batches-v","errorCode":null,"errorMessage":"failed to process map batches: %v","messagePattern":"failed to process map batches: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/cli/lib/context_load.go","lineNumber":622,"sourceCode":"\t\t\t\t\tAutoLoaded:  params.AutoLoaded,\n\t\t\t\t})\n\n\t\t\t\terrCh <- nil\n\t\t\t}(u)\n\t\t}\n\t}\n\n\tfor i := 0; i < numRoutines; i++ {\n\t\terr := <-errCh\n\t\tif err != nil {\n\t\t\tonErr(err)\n\t\t}\n\t}\n\n\tif params.DefsOnly {\n\t\tallMapBodies, err := processMapBatches(mapInputBatches)\n\t\tif err != nil {\n\t\t\tonErr(fmt.Errorf(\"failed to process map batches: %v\", err))\n\t\t}\n\n\t\tfor _, inputPath := range toLoadMapPaths {\n\t\t\tvar name string\n\t\t\tif inputPath == \".\" {\n\t\t\t\tname = \"cwd\"\n\t\t\t} else if inputPath == \"..\" {\n\t\t\t\tname = \"parent\"\n\t\t\t} else {\n\t\t\t\tname = inputPath\n\t\t\t}\n\n\t\t\tpathBodies := shared.FileMapBodies{}\n\t\t\tpathShas := map[string]string{}\n\t\t\tpathTokens := map[string]int{}\n\t\t\tpathSizes := map[string]int64{}\n\t\t\tfor path, body := range allMapBodies {\n\t\t\t\tmapInputPath := mapInputPathsForPaths[path]","sourceCodeStart":604,"sourceCodeEnd":640,"githubUrl":"https://github.com/plandex-ai/plandex/blob/e2d772072efadbe41d2946d97d79be55532dbab5/app/cli/lib/context_load.go#L604-L640","documentation":"processMapBatches fails after all per-file/URL goroutines completed, when aggregating map inputs in the defs-only path. Means batch-level map generation (calls to map models or assembly of map bodies) failed, aborting the whole map load.","triggerScenarios":"Thrown at app/cli/lib/context_load.go:622 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for which batch/model call failed","Retry — map generation involves model calls that can transiently fail","Reduce the number/size of paths being mapped and retry"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e2d772072efadbe41d2946d97d79be55532dbab5","analyzedAt":"2026-09-05T20:56:53.631Z","contentChangedAt":"2026-09-05T20:56:53.631Z","schemaVersion":2},"datasetVersion":"2026-09-12T22:17:10.623Z"}