multica-ai/multica · error
sync codex config file references: %w
Error message
sync codex config file references: %w
What it means
Error "sync codex config file references: %w" thrown in multica-ai/multica.
Source
Thrown at server/internal/daemon/execenv/codex_home.go:257
if err := syncCopiedFile(src, dst); err != nil {
logger.Warn("execenv: codex-home sync failed", "file", name, "error", err)
if name == "config.toml" {
configSyncErr = err
}
}
}
// Drop `[[skills.config]]` entries inherited from the user's
// ~/.codex/config.toml. Codex Desktop writes plugin-backed skills with a
// `name` and no `path`, which the CLI's stricter TOML parser rejects with
// `missing field path` and bails out of `thread/start`. Multica writes the
// agent's active skills directly to `codex-home/skills/`, so the
// user-level registry is redundant here. See codex_skill_strip.go.
if err := sanitizeCopiedCodexConfig(filepath.Join(codexHome, "config.toml")); err != nil {
logger.Warn("execenv: codex-home sanitize config failed", "error", err)
}
if err := syncCodexReferencedFiles(codexHome, sharedHome); err != nil {
return fmt.Errorf("sync codex config file references: %w", err)
}
// Seed the shared model cache only for a fresh task home. On reuse, keep a
// task-local cache that Codex may have refreshed, but only while the source
// provider/catalog configuration is still the one that cache was bound to.
// If binding fails, discard the optional cache so Codex refreshes it instead
// of potentially using models from the wrong provider.
if err := syncCodexModelsCache(codexHome, sharedHome, freshHome); err != nil {
logger.Warn("execenv: codex-home models cache sync failed; discarding cache", "error", err)
if removeErr := os.RemoveAll(filepath.Join(codexHome, codexModelsCacheFile)); removeErr != nil {
return fmt.Errorf("sync codex models cache: %v; discard unsafe cache: %w", err, removeErr)
}
}
if err := exposeSharedCodexPluginCache(codexHome, sharedHome); err != nil {
logger.Warn("execenv: codex-home plugin cache exposure failed", "error", err)
}
View on GitHub (pinned to 2c0912b6ec)
Solutions
- Check the referenced config file paths and retry.
When it happens
Trigger: Thrown at server/internal/daemon/execenv/codex_home.go:257 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/a94426e639eb24e2.
Report an issue: GitHub.