Skip to content

Codex usage limit decreases without corresponding user activity #28908

Open

Description

@excessive-eng

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.611.62324

What subscription do you have?

pro 5x

What platform is your computer?

Mac OS Darwin 25.6.0 arm64 arm

What issue are you seeing?

Subject:

Image Image Image Image Image Image Image

Hello,

I would like to report what appears to be a bug related to Codex usage limits.

Environment:

  • macOS
  • Codex desktop application
  • Workspace contains multiple engineering projects
  • Subscription: paid plan with Codex access

Problem Summary

Codex usage limits decrease significantly even when there is little or no active usage.

I initially suspected that large project size or repository indexing might be responsible. During investigation I performed multiple isolation tests, but the issue remained.

Observed Behaviour

  1. Codex usage limit was exhausted unexpectedly despite normal usage.
  2. After limit reset, usage immediately returned to approximately 98% consumed.
  3. In several cases, the limit continued decreasing while:
    • no prompts were being submitted;
    • no active Codex tasks were running;
    • Codex window was idle;
    • system monitoring showed no significant Codex activity.

Investigation Performed

Phase 1 – Repository analysis

Initial workspace:

  • Main folder: “New project”
  • Size: approximately 7.7 GB
  • File count: approximately 256,468 files

Findings:

  • Root .git repository size: approximately 3.6 GB
  • Repository covered all engineering projects simultaneously.

At first I suspected Codex might be scanning the entire workspace.

Phase 2 – Repository isolation

Actions performed:

  1. Disabled root repository:

mv .git .git_DISABLED_2026-06-18

  1. Created a separate repository only inside project:

New project/НТГ ОРЧ

  1. Initialized new local repository:

git init

  1. Added .gitignore
  2. Verified git status.

Result:

The new repository contained only the project-specific content.

However, the Codex limit issue remained.

Phase 3 – Minimal project test

Created completely separate test workspace:

~/Documents/Test_Codex

Commands executed:

mkdir ~/Documents/Test_Codex
cd ~/Documents/Test_Codex
git init
echo test > README.md

Result:

Even in a nearly empty project containing only README.md, the usage limit continued to decrease.

This suggests the problem is not caused by project size.

Phase 4 – Process monitoring

Continuous monitoring was performed using:

while true; do
date
top -l 1 -o cpu -stats pid,command,cpu,time | head -30
sleep 10
done

Observations:

  • Codex processes remained almost completely idle.
  • CPU usage of Codex processes was effectively 0%.
  • No large indexing activity was visible.
  • No runaway git processes.
  • No continuous file scanning visible.
  • No significant memory growth.

Relevant processes observed:

Codex
Codex (Renderer)
Codex (Service)

The processes remained present but mostly inactive.

Result:

The operating system monitoring does not indicate any workload that would explain rapid consumption of Codex limits.

Additional Observation

I observed multiple situations where:

  • a session completed successfully;
  • Codex was closed or left idle;
  • no new requests were submitted;

yet after some time the usage limit had decreased significantly.

I also observed cases where usage dropped immediately after a reset despite almost no new activity.

Possible Cause

Based on testing, the issue appears unrelated to:

  • project size;
  • number of files;
  • Git repository size;
  • active local processing;
  • active user prompts.

It may be related to:

  • session accounting;
  • background usage accounting;
  • stale sessions remaining associated with the account;
  • server-side usage calculation.

Files Available

I can provide:

  • screenshots of limit behaviour;
  • terminal monitoring logs;
  • repository diagnostics;
  • Git isolation test results.

Please investigate whether usage accounting may be incorrectly attributing consumption to inactive or previously completed Codex sessions.

Thank you.

What steps can reproduce the bug?

I cannot reliably reproduce this intentionally because the issue appears to happen while Codex is idle.

Observed sequence:

  1. Open Codex desktop app on macOS.
  2. Work in a local project.
  3. Stop submitting prompts.
  4. Confirm no Codex task is actively running.
  5. Leave Codex idle or close/reopen it.
  6. Watch the Codex usage indicator after some time.
  7. The remaining Codex limit decreases even though no new prompt was submitted.

Additional isolation test:

  1. Create a minimal empty test project.
  2. Run:

