{"record":{"id":"0eb8cef22be309e7","repo":"multica-ai/multica","slug":"chat-quick-actions-refresh-target-is-stale","errorCode":null,"errorMessage":"chat quick actions: refresh target is stale","messagePattern":"chat quick actions: refresh target is stale","errorType":"http","errorClass":"ErrChatQuickActionsStale","httpStatus":409,"severity":"error","filePath":"server/internal/service/task.go","lineNumber":1556,"sourceCode":"\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\n// quota-spending pass (MUL-5149).\nvar ErrChatQuickActionsBusy = errors.New(\"chat quick actions: session busy\")\n\n// ErrChatSessionArchived signals that a send or a debounced channel flush lost\n// a race with archiving the session and therefore must not persist a new turn.\nvar ErrChatSessionArchived = errors.New(\"chat task: session archived\")\n\n// EnqueueChatTask creates a task-owned input batch for a chat session. Channel\n// media makes the task deferred until binding completes or its durable fallback\n// deadline expires; other chat tasks are queued immediately. Unlike issue\n// tasks, chat tasks have no issue_id.\n//\n// Errors split into two layers:\n//","sourceCodeStart":1538,"sourceCodeEnd":1574,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/service/task.go#L1538-L1574","documentation":"Error \"chat quick actions: refresh target is stale\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/service/task.go:1556 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Refresh the chat view and retry; the refresh target has changed."],"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"}