Skip to content

Project Import Consumed All My 5-hours Token Limit #56890

Open

Description

@SwanVods

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

26.1021.31345

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26300.0 x64

What issue are you seeing?

Importing a project from Claude consumed an excessive amount of rate limits unexpectedly.

What steps can reproduce the bug?

Feedback ID: 01a172d8-109b-7de3-948b-ad381a2deb42

What is the expected behavior?

Actual behavior:
Right after the import, without executing any queries, my weekly usage dropped by 16% and the 5-hour session limit was 100% exhausted. I have never used codex before and it's my first time subscription

Expected behavior:
Importing project files should not drain the entire 5-hour session quota or consume such a significant portion of weekly limits prior to any user interactions.

Additional information

Issue: Importing a project from Claude consumed an excessive amount of rate limits unexpectedly.

Steps to reproduce:

  • Go to Settings > Import.
  • Choose "Import project from Claude, with all checkboxes checked (tools, chats, projects)" and proceed.

Actual behavior:
Right after the import, without executing any queries, my weekly usage dropped by 16% and the 5-hour session limit was 100% exhausted.

Expected behavior:
Importing project files should not drain the entire 5-hour session quota or consume such a significant portion of weekly limits prior to any user interactions.

I have never used codex before and it's my first time subscription. I did not expect that this import consumed 16% of my weekly session :(

Image

