Explain background AI usage and warn before allowance runs out
Problem and intended outcome
Users can consume their hosted AI allowance through unattended background tasks, then discover the limit only when they need chat. They need to understand what is consuming the allowance, when it resets, and what they can do before it runs out, without having to contact support.
Reviewed Gmail and Intercom conversations repeatedly describe:
- Surprise exhaustion despite little perceived manual use, with background work sharing the allowance.
- Uncertainty about what credits cover and which allowance/reset window applies to their current plan.
- Long-running or repeated attempts consuming allowance without a useful result.
- Missing or conflicting usage information, leaving users unable to pace their work.
These are anonymized themes, not a claim that every reported failure has the same cause. Provider rate limits, entitlement problems, and confirmed allowance exhaustion must remain distinct. No customer identities, private messages, logs, or production metrics are included here.
@EzraEllette for UX and implementation review.
Extend the existing implementation
PR #6582 already added background allowance warnings. This issue closes the explanation, visibility, and control gaps rather than adding a duplicate warning system. Related public report: #5799.
Verified against main at 4fd2330fdf5649c193948038211abb58794b1da8:
- The gateway advisory uses remaining allowance and reset timing, with defaults of 25% remaining, at least 24 hours until reset, and a 48-hour cooldown. It does not receive measured background-versus-chat consumption.
- The desktop notifier nevertheless says background Pipes are using “most” of the allowance. That attribution is not established by the advisory input.
- The notifier records the cooldown before
/notifysucceeds, so a failed delivery can suppress a later attempt. Its storage identity does not include the signed-in account or severity. - A notification with a link to scheduled tasks does not itself explain consumption or leave a persistent warning after dismissal.
Proposed UX
1. A small, persistent allowance state
Extend the existing usage UI. Keep healthy usage quiet, but show a compact “AI allowance: 20% left” status in chat and scheduled tasks when low. Clicking it opens the same usage detail view everywhere. Keep this separate from the chat context-window meter: context fullness and account allowance are different things.
Use plain language, a text label plus icon, and restrained warning color. Avoid a blocking modal or an upgrade-first screen.
2. Explain what happened and offer useful controls
Illustrative wireframe only. All values and task names below are fictional; percentages share one enforced allowance/window.
BEFORE
A warning links to scheduled tasks.
The user still has to work out what used the allowance and what to stop.
AFTER: compact state
[!] AI allowance: 20% left [View usage]
Expanded usage
+----------------------------------------------------------+
| AI allowance 20% left |
| Resets Thursday, 9:00 AM · Updated just now |
| |
| [ Background: 65% ][ Chat: 15% ][ Remaining: 20% ] |
| Background tasks are using most of this allowance. |
| |
| Background task Share used Schedule Last result |
| Daily summary 45% Hourly Completed |
| Meeting notes 20% Hourly Failed |
| |
| [Review background tasks] [Pause background AI…] |
+----------------------------------------------------------+- Use measured attribution for the same allowance and time window. Do not substitute request counts or raw token counts for the actual allowance accounting. Show an unattributed category when needed; do not sum overlapping allowance lanes.
- Only say background tasks are responsible when the data supports it. Otherwise say “Your AI allowance is running low” and show the verified balance/reset without inventing a breakdown.
- Start with a background/chat/unattributed split where supported. Task-level ranking requires reliable attribution and may ship separately. Link each available task row to its settings and recent run outcome so repeated failures are visible.
- Review should offer supported per-task controls such as reducing frequency or choosing an appropriate model. Keep plan options secondary.
- “Pause background AI…” previews exactly which tasks and devices it affects. Confirm the actual scope and successful application. Local recording, saved history, and local search continue. If only this device can be controlled, say so explicitly. Do not promise an account-wide pause from a local switch.
- Do not silently pause tasks, change models, buy credits, or change a subscription. Preserve existing fallback behavior unless the user explicitly changes it.
3. Warn early, then escalate without nagging
Suggested starting thresholds for evaluation: 75% used for a gentle nudge and 90% used for a critical warning. These are proposed product policy, not customer usage figures.
- Notify on a threshold crossing and retain the inline status after dismissal. A critical crossing can escalate even if the earlier warning is still in cooldown.
- Use the server's actual enforced allowance and reset timestamp, rendered in the user's timezone. Do not infer the reset from a Stripe billing date or hard-code a daily/weekly/monthly promise.
- Do not suppress a critical warning solely because reset is less than 24 hours away. A rapidly consuming task can still exhaust the remaining allowance first.
- Add “At the recent pace, you may run out before the reset” only when a fresh, sufficiently representative consumption history supports it. Omit forecasts when uncertain; do not manufacture an exact time-to-empty.
- Deduplicate by account, allowance window, and severity. Record delivery after a successful notification acknowledgment, with bounded retry on failure. Respect notification preferences and OS permissions; inline status remains available. Verify delivery when the window is hidden or closed to tray.
States and acceptance criteria
| State | Required behavior |
|---|---|
| Healthy allowance | Quiet, accessible usage detail; no repeated alert. |
| Low allowance, measured background consumption | Accurate explanation, balance, reset, and relevant task controls. |
| Low allowance from chat or unknown source | Neutral copy; never falsely blame background tasks. |
| Rapid consumption shortly before reset | Critical warning can appear; no blanket 24-hour exclusion. |
| Missing, stale, or failed usage lookup | “Usage unavailable” or a clearly dated value; never render unknown as zero or “resets not soon.” |
| Confirmed allowance exhaustion | Explain the affected hosted features and verified reset; preserve access to local history and independently available local/BYOK models. |
| Provider 429 or other failure with unknown cause | Do not label it allowance exhaustion without authoritative evidence. |
| Reset or plan change | Refresh from the server, clear stale warning state, and show the actual new allowance. |
| Multiple devices, logout, or account switch | Correct account/window isolation; actions honestly describe device scope. |
| Enterprise member without task-management permission | Show relevant allowance information and the appropriate management route; no ineffective pause button. |
| Muted, dismissed, or failed notification | Persistent inline state; no polling spam; bounded delivery retry and severity escalation. |
Validate light/dark themes, keyboard navigation, screen-reader labels, narrow layouts, and non-color status cues. Test with synthetic allowance fixtures, including failed task runs and overlapping limits. A usability check should establish that someone can identify what is consuming allowance, when it resets, and how to reduce consumption without contacting support.
Keep task names, prompts, captured content, and account identifiers out of analytics and public debugging artifacts. Any diagnostic measurement should use minimal aggregate state and follow existing privacy controls.
Delivery boundary
First ship trustworthy low/critical status, accurate copy/reset, reliable notification state, and a clear route to existing controls. Add measured breakdowns and scoped pause controls as their supporting data and execution guarantees become available. Do not make the baseline warning depend on speculative forecasting or a new billing model.
Source: screenpipe/screenpipe