{"record":{"id":"fd66d9e917545b87","repo":"multica-ai/multica","slug":"parse-s-w","errorCode":null,"errorMessage":"parse %s: %w","messagePattern":"parse (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/internal/daemon/execenv/codex_home.go","lineNumber":867,"sourceCode":"\tconfigPath := filepath.Join(codexHome, \"config.toml\")\n\tdata, err := os.ReadFile(configPath)\n\tif os.IsNotExist(err) {\n\t\treturn nil\n\t}\n\tif err != nil {\n\t\treturn fmt.Errorf(\"read %s: %w\", configPath, err)\n\t}\n\n\tvar cfg struct {\n\t\tModelCatalogJSON string `toml:\"model_catalog_json\"`\n\t\t// Replacement for Codex's built-in instructions.\n\t\t// experimental_instructions_file is the deprecated alias Codex still\n\t\t// accepts, so configs written before the rename need it too.\n\t\tModelInstructionsFile        string `toml:\"model_instructions_file\"`\n\t\tExperimentalInstructionsFile string `toml:\"experimental_instructions_file\"`\n\t}\n\tif err := toml.Unmarshal(data, &cfg); err != nil {\n\t\treturn fmt.Errorf(\"parse %s: %w\", configPath, err)\n\t}\n\n\tfor _, ref := range []struct{ key, path string }{\n\t\t{\"model_catalog_json\", cfg.ModelCatalogJSON},\n\t\t{\"model_instructions_file\", cfg.ModelInstructionsFile},\n\t\t{\"experimental_instructions_file\", cfg.ExperimentalInstructionsFile},\n\t} {\n\t\tif err := syncCodexReferencedFile(codexHome, sharedHome, ref.key, ref.path); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\treturn nil\n}\n\n// syncCodexReferencedFile copies one config-referenced file from the shared\n// Codex home into the task home at the same relative location, so the copied\n// config.toml keeps resolving under the relocated CODEX_HOME.\n//","sourceCodeStart":849,"sourceCodeEnd":885,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/daemon/execenv/codex_home.go#L849-L885","documentation":"Error \"parse %s: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/daemon/execenv/codex_home.go:867 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the file contents so they parse correctly."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}