# NousResearch/hermes-agent · Fix Codex usage window duration labeling bug

## Open now

- 0 issues, 3 PRs open on GitHub.
- PR #70043: fix(codex): label usage windows by published duration
- PR #77493: fix: label Codex usage windows by duration
- PR #103095: feat(desktop): provider account usage in the status bar

These members all address a bug where Codex usage windows were being labeled by response position (e.g., 'Session') rather than their actual published duration (e.g., 'Weekly'). The fix corrects the labeling logic across related implementations.

## TL;DR

- 6 member(s): 0 open issue(s), 1 closed issue(s), 3 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #115766. Verify it addresses your case.
- **Recommended:** read PR #115766 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-115766`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.33`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #65387: \[Bug\]: Codex weekly-only primary_window is mislabeled as Session

## Prior & competing PRs

- **#115766: fix(usage): Codex quota windows labelled correctly and shown on every /usage surface (#65387, #42904, #15167, #79695; salvage #65400, #42905)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/account_usage.py`, `apps/desktop/src/app/session/hooks/use-prompt-actions/utils.test.ts`, `apps/desktop/src/app/session/hooks/use-prompt-actions/utils.ts`, `contributors/emails/ZishiW@users.noreply.github.com`, `gateway/slash_commands_status.py`, `hermes_cli/cli_info_mixin.py`, `tests/agent/test_account_usage.py`, `tests/gateway/test_usage_command.py`, `tests/hermes_cli/test_cli_status_bar.py`, `tests/tui_gateway/test_session_usage_account_lines.py`, `tui_gateway/methods_session.py`
- **#65400: fix(usage): label Codex usage windows by duration, not response position (#65387)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `604d8803a1f2`, `#115766`, `#65387`, `#42904`, `#15167`, `#79695`, `#65400`, `#42905`
- **#70043: fix(codex): label usage windows by published duration**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#65387`, `#65400`
  - files: `agent/account_usage.py`, `tests/test_account_usage.py`
- **#77493: fix: label Codex usage windows by duration**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `83e1e38132b8`, `#65387`, `#65400`, `#70043`, `#77493`, `#374151`
  - files: `agent/account_usage.py`, `tests/agent/test_account_usage.py`, `tests/test_account_usage.py`
- **#103095: feat(desktop): provider account usage in the status bar**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `agent/account_usage.py`, `apps/desktop/src/app/shell/account-usage-statusbar-item.test.tsx`, `apps/desktop/src/app/shell/account-usage-statusbar-item.tsx`, `apps/desktop/src/app/shell/hooks/use-statusbar-items.tsx`, `apps/desktop/src/hooks/use-account-usage.test.tsx`, `apps/desktop/src/hooks/use-account-usage.ts`, `apps/desktop/src/i18n/ar.ts`, `apps/desktop/src/i18n/en.ts`, `apps/desktop/src/i18n/ja.ts`, `apps/desktop/src/i18n/ru.ts`, `apps/desktop/src/i18n/types.ts`, `apps/desktop/src/i18n/zh-hant.ts`, `apps/desktop/src/i18n/zh.ts`, `apps/desktop/src/types/hermes.ts`, `apps/shared/src/gateway-contract.generated.ts`, `apps/shared/src/gateway-contract.openrpc.json`, `tests/agent/test_account_usage.py`, `tests/agent/test_account_usage_fetch.py`, `tests/tui_gateway/test_inline_rpc_gil_starvation.py`, `tests/tui_gateway/test_tui_gateway_server.py` (+4 more)

## Fix status

- Merged to main in PR #115766 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-19`.
- Subsystem: `agent`
