Skip to content

fix: stop showing Codex lifetime token totals as context usage#115

Merged
Zhang-Henry merged 1 commit intomainfrom
fix/codex-context-indicator-semantics
Mar 29, 2026
Merged

fix: stop showing Codex lifetime token totals as context usage#115
Zhang-Henry merged 1 commit intomainfrom
fix/codex-context-indicator-semantics

Conversation

@bbsngg
Copy link
Copy Markdown
Contributor

@bbsngg bbsngg commented Mar 28, 2026

Summary

  • stop treating Codex lifetime / aggregate token totals as current context usage
  • return an explicit unsupported-context token budget for Codex when reliable context occupancy is unavailable
  • show a Ctx N/A badge in chat instead of a misleading 100% pie, and fetch token-usage metadata for Codex/Gemini sessions on load
  • add unit tests for Codex token-usage parsing and realtime budget behavior

Closes #73

Testing

  • npm run typecheck
  • npm test -- server/utils/__tests__/sessionTokenUsage.test.js
  • npm run build

@Zhang-Henry Zhang-Henry marked this pull request as ready for review March 29, 2026 19:17
@Zhang-Henry Zhang-Henry merged commit bd5526f into main Mar 29, 2026
1 check passed
@bbsngg bbsngg deleted the fix/codex-context-indicator-semantics branch March 30, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Codex chat token/context indicator stays at 100% during long sessions

2 participants