{"record":{"id":"5099708116a4c899","repo":"multica-ai/multica","slug":"chat-task-agent-has-no-runtime","errorCode":null,"errorMessage":"chat task: agent has no runtime","messagePattern":"chat task: agent has no runtime","errorType":"http","errorClass":"ErrChatTaskAgentNoRuntime","httpStatus":409,"severity":"error","filePath":"server/internal/service/task.go","lineNumber":1537,"sourceCode":"\treturn task, nil\n}\n\n// ErrChatTaskAgentArchived signals that EnqueueChatTask refused to\n// queue work because the destination agent has been archived. This\n// is a productizable state — surface it to the user as \"this agent\n// has been archived\" rather than retrying.\nvar ErrChatTaskAgentArchived = errors.New(\"chat task: agent archived\")\n\n// ErrChatTaskAgentNoRuntime signals that EnqueueChatTask refused to\n// queue work because the agent has never been associated with a\n// runtime (agent.runtime_id IS NULL). This is the \"agent has no\n// daemon configured\" case — productizable as \"agent offline\".\n//\n// IMPORTANT: this is NOT the same as \"the daemon is currently\n// disconnected\". When agent.runtime_id IS set, EnqueueChatTask\n// enqueues the task and the daemon claims it on next online; that\n// path returns a task row, not this error.\nvar ErrChatTaskAgentNoRuntime = errors.New(\"chat task: agent has no runtime\")\n\n// ErrChatQuickActionsNoTurn signals that a quick-actions regeneration was asked\n// for a session with no eligible assistant turn to resume from (empty session,\n// or the latest turn is a no_response / failure with nothing to suggest from).\nvar ErrChatQuickActionsNoTurn = errors.New(\"chat quick actions: no assistant turn to regenerate\")\n\n// ErrChatQuickActionsUnavailable signals that the deployment has no LLM layer\n// configured (no MULTICA_LLM_API_KEY / MULTICA_LLM_BASE_URL), so suggestions\n// cannot be generated at all. Automatic generation degrades silently in that\n// case; an explicit refresh gets this error so the client can say why nothing\n// happened.\nvar ErrChatQuickActionsUnavailable = errors.New(\"chat quick actions: llm layer not configured\")\n\n// ErrChatQuickActionsStale signals the turn the client asked to refresh is no\n// longer the session's latest assistant turn (a newer reply landed since the\n// refresh button was rendered). The regeneration is refused so the client's\n// optimistic pending marker never points at a turn the resulting\n// chat:quick_actions event will not match (MUL-5149).","sourceCodeStart":1519,"sourceCodeEnd":1555,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/service/task.go#L1519-L1555","documentation":"Error \"chat task: agent has no runtime\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/service/task.go:1537 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Bind a runtime to the agent before starting a chat task."],"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"}