mkdir ~/Documents/Test_Codex
cd ~/Documents/Test_Codex
git init
echo test > README.md

  1. Open this folder in Codex.
  2. Ask one very small prompt, for example: “Reply with one word: test.”
  3. Stop using Codex.
  4. Monitor the usage limit.
  5. The limit still decreases over time, even though the project is minimal and no active task is running.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bugSomething isn't working
    rate-limitsIssues related to rate limits, quotas, and token usage reporting
    on Jun 18, 2026
  2. excessive-eng commented on Jun 18, 2026

    @excessive-eng
    Author

    Additional evidence collected after opening this issue:

    I disabled the original repository metadata and recreated a clean local Git repository for the project to rule out excessive indexing caused by a large Git history.

    Before:

    • Parent repository contained approximately 256,000 files.
    • .git directory size was approximately 3.6 GB.

    Actions performed:

    • Disabled the original top-level .git repository.
    • Created a new clean repository only inside the active project folder.
    • Verified that the active project contains only a few thousand files.
    • Opened a completely new Codex chat and issued only trivial test prompts.

    Observed behavior:

    • Codex successfully answered simple requests.
    • No long-running tasks were active.
    • No cloud execution was requested.
    • No repository-wide analysis was requested.
    • Despite this, the 5-hour Codex quota continued decreasing over time.

    This suggests the issue is not caused solely by repository size, Git history size, or active user requests.

    The quota appears to continue decreasing even after:

    • closing previous tasks,
    • opening a fresh chat,
    • recreating the repository,
    • issuing only trivial prompts.

    Please investigate whether quota accounting, background task attribution, delayed reconciliation, or server-side session activity may be involved.

  3. Necmttn commented on Jun 22, 2026

    @Necmttn

    This needs a charge ledger, not just a percent gauge. Each quota delta should have an origin such as foreground_prompt, background_task, resume/indexing, retry, memory_writer, or server_adjustment, plus session/thread id, model, token buckets, request id, and observed reset/window id.

    That would let users prove the important case here: quota moved while no foreground task was active. Without that split, idle drain, delayed reconciliation, and background work all look the same.

    Generated with ax - https://github.com/Necmttn/ax

  4. neilo937-pixel commented on Jul 10, 2026

    @neilo937-pixel

    I am seeing a possibly related Codex usage-metering issue on a ChatGPT Plus account.

    Unlike the original report, I was actively running tasks, but the amount of usage consumed appears highly disproportionate to the workload.

    Environment

    • Subscription: ChatGPT Plus
    • Client: Codex desktop app for Windows
    • Codex App version: 26.707.31428
    • App release date shown in About Codex: July 10, 2026
    • Time zone: KST / UTC+9
    • Date observed: July 10, 2026

    Exact timeline

    The five-hour usage limit reset at exactly 12:07 PM KST. I started the first task immediately after the reset.

    Task 1

    • Start: 12:07 PM KST
    • End: 12:17 PM KST
    • Model: GPT-5.6 Terra
    • Reasoning effort: Medium
    • Usage before: approximately 100% remaining
    • Usage after: approximately 26% remaining
    • Duration: approximately 10 minutes

    The task was documentation and prompt-governance refactoring.

    Visible results:

    • Six Markdown governance documents
    • One Git commit
    • No production execution
    • No runtime code changes
    • No full test suite

    Task 2

    • Started shortly after 12:17 PM KST
    • End: 12:54 PM KST
    • Model: GPT-5.6 Luna
    • Reasoning effort: Medium
    • Usage before: approximately 26% remaining
    • Usage after: 0% remaining

    The task was substantially smaller than Task 1.

    Visible results:

    • Validation of the previously created documentation
    • One prompt-history Markdown update
    • One Git commit
    • One local Git fast-forward
    • No production execution
    • No runtime code changes
    • No full test suite

    The entire newly reset five-hour allowance was exhausted in approximately 47 minutes across two documentation-focused tasks.

    The Codex app task history shows the timestamps and the model change from Terra to Luna. To my knowledge, no other Codex task, CLI session, IDE integration, or cloud task was running concurrently.

    I understand that Codex usage depends on context size, reasoning, tool calls, and internal agent turns rather than only the visible number of file changes. However, this consumption is dramatically higher than my recent experience with GPT-5.5, where I was able to complete several longer implementation tasks within one usage window.

    Could the team please investigate whether this may involve:

    • incorrect server-side usage accounting;
    • abnormal context or cache accounting;
    • stale or background sessions being attributed to the account;
    • an account-specific rate-limit or anti-abuse restriction;
    • or a regression in the Codex desktop app usage meter?

    I can provide sanitized prompts, completion summaries, exact timestamps, and additional screenshots privately if needed.

    Image
  5. excessive-eng commented on Jul 10, 2026

    @excessive-eng
    Author
  6. neilo937-pixel commented on Jul 10, 2026

    @neilo937-pixel
  7. neilo937-pixel commented on Jul 12, 2026

    @neilo937-pixel
  8. PracticalSwan commented on Aug 28, 2026

    @PracticalSwan

    Current-build reproduction on Windows confirms at least one concrete source of apparently idle quota drain.

    Environment:

    • Codex Desktop OpenAI.Codex_26.825.4187.0_x64__2p2nqsd0c76g0
    • bundled CLI codex-cli 0.150.0-alpha.12.2
    • ChatGPT-authenticated Desktop app

    Observed symptom: the 5-hour remaining quota moved from roughly 10% to 6% over a few minutes while no foreground Codex request was being submitted.

    Local Codex logs show hidden Desktop-generated turns during the affected period. In roughly 25 minutes there were 37 successful model requests attributable to the Desktop process: 34 on gpt-5.6-terra and 3 on gpt-5.6-luna. The raw request token totals were about 2.25M across those calls; that raw total should not be interpreted as a direct quota percentage because cache/model/reasoning accounting can differ.

    A particularly clear idle pair occurred at about 19:32 UTC:

    • gpt-5.6-terra / medium: ~41.9K total request tokens
    • immediately followed by gpt-5.6-luna / low: ~22.3K total request tokens

    The corresponding Codex log records identify the hidden workflow as ambient/home suggestion generation plus its follow-up safety/compliance filtering. The logs include the ambient prompt family (Generate 0 to 3 hyperpersonalized suggestions...) and an internal skill-selection/shadow-selection path; these were not visible foreground user threads.

    The current build also has an actual Desktop config switch:

    [desktop]
    ambient-suggestions-enabled = false

    After changing the existing setting from true to false with the app closed and relaunching the same build, a controlled verification period showed:

    • 0 new ambient-suggestion prompt records
    • 0 ambient-safety-filter prompt records
    • 0 model HTTP-request threads attributable to the Desktop app
    • no new entries in an independent local request meter

    This strongly suggests background ambient suggestions are still capable of consuming user-visible Codex quota in the current Windows Desktop build, and that the existing ambient-suggestions-enabled switch is an effective local mitigation. It would be useful for the product to expose this switch clearly in UI and/or ensure these background generations do not count against the user's foreground usage allowance.

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

    appIssues related to the Codex desktop appbugSomething isn't workingrate-limitsIssues related to rate limits, quotas, and token usage reporting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions