multica-ai/multica · error

execenv: write sidecar manifest: %w

Error message

execenv: write sidecar manifest: %w

What it means

Error "execenv: write sidecar manifest: %w" thrown in multica-ai/multica.

Source

Thrown at server/internal/daemon/execenv/execenv.go:573

	// into managed-MCP runs.
	if params.Provider == "cursor" {
		cursorDataDir, err := prepareCursorMcpConfig(envRoot, workDir, params.McpConfig, params.CursorMcpAuthSource, manifest)
		if err != nil {
			return nil, fmt.Errorf("execenv: prepare cursor mcp config: %w", err)
		}
		env.CursorDataDir = cursorDataDir
	}

	if err := writeSidecarManifest(envRoot, manifest); err != nil {
		// In place the manifest is the ONLY record of what we wrote into the
		// user's own directory, so losing it strands the sidecar tree there
		// permanently — no crash required, a disk or permission hiccup is
		// enough (MUL-6132). Fail so the rollback registered above removes the
		// tree now, while we still hold the in-memory manifest. Elsewhere the
		// manifest is a convenience the GC can do without, so a warning stays
		// the right response.
		if params.LocalWorkDir != "" {
			return nil, fmt.Errorf("execenv: write sidecar manifest: %w", err)
		}
		logger.Warn("execenv: write sidecar manifest failed (non-fatal)", "error", err)
	}

	// For OpenClaw, synthesize a per-task config that pins workspace to
	// workDir. The skill scanner then reads {workDir}/skills/ (written by
	// writeContextFiles above). Fail closed on errors: a malformed user
	// config that the openclaw CLI can't read is a real problem and
	// silently degrading to a minimal config would mask it by booting
	// OpenClaw without the agents / providers / API keys it expects.
	if params.Provider == "openclaw" {
		result, err := prepareOpenclawConfig(envRoot, workDir, OpenclawConfigPrep{
			OpenclawBin: params.OpenclawBin,
			McpConfig:   params.McpConfig,
			Gateway:     params.OpenclawGateway,
			Logger:      logger,
		})
		if err != nil {

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Check disk space and permissions for the sidecar manifest.

When it happens

Trigger: Thrown at server/internal/daemon/execenv/execenv.go:573 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/b4145bb309e0e34a. Report an issue: GitHub.