Activity

  1. added
    app
    on Oct 25, 2026
  2. added
    bug
    rate-limits
    on Oct 25, 2026
  3. changed the title [-]Project Import Consumed All My 5-hour Token Limit[/-] [+]Project Import Consumed All My 5-hours Token Limit[/+] on Oct 25, 2026
  4. mooyee233-ctrl commented on Oct 26, 2026

    @mooyee233-ctrl

    Same thing happened to me on the same app version, and I traced it in the local state/logs. The import itself uses no tokens. The usage comes from an automatic "Replay" job that starts right after the import and re-runs your imported Claude Code sessions with a Codex model.

    Environment: Windows 11, Codex app 26.1021.31345 (bundled CLI 0.164.0-alpha), Claude Code import with chats enabled.

    Timeline (relative to the import sync start)

    • T+0s: import sync starts (provider claude-code, chats + projects selected).
    • T+4s: imported threads are written. Their turns are synthetic (external-import-turn-N) with 0 input / 0 output tokens. Each one still emits task_complete, so I got "task complete" desktop notifications even though nothing was running.
    • T+10s: a Replay record is created automatically. I did not start any task or click anything. The app state lists my account under native-replay-automatic-users-v1.
      • Replay config: implementation, judge and supporting models all gpt-6.1-sol at medium effort, service tier priority, maxActiveWorkers: 4.
      • My configured default is a different model at low effort, so Replay doesn't use the user's model settings.
    • T+10s to ~T+6.5min: Replay works through about 20 imported sessions, including ones imported weeks earlier, not just the new ones. For each session it copies the original workspace into ~/.codex/replays/, re-implements the task in background worker threads (approval policy Never), then has a judge model compare the result against the original Claude run.
    • ~T+6.5min: the worker turns fail with You've hit your usage limit. ... try again at <time>. A report titled "Replay comparison" is written showing the original Claude cost vs. the Codex cost for each task.

    Spend recorded by Replay itself (native-replay-state-v1 → records[].spend)

    Operations 16 (preparation / implementation / review)
    Input tokens 7,595,762 (6,670,592 cached)
    Output tokens 58,835
    Estimated API-equivalent cost ~$8.29

    That was enough to use up the entire 5-hour window in about 6 minutes.

    Other side effects

    • About 1.3 GB of workspace copies under ~/.codex/replays/, plus output folders under ~/Documents/Codex/<date>/codex-replay-*.
    • Content from my imported private sessions was re-sent to a model for a comparison I never asked for.

    How to check if this hit you

    • ~/.codex/.codex-global-state.json → electron-persisted-atom-state → native-replay-state-v1 (look at records[].attempts and records[].spend) and native-replay-automatic-users-v1.
    • ~/.codex/logs_2.sqlite: search feedback_log_body for usage limit. Background turns show model="gpt-6.1-sol" with a sandbox writable root under ~/.codex/visualizations/....
    • ~/.codex/replays/*/report.html

    Workaround: turn off import sync (Settings → Import, or [desktop] external-agent-import-sync-enabled = false in config.toml). I couldn't find any documented way to turn off automatic Replay; it isn't mentioned in the import docs or the changelog.

    Requests

    1. Make Replay strictly opt-in, and show an estimated usage cost before it starts.
    2. Never trigger Replay from import or import sync.
    3. If Replay stays, don't charge it against plan limits (it's a comparison the user didn't request), or at least use the user's configured model and service tier.
    4. Please restore the usage that affected users lost to this.
    5. Don't emit task-complete notifications for synthetic imported turns.

    I can share the replay record ID and logs privately with the team if that helps.

  5. Hiace4WD commented on Oct 26, 2026

    @Hiace4WD

    Same issue here. macOS 27.0.1 (arm64), app 26.1021.31345. With Claude Code import sync on, a Replay batch started automatically in the background (window hidden, no user action) right after an import sync, re-ran about 5 old imported sessions with gpt-6.1-sol on priority tier, and used up my whole 5-hour limit before I had used the app that day. My account is listed under native-replay-automatic-users-v1 in the global state. I never opted in to Replay.

    Possibly related, same build: in Work, clicking "Allow once" on a command approval ends the turn immediately as interrupted (error null, no output), see #53560.

  6. emincan2000 commented on Oct 29, 2026

    @emincan2000

    Same thing happened to me.

    • Plan: [Plus]
    • Codex app version: [version], Linux
    • Imported from Claude Code with all options checked (import sync was on, item types "all")

    Right after the import, before I sent a single message, my whole session limit was used up and about 15% of my weekly limit was gone. I never opted into Replay or anything like it.

    I have now set external-agent-import-sync-enabled = false under [desktop] in config.toml to stop it from running again.

    Please make Replay opt-in, and please restore the usage it took. Users who imported shouldn't lose a big part of their weekly limit to a job they didn't ask for.

    Image
  7. MatthieuStigler commented on Nov 1, 2026

    @MatthieuStigler

    I can reproduce what appears to be the same issue on Codex Desktop for Linux, after importing historical Claude Code conversations on October 28–29, 2026.

    I investigated my local ~/.codex/.codex-global-state.json and found:

    • native-replay-automatic-users-v1 contains one enrollment entry.
    • native-replay-state-v1 contains a completed Replay batch.
    • The batch ran on October 31, 2026, from 15:05:20 to 15:11:21 UTC (approximately six minutes).
    • Model: gpt-6.1-sol, medium reasoning effort, priority service tier.
    • Maximum active workers: 4.
    • 31 recorded attempts and 42 recorded model operations (20 preparation, 11 implementation, 10 review, 1 conversation).
    • 7,549,286 total tokens, including:
      • 7,484,519 input tokens
      • 6,231,936 cached input tokens
      • 64,767 output tokens
      • 6,774 reasoning output tokens (included in output)
    • $7.5817 estimated API-equivalent model expenditure, according to the Replay state.
    • 10 completed implementations, one failed implementation, and nine skipped source attempts.

    Most notably, 6,403,607 tokens (84.8%) were spent on preparation, before considering implementation and review.

    The Replay generated reconstructed workspaces under ~/Documents/Codex/2026-10-31/codex-replay-* and later delivered a report comparing historical Claude tasks against Codex implementations.

    Crucially, I was unable to stop the Replay while it was running, despite my attempts to do so. I could not find any effective way to cancel or terminate the ongoing batch. It continued consuming model resources without giving me a working way to intervene.

    I did not knowingly authorize a 42-operation benchmark of my imported conversations. The local records indicate automatic Replay enrollment, but I cannot establish from them exactly what triggered execution.

    Could the maintainers please clarify:

    1. Whether importing Claude Code conversations can automatically enroll or trigger Replay benchmarking, and what user consent is required.
    2. Whether all Replay preparation, implementation, and review operations count against the user's five-hour and weekly Codex allowances.
    3. Whether the server-side usage records confirm these operations were charged against my subscription quota.
    4. Why the Replay could not be stopped, and how users are supposed to cancel an ongoing batch immediately.
    5. Whether quota restoration or compensation is available for Replay jobs initiated without informed user approval.

    I can provide redacted local Replay metadata if helpful.

  8. MatthieuStigler commented on Nov 1, 2026

    @MatthieuStigler

    Reproduced on Ubuntu Linux.

    Two additional issues with the automatic Replay functionality:

    1. Replay costs more than the savings it claims to demonstrate: 7.55 million tokens and approximately $7.58 in estimated API-equivalent costs, versus $5.97 in highlighted hypothetical savings. See Automatic Replay costs more than the savings it claims to demonstrate #58670.
    2. The Replay results are highly biased and misleading: only favorable savings are highlighted, while unfavorable comparisons are omitted from the summary. See Replay results: Codex savings comparisons are highly biased and misleading #58671.

    I was also unable to stop the Replay while it was running.

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

    appbugrate-limits

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions