{"record":{"id":"af4b626c1362a637","repo":"multica-ai/multica","slug":"execenv-create-worktree-workdir-s-w","errorCode":null,"errorMessage":"execenv: create worktree workdir %s: %w","messagePattern":"execenv: create worktree workdir (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/internal/daemon/execenv/execenv.go","lineNumber":415,"sourceCode":"\t\twtParams.TaskID = params.TaskID\n\t\tvar err error\n\t\tlocalWorktree, err = PrepareLocalWorktree(wtParams, logger)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tdefer func() {\n\t\t\tif prepareSucceeded {\n\t\t\t\treturn\n\t\t\t}\n\t\t\t// Safe to discard unconditionally: no agent has run yet, so the\n\t\t\t// worktree holds only what Prepare itself put there.\n\t\t\tlocalWorktree.Discard(logger)\n\t\t}()\n\t\tworkDir = localWorktree.WorkDir\n\t\t// The resource may point at a subdirectory that holds only ignored\n\t\t// files, in which case git doesn't materialise it in the worktree.\n\t\tif err := os.MkdirAll(workDir, 0o755); err != nil {\n\t\t\treturn nil, fmt.Errorf(\"execenv: create worktree workdir %s: %w\", workDir, err)\n\t\t}\n\t}\n\n\tenv := &Environment{\n\t\tRootDir:           envRoot,\n\t\tWorkDir:           workDir,\n\t\tLocalDirectory:    params.LocalWorkDir != \"\",\n\t\tLocalWorktree:     localWorktree,\n\t\tMulticaConfigRoot: multicaConfigRoot,\n\t\tlogger:            logger,\n\t}\n\n\t// Write context files into workdir (skills go to provider-native paths).\n\t// Track every file/dir we create in a manifest so CleanupSidecars can\n\t// roll a local_directory workdir back to its pre-Prepare state. Cloud\n\t// tasks don't need the manifest (the GC loop wipes envRoot wholesale),\n\t// but we always write one — it's cheap, keeps Prepare/Reuse symmetric,\n\t// and avoids a conditional that would silently disable cleanup if the","sourceCodeStart":397,"sourceCodeEnd":433,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/daemon/execenv/execenv.go#L397-L433","documentation":"Error \"execenv: create worktree workdir %s: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/daemon/execenv/execenv.go:415 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check disk space and permissions for the worktree workdir."],"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"}