Skip to content

[Bug]: ¿?¿?¿? Have the Codex graphics been lost? #616

Closed

Description

@ciltocruz

Existing issues

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

What happened?

Maybe related with: #468

I do see the usage, but I don't see the money supposedly saved.
The ChatGPT page does show usage charts by day, but it's true that none of them indicate the cost savings.

I use ChatGPT Pro.

Image Image Image

If I am doing something wrong, I would appreciate some help.

Affected area

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

Steps to reproduce

Logs, screenshots, or recordings


App version

latest

Windows version

Windows 11 25H2

Additional context

No response

Activity

  1. added
    bug
    on Sep 24, 2026
  2. Finesssee commented on Sep 24, 2026

    @Finesssee
    Collaborator

    Thanks for the report, I will fix that ASAP.

  3. added a commit that references this issue on Oct 3, 2026
  4. Finesssee commented on Oct 3, 2026

    @Finesssee
    Collaborator

    Thanks for the screenshots, and sorry for the wait.

    v0.70.0 includes one related fix: the Codex cost scan now also reads archived sessions (<CODEX_HOME>\archived_sessions) and older flat session files. Previously, archived conversations dropped out of Cost (30 days) and the weekly token/cost rows.

    In your screenshots, though, every token row is empty while Codex shows active usage. That usually means CodexBar found no local Codex session logs at all. Cost and tokens are calculated only from those local logs; the usage percentages come from your account. To narrow it down, could you tell us:

    1. How do you use Codex: the Codex CLI, the IDE extension, the Codex desktop app, Codex in the browser (cloud tasks), or inside WSL?
    2. Does %USERPROFILE%\.codex\sessions exist, and does it contain dated folders with .jsonl files? Please also check %USERPROFILE%\.codex\archived_sessions.
    3. Is the CODEX_HOME environment variable set? If so, to which folder?

    Once v0.70.0 is published, please retest. If it still shows $0.00, the output of codexbar cost -p codex --days 30 --json would help a lot. Please remove any paths or account details you'd rather not share.

  5. ciltocruz commented on Oct 3, 2026

    @ciltocruz
    Author

    I use chatGPT models in Opencode and Codex cli, both in WSL, inside Windows.
    I will test with v0,70.0

  6. ciltocruz commented on Oct 3, 2026

    @ciltocruz
    Author

    I installed 0.70.0.
    It seem equal.

    Image

    I assume it's not possible to perform the calculations if the models are used outside of Codex (exe), right?

  7. Finesssee commented on Oct 6, 2026

    @Finesssee
    Collaborator

    I installed 0.70.0. It seem equal.

    Image I assume it's not possible to perform the calculations if the models are used outside of Codex (exe), right?

    im trying my best to fix this rn, im pretty it is possible.

  8. Finesssee commented on Oct 6, 2026

    @Finesssee
    Collaborator

    @ciltocruz thanks for testing 0.70.0. Since Codex CLI runs inside WSL, its session logs are in your WSL home (~/.codex/sessions). By default the cost scan only reads the Windows-side folder, so it finds nothing to count.

    Could you try pointing it at the WSL folder?

    1. Open Settings → Advanced → Codex local logs.
    2. In Codex log paths, enter \\wsl.localhost\<distro>\home\<user>\.codex with your distro name and Linux user name. A .codex root is fine; the sessions folder inside it is scanned.
    3. Refresh, and check whether the Codex cost rows fill in.

    If they are still empty, please share:

    • the output of codexbar cost -p codex --days 30 --json from Windows (feel free to trim anything private)
    • your distro name as shown by wsl -l -v

    Cost is calculated from Codex CLI session logs, so usage from tools that don't write those logs won't appear there.

  9. ciltocruz commented on Oct 6, 2026

    @ciltocruz
    Author

    It works!!

    Image

    And now... the million-dollar question... do you think it's possible to track the cost directly from the OpenAI account when the subscription is used in other CLIs, like Opencode or Pi?

  10. Finesssee commented on Oct 6, 2026

    @Finesssee
    Collaborator

    @ciltocruz glad it works, and thanks for confirming.

    On tracking usage from other CLIs:

    • Usage limits (the session and weekly percentages) come from your OpenAI account, so they already include usage from Opencode, Pi or any other tool on the same subscription.
    • Cost is calculated from Codex CLI session logs only. OpenAI doesn't offer a per-account cost or token API for ChatGPT subscriptions, so CodexBar can't see what other tools spend. If one of those tools writes Codex-format session logs, you can add its folder to Codex log paths and it will be counted.

    Closing this since the WSL path fix resolves it. Feel free to reopen if the cost rows go empty again.

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