{"record":{"id":"0504989c6b68b823","repo":"multica-ai/multica","slug":"chat-task-agent-archived","errorCode":null,"errorMessage":"chat task: agent archived","messagePattern":"chat task: agent archived","errorType":"http","errorClass":"ErrChatTaskAgentArchived","httpStatus":409,"severity":"error","filePath":"server/internal/service/task.go","lineNumber":1526,"sourceCode":"\t\t\"requester_id\", util.UUIDToString(requesterID),\n\t\t\"workspace_id\", util.UUIDToString(workspaceID),\n\t\t\"project_id\", payload.ProjectID,\n\t\t\"parent_issue_id\", payload.ParentIssueID,\n\t)\n\t// Match every other Enqueue* path: kick the daemon WS so the task\n\t// gets claimed promptly instead of waiting for the next 30 s poll\n\t// cycle. Without this the user perceives \"quick create never\n\t// triggered\" because the modal closes immediately and the task\n\t// sits in 'queued' until the next sleepWithContextOrWakeup tick.\n\ts.NotifyTaskEnqueued(ctx, task)\n\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","sourceCodeStart":1508,"sourceCodeEnd":1544,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/service/task.go#L1508-L1544","documentation":"Error \"chat task: agent archived\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/service/task.go:1526 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Restore the archived agent or pick an active 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-15T22:17:37.221Z"}