{"record":{"id":"1726bface3fa2252","repo":"multica-ai/multica","slug":"multica-agent-temp-base-create-task-temp-dir-w","errorCode":null,"errorMessage":"MULTICA_AGENT_TEMP_BASE: create task temp dir: %w","messagePattern":"MULTICA_AGENT_TEMP_BASE: create task temp dir: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/internal/daemon/daemon.go","lineNumber":8242,"sourceCode":"\tif envRoot == \"\" {\n\t\treturn \"\", errors.New(\"env root is empty\")\n\t}\n\tworkspaceID = strings.TrimSpace(workspaceID)\n\tif workspaceID == \"\" {\n\t\treturn \"\", errors.New(\"workspace id is empty\")\n\t}\n\ttaskID = strings.TrimSpace(taskID)\n\tif taskID == \"\" {\n\t\treturn \"\", errors.New(\"task id is empty\")\n\t}\n\tbase, overrideConfigured, err := taskTempBaseDir()\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tdir, err := os.MkdirTemp(base, \"multica-task-\")\n\tif err != nil {\n\t\tif overrideConfigured {\n\t\t\treturn \"\", fmt.Errorf(\"MULTICA_AGENT_TEMP_BASE: create task temp dir: %w\", err)\n\t\t}\n\t\treturn \"\", err\n\t}\n\tif err := os.Chmod(dir, 0o700); err != nil {\n\t\treturn \"\", err\n\t}\n\treturn dir, nil\n}\n\n// taskTempBaseDir resolves the parent directory for private per-task temp\n// dirs on Linux and macOS. The daemon operator can relocate it with\n// MULTICA_AGENT_TEMP_BASE, which must be an absolute path to an existing,\n// writable directory; an invalid value fails task startup instead of silently\n// falling back. Windows ignores the variable. Unset keeps the platform default\n// exactly as before, down to the syscalls made.\n// Operators should pick a short path: child tools may bind AF_UNIX sockets\n// under $TMPDIR (sun_path is 108 bytes on Linux, 104 on macOS).\nfunc taskTempBaseDir() (string, bool, error) {","sourceCodeStart":8224,"sourceCodeEnd":8260,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/daemon/daemon.go#L8224-L8260","documentation":"Error \"MULTICA_AGENT_TEMP_BASE: create task temp dir: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/daemon/daemon.go:8242 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that MULTICA_AGENT_TEMP_BASE exists and is writable."],"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"}