Repository navigation
Description
Existing issues
- I searched existing issues and found [Bug]: Weekly usage and pace break when 5-hour limit is absent #267 / Fix Codex weekly window detection #268, which handle the weekly-only Codex payload in the provider, tray/settings/CLI surfaces.
- I did not find a separate issue for the FloatBar fallback.
What happened?
On Win-CodexBar 0.48.0, Codex OAuth can return an informational primary window when no 5-hour session is active, plus a real weekly secondary window.
Safe diagnostic snapshot:
{
"source": "oauth",
"login_method": "ChatGPT Pro",
"primary": {
"used_percent": 0,
"window_minutes": 300,
"reset_description": "No active 5h session",
"is_informational": true
},
"secondary": {
"used_percent": 26,
"window_minutes": 10080
}
}The tray/settings/CLI identify the weekly window correctly, but the FloatBar displays:
100% · No active 5h session
As a result, the actual weekly limit is not visible in the FloatBar.
Root cause
apps/desktop-tauri/src/floatbar/FloatBar.tsx reads provider.primary unconditionally for remaining/used percent, exhaustion, reset time, and sorting. It does not check provider.primary.isInformational and does not fall back to provider.secondary.
This appears to be a surface-specific omission after #268 introduced the canonical informational session placeholder.
Expected behavior
When provider.primary.isInformational === true and provider.secondary exists, FloatBar should display the secondary/weekly window (including its percentage and reset time), or otherwise expose a setting to select the FloatBar metric.
The fallback should also be used for FloatBar sorting/tone calculations so an informational 0% used / 100% remaining placeholder does not outrank real quota windows.
Reproduction
- Use a Codex account whose usage API currently returns no active 5-hour window and a weekly window.
- Open Win-CodexBar 0.48.0.
- Confirm the tray/settings/CLI show weekly usage correctly.
- Enable Floating Bar and
Show Reset Time Inline. - Observe
100% · No active 5h sessioninstead of the weekly usage.
Environment
- Win-CodexBar: 0.48.0
- OS: Windows 11
- Provider source: Codex OAuth
Activity
Finesssee commentedon Aug 10, 2026
Thanks for the issue, I will fix it ASAP.
shawnwu2022 commentedon Aug 11, 2026
same issues