{"record":{"id":"7cd714e5a7777646","repo":"multica-ai/multica","slug":"create-agent-backend-w","errorCode":null,"errorMessage":"create agent backend: %w","messagePattern":"create agent backend: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/internal/daemon/daemon.go","lineNumber":6806,"sourceCode":"\t}\n\t// Resolve the backend through the unified runtime resolver: built-in\n\t// runtime identities (e.g. \"omp\") dispatch through NewRuntime, protocol\n\t// families go through New. This is the single production boundary — the\n\t// daemon never calls agent.New or agent.NewRuntime directly, so the two\n\t// factories stay meaning exactly one thing each.\n\tbackend, err := agent.ResolveBackend(provider, agent.Config{\n\t\tExecutablePath: entry.Path,\n\t\tCLIVersion:     resolvedVersion,\n\t\tEnv:            agentEnv,\n\t\tLogger:         d.logger,\n\t\tTaskID:         task.ID,\n\t\tRuntimeID:      task.RuntimeID,\n\t\tDaemonVersion:  d.cfg.CLIVersion,\n\t\tCodexVersion:   codexVersion,\n\t\tBuiltinRuntime: !usesCustomProfileCommand,\n\t})\n\tif err != nil {\n\t\treturn TaskResult{}, fmt.Errorf(\"create agent backend: %w\", err)\n\t}\n\n\ttaskLog.Info(\"starting agent\",\n\t\t\"provider\", provider,\n\t\t\"workdir\", env.WorkDir,\n\t\t\"model\", entry.Model,\n\t\t\"reused\", reused,\n\t)\n\tif task.PriorSessionID != \"\" {\n\t\ttaskLog.Info(\"resuming session\", \"session_id\", task.PriorSessionID)\n\t}\n\n\ttaskStart := time.Now()\n\n\tvar customArgs []string\n\textraArgs := defaultArgsForProvider(d.cfg, provider)\n\tif len(profileFixedArgs) > 0 {\n\t\textraArgs = append(append([]string{}, profileFixedArgs...), extraArgs...)","sourceCodeStart":6788,"sourceCodeEnd":6824,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/daemon/daemon.go#L6788-L6824","documentation":"Error \"create agent backend: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/daemon/daemon.go:6806 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the agent CLI is installed and on PATH; inspect the wrapped error."],"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"}