Skip to content

[Bug]: Weekly usage and pace break when 5-hour limit is absent #267

Closed

Description

@anthfgreco

Existing issues

  • I searched existing issues and did not find a duplicate.

What happened?

Codex currently appears to temporarily have no 5-hour usage window. The official UI only shows the weekly limit (75% remaining).

Win-CodexBar seems to assume the first usage window is always the 5-hour/session window. As a result:

  • The weekly 25% used value is shown under Session
  • Weekly incorrectly shows 0% used
  • On-pace budget shows 0% across all periods

Expected

Usage windows should be identified by their duration/reset metadata rather than array position.

If the 5-hour window is absent, Win-CodexBar should still show the available multi-day window as Weekly, hide/mark Session unavailable, and calculate pace from the weekly quota.

Affected area

  • Tray panel
  • Settings UI
  • Config file / settings persistence
  • CLI
  • Provider-specific behavior
  • Installer / release packaging
  • Startup / background behavior
  • Other

Steps to reproduce

  1. Use Codex on an account where the 5-hour usage window is not currently present.
  2. Open the official Codex usage UI and confirm only the weekly limit is shown.
  3. Open Win-CodexBar.
  4. Observe that the weekly usage is shown as Session, Weekly shows 0%, and pace values are 0%.

Logs, screenshots, or recordings


App version

v0.47.0

Windows version

Windows 11

Additional context

No response

Activity

  1. added
    bug
    on Aug 6, 2026
  2. Finesssee commented on Aug 7, 2026

    @Finesssee
    Collaborator

    Thanks for the Issue, I will fix it ASAP.

  3. evkaurov commented on Aug 9, 2026

    @evkaurov

    Follow-up: the fix in v0.48.0 appears to handle the tray/CLI, but the Floating Bar still shows 0% in this same state.

    Sanitized diagnostics on v0.48.0:

    primary:   used 0.0%, window_minutes 300, reset null
    secondary: used 20.0%, window_minutes 10080
    
    Session: No active 5h session
    Weekly: 20% used
    

    The Floating Bar displays 0%, while the tray/CLI reports the weekly 20% correctly. Downgrading to v0.47.0 makes the Floating Bar display the weekly value again (about 20–21%).

    It looks like apps/desktop-tauri/src/floatbar/FloatBar.tsx still renders provider.primary directly, without falling back to the valid weekly/secondary window when the 5-hour session is inactive.

    Environment: Windows 11 23H2, build 22631.6199. No credentials or account identifiers included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions