{"record":{"id":"3297cfd5fa7f70b8","repo":"multica-ai/multica","slug":"chat-quick-actions-session-busy","errorCode":null,"errorMessage":"chat quick actions: session busy","messagePattern":"chat quick actions: session busy","errorType":"http","errorClass":"ErrChatQuickActionsBusy","httpStatus":409,"severity":"error","filePath":"server/internal/service/task.go","lineNumber":1562,"sourceCode":"// 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//\n//   - Productizable rejections (agent archived, no runtime, session\n//     archived) return the sentinel errors above. Callers (e.g. the Lark\n//     dispatcher) can errors.Is them to decide a user-visible outcome.\n//\n//   - Infrastructure failures (DB load / insert errors) are wrapped\n//     as ordinary errors. The caller should treat them as retryable","sourceCodeStart":1544,"sourceCodeEnd":1580,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/service/task.go#L1544-L1580","documentation":"Error \"chat quick actions: session busy\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/service/task.go:1562 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Wait for the current session activity to finish before running the quick action."],"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"}