multica-ai/multica · error
parse %s: %w
Error message
parse %s: %w
What it means
Error "parse %s: %w" thrown in multica-ai/multica.
Source
Thrown at server/internal/daemon/execenv/codex_home.go:867
configPath := filepath.Join(codexHome, "config.toml")
data, err := os.ReadFile(configPath)
if os.IsNotExist(err) {
return nil
}
if err != nil {
return fmt.Errorf("read %s: %w", configPath, err)
}
var cfg struct {
ModelCatalogJSON string `toml:"model_catalog_json"`
// Replacement for Codex's built-in instructions.
// experimental_instructions_file is the deprecated alias Codex still
// accepts, so configs written before the rename need it too.
ModelInstructionsFile string `toml:"model_instructions_file"`
ExperimentalInstructionsFile string `toml:"experimental_instructions_file"`
}
if err := toml.Unmarshal(data, &cfg); err != nil {
return fmt.Errorf("parse %s: %w", configPath, err)
}
for _, ref := range []struct{ key, path string }{
{"model_catalog_json", cfg.ModelCatalogJSON},
{"model_instructions_file", cfg.ModelInstructionsFile},
{"experimental_instructions_file", cfg.ExperimentalInstructionsFile},
} {
if err := syncCodexReferencedFile(codexHome, sharedHome, ref.key, ref.path); err != nil {
return err
}
}
return nil
}
// syncCodexReferencedFile copies one config-referenced file from the shared
// Codex home into the task home at the same relative location, so the copied
// config.toml keeps resolving under the relocated CODEX_HOME.
//View on GitHub (pinned to 2c0912b6ec)
Solutions
- Fix the file contents so they parse correctly.
When it happens
Trigger: Thrown at server/internal/daemon/execenv/codex_home.go:867 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/fd66d9e917545b87.
Report an issue: GitHub.