Skip to content

Keep quota warnings visible in the TUI - #46912

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e45dc94a6e7a9dad50307840b9fdb15978d053dc
Sep 21, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e45dc94a6e7a9dad50307840b9fdb15978d053dc

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Keep quota warnings visible in the TUI

Why

Quota warnings were hidden from normal transcript rendering, leaving no persistent reminder of remaining usage near the composer.

What changed

  • Show the most constrained quota window in the existing composer hint row, using the existing plan-specific warning thresholds. Include remaining usage, reset time, and /status when space permits.
  • Keep the notice visible while typing or running a turn, even with tooltips disabled. Yield to interaction controls and blocking banners, and suppress the notice when usable credits are available.
  • Preserve quota metadata across sparse updates and thread switches. Require a fresh account usage read to confirm recovery, ignore reads made stale by newer rolling updates, and clear notice state on account changes.
  • Render quota warning history cells in both transcript modes while retaining warning counts and replay deduplication.

Testing

Add unit, integration, and snapshot coverage for warning thresholds, narrow layouts, unchanged composer geometry, suppression, recovery, overlapping reads, account changes, and native transcript replay.

## Why

Quota warnings were hidden from normal transcript rendering, leaving no persistent reminder of remaining usage near the composer.

## What changed

- Show the most constrained quota window in the existing composer hint row, using the existing plan-specific warning thresholds. Include remaining usage, reset time, and `/status` when space permits.
- Keep the notice visible while typing or running a turn, even with tooltips disabled. Yield to interaction controls and blocking banners, and suppress the notice when usable credits are available.
- Preserve quota metadata across sparse updates and thread switches. Require a fresh account usage read to confirm recovery, ignore reads made stale by newer rolling updates, and clear notice state on account changes.
- Render quota warning history cells in both transcript modes while retaining warning counts and replay deduplication.

## Testing

Add unit, integration, and snapshot coverage for warning thresholds, narrow layouts, unchanged composer geometry, suppression, recovery, overlapping reads, account changes, and native transcript replay.

GitOrigin-RevId: e45dc94a6e7a9dad50307840b9fdb15978d053dc
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/e45dc94a6e7a9dad50307840b9fdb15978d053dc branch from cba3ae4 to bb054a2 Compare September 21, 2026 00:23
@copyberry
copyberry Bot merged commit bb054a2 into main Sep 21, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/e45dc94a6e7a9dad50307840b9fdb15978d053dc branch September 21, 2026 00:23
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 21, 2026
@Zasz333
Zasz333 deployed to issue-triage September 21, 2026 00:41 — with GitHub Actions Active
@Zasz333
Zasz333 deployed to issue-triage September 21, 2026 00:41 — with GitHub Actions Active
@Zasz333
Zasz333 deployed to issue-triage September 21, 2026 00:41 — with GitHub Actions Active
@orilynn
orilynn deployed to issue-triage September 21, 2026 00:41 — with GitHub Actions Active
@orilynn
orilynn deployed to issue-triage September 21, 2026 00:41 — with GitHub Actions Active
@orilynn
orilynn deployed to issue-triage September 21, 2026 00:41 — with GitHub Actions Active
@orilynn
orilynn deployed to issue-triage September 21, 2026 00:42 — with GitHub Actions Active
@blevinson
blevinson deployed to issue-triage September 21, 2026 00:42 — with GitHub Actions Active
@blevinson
blevinson deployed to issue-triage September 21, 2026 00:42 — with GitHub Actions Active
@blevinson
blevinson deployed to issue-triage September 21, 2026 00:42 — with GitHub Actions Active
@blevinson
blevinson deployed to issue-triage September 21, 2026 00:43 — with GitHub Actions Active
@AndyL426
AndyL426 deployed to issue-triage September 21, 2026 01:08 — with GitHub Actions Active
@AndyL426
AndyL426 deployed to issue-triage September 21, 2026 01:08 — with GitHub Actions Active
@AndyL426
AndyL426 deployed to issue-triage September 21, 2026 01:08 — with GitHub Actions Active
@AndyL426
AndyL426 deployed to issue-triage September 21, 2026 01:09 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — bb054a2b Deployed Sep 21, 2026 by AndyL426 via Identify potential duplicates (open issues fallback) #47051
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants