{"record":{"id":"0e048af0477547fd","repo":"multica-ai/multica","slug":"chat-quick-actions-no-assistant-turn-to-regenerat","errorCode":null,"errorMessage":"chat quick actions: no assistant turn to regenerate","messagePattern":"chat quick actions: no assistant turn to regenerate","errorType":"http","errorClass":"ErrChatQuickActionsNoTurn","httpStatus":409,"severity":"error","filePath":"server/internal/service/task.go","lineNumber":1542,"sourceCode":"// 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).\nvar ErrChatQuickActionsStale = errors.New(\"chat quick actions: refresh target is stale\")\n\n// ErrChatQuickActionsBusy signals the session already has work in flight — a\n// running turn about to change the latest reply, or another regenerate pass —\n// so a new refresh is refused to avoid a stale-target supplement or a duplicate","sourceCodeStart":1524,"sourceCodeEnd":1560,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/service/task.go#L1524-L1560","documentation":"Error \"chat quick actions: no assistant turn to regenerate\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/service/task.go:1542 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["There is no assistant turn to regenerate; send a message first."],"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"}