{"record":{"id":"b4145bb309e0e34a","repo":"multica-ai/multica","slug":"execenv-write-sidecar-manifest-w","errorCode":null,"errorMessage":"execenv: write sidecar manifest: %w","messagePattern":"execenv: write sidecar manifest: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/internal/daemon/execenv/execenv.go","lineNumber":573,"sourceCode":"\t// into managed-MCP runs.\n\tif params.Provider == \"cursor\" {\n\t\tcursorDataDir, err := prepareCursorMcpConfig(envRoot, workDir, params.McpConfig, params.CursorMcpAuthSource, manifest)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"execenv: prepare cursor mcp config: %w\", err)\n\t\t}\n\t\tenv.CursorDataDir = cursorDataDir\n\t}\n\n\tif err := writeSidecarManifest(envRoot, manifest); err != nil {\n\t\t// In place the manifest is the ONLY record of what we wrote into the\n\t\t// user's own directory, so losing it strands the sidecar tree there\n\t\t// permanently — no crash required, a disk or permission hiccup is\n\t\t// enough (MUL-6132). Fail so the rollback registered above removes the\n\t\t// tree now, while we still hold the in-memory manifest. Elsewhere the\n\t\t// manifest is a convenience the GC can do without, so a warning stays\n\t\t// the right response.\n\t\tif params.LocalWorkDir != \"\" {\n\t\t\treturn nil, fmt.Errorf(\"execenv: write sidecar manifest: %w\", err)\n\t\t}\n\t\tlogger.Warn(\"execenv: write sidecar manifest failed (non-fatal)\", \"error\", err)\n\t}\n\n\t// For OpenClaw, synthesize a per-task config that pins workspace to\n\t// workDir. The skill scanner then reads {workDir}/skills/ (written by\n\t// writeContextFiles above). Fail closed on errors: a malformed user\n\t// config that the openclaw CLI can't read is a real problem and\n\t// silently degrading to a minimal config would mask it by booting\n\t// OpenClaw without the agents / providers / API keys it expects.\n\tif params.Provider == \"openclaw\" {\n\t\tresult, err := prepareOpenclawConfig(envRoot, workDir, OpenclawConfigPrep{\n\t\t\tOpenclawBin: params.OpenclawBin,\n\t\t\tMcpConfig:   params.McpConfig,\n\t\t\tGateway:     params.OpenclawGateway,\n\t\t\tLogger:      logger,\n\t\t})\n\t\tif err != nil {","sourceCodeStart":555,"sourceCodeEnd":591,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/daemon/execenv/execenv.go#L555-L591","documentation":"Error \"execenv: write sidecar manifest: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/daemon/execenv/execenv.go:573 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check disk space and permissions for the sidecar manifest."],"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-15T22:17:37.221Z"}