Repository navigation
Description
Client or integration
OpenCodex dashboard
Area
Dashboard
Summary
When workbuddy-ai is configured and successfully authenticated, its credit balance (workbuddyCredits) is parsed by the backend probe (src/providers/quota/workbuddy.ts) and rendered correctly in the provider accounts tab (WorkBuddyCredits.tsx).
However, the topbar quota summary (QuotaSummaryBar) never displays a chip for WorkBuddy AI. This happens because summaryWindows() in gui/src/quota-summary.ts only extracts standard time-window limits (5h, weekly, monthly, customWindows) and creditsUsd. It ignores workbuddyCredits, causing pickHeadline() to find zero measured windows and dropping the provider from the summary bar entirely.
Additionally, this is not caused by any display cap: QuotaSummaryChips supports arbitrary numbers of providers with horizontal overflow and paging controls (« / »).
Environment
- Version: opencodex
v2.96.0(andmain) - Component:
gui/src/quota-summary.ts,gui/src/components/quota-summary-bar/QuotaSummaryBar.tsx - Provider:
workbuddy-ai
Root Cause Analysis
-
Backend representation:
fetchWorkBuddyQuota()(src/providers/quota/workbuddy.ts) returns:quota: { updatedAt, workbuddyCredits: { total, used, remaining, frozen, groups, expiring } }
Notice that it does not provide
creditsUsd, nor does it emit standard percentage windows likeweeklyPercent. -
GUI report mapping:
Ingui/src/provider-workspace/report.ts:
quotaFromUnknown()normalizesworkbuddyCredits, soaccountQuotaFromReport(report)successfully returns anAccountQuotaobject containingworkbuddyCredits. -
Summary bar extraction gap:
Ingui/src/quota-summary.ts:function summaryWindows(quota: AccountQuota): QuotaSummaryWindow[] { const windows: QuotaSummaryWindow[] = quotaWindows(quota).map(...); const credits = quota.creditsUsd; if (credits && credits.unlimited !== true && finite(credits.percent)) { windows.push({ id: "quotaSummary.credits", labelKey: "quotaSummary.credits", percent: credits.percent, ... }); } return windows; }
quotaWindows(quota)only checksfiveHourPercent,weeklyPercent,monthlyPercent, andcustomWindows.summaryWindows()checksquota.creditsUsd, but does not checkquota.workbuddyCredits.- As a result, for WorkBuddy AI,
windowsis empty. pickHeadline(windows)returnsundefined.buildQuotaSummary()executesif (!headline) continue;and omits WorkBuddy AI from the topbar chip list.
Expected Behavior
A chip for WorkBuddy AI appears in the topbar (e.g. showing used/remaining percentage or calculated usage severity), with popover details showing credit status.
Actual Behavior
No chip is rendered in the topbar for WorkBuddy AI, even if other providers (e.g. OpenAI, Anthropic, xAI) show up normally.
Suggested Fix
In gui/src/quota-summary.ts, adapt quota.workbuddyCredits inside summaryWindows():
const wb = quota.workbuddyCredits;
if (wb && finite(wb.total) && wb.total > 0 && finite(wb.used)) {
const percent = Math.min(100, Math.max(0, (wb.used / wb.total) * 100));
const expiresMs = wb.expiring?.at ? resetTimestamp(wb.expiring.at) : null;
windows.push({
id: "quotaSummary.credits",
labelKey: "quotaSummary.credits",
percent,
...(expiresMs !== null ? { resetAt: expiresMs } : {}),
severity: quotaSeverity(percent),
});
}This allows WorkBuddy AI credits to derive a valid headline percentage and participate in the QuotaSummaryBar like other credit-based providers.
Reproduction
- Configure and log into
workbuddy-aivia OAuth (ocx login workbuddy-aior GUI). - Open the GUI and check Providers -> WorkBuddy AI -> Accounts. Confirm that credits (total, remaining, expiring) are displayed.
- Observe the topbar
QuotaSummaryBar.
Version
2.96.0
Operating system
OS: Manjaro Linux (x86_64) Kernel: Linux 7.2.9-1-MANJARO
Provider and model
workbuddy-ai
Logs or error output
Screenshots and supporting files
No response
Redacted configuration
Checks
- I searched existing issues and documentation.
- I removed secrets, tokens, account details, request credentials, and personal data.
Activity
github-actions commentedon Nov 3, 2026
Automated translation bookkeeping — detected language: English.
github-actions commentedon Nov 3, 2026
Issue reopened
The report now contains the information required by the automated check. Thanks for updating it.
Ingwannu commentedon Nov 4, 2026
Confirmed on current
dev(72e80d2).summaryWindows()ingui/src/quota-summary.ts(L57-84) builds windows only fromquotaWindows()andcreditsUsd. A WorkBuddy report carries onlyworkbuddyCredits(src/providers/quota/workbuddy.ts:79, normalized ingui/src/provider-workspace/report.ts:177-179), sopickHeadline()returns nothing andbuildQuotaSummary()skips the provider (L111). The balance is rendered only byProviderCapacityQuota.tsx(Overview/Accounts), which matches the scope of #7604. It is not a regression.This needs a design decision before a fix.
structure/providers/workbuddy.mddefines these credits as display-only, so credit exhaustion does not disable free models. A header chip that turns warn/critical at 70/90% could suggest the provider is blocked. If we add it, the percent should be(total - remaining) / totalrather thanused / total, so frozen credits are counted. We also need to decide whether the chip gets threshold severity or stays neutral. A regression case belongs ingui/tests/quota-summary.test.ts. Leaving this for the GUI owner to decide on the presentation.Add WorkBuddy quota before evidence for #8131
Add WorkBuddy quota after evidence for #8131