You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Project Import Consumed All My 5-hours Token Limit #56890
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 :(
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.
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
Make Replay strictly opt-in, and show an estimated usage cost before it starts.
Never trigger Replay from import or import sync.
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.
Please restore the usage that affected users lost to this.
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.
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.
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.
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:
Whether importing Claude Code conversations can automatically enroll or trigger Replay benchmarking, and what user consent is required.
Whether all Replay preparation, implementation, and review operations count against the user's five-hour and weekly Codex allowances.
Whether the server-side usage records confirm these operations were charged against my subscription quota.
Why the Replay could not be stopped, and how users are supposed to cancel an ongoing batch immediately.
Whether quota restoration or compensation is available for Replay jobs initiated without informed user approval.
I can provide redacted local Replay metadata if helpful.
Activity
[-]Project Import Consumed All My 5-hour Token Limit[/-][+]Project Import Consumed All My 5-hours Token Limit[/+]mooyee233-ctrl commentedon Oct 26, 2026
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)
claude-code, chats + projects selected).external-import-turn-N) with 0 input / 0 output tokens. Each one still emitstask_complete, so I got "task complete" desktop notifications even though nothing was running.native-replay-automatic-users-v1.gpt-6.1-solat medium effort, service tierpriority,maxActiveWorkers: 4.~/.codex/replays/, re-implements the task in background worker threads (approval policyNever), then has a judge model compare the result against the original Claude run.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)That was enough to use up the entire 5-hour window in about 6 minutes.
Other side effects
~/.codex/replays/, plus output folders under~/Documents/Codex/<date>/codex-replay-*.How to check if this hit you
~/.codex/.codex-global-state.json→electron-persisted-atom-state→native-replay-state-v1(look atrecords[].attemptsandrecords[].spend) andnative-replay-automatic-users-v1.~/.codex/logs_2.sqlite: searchfeedback_log_bodyforusage limit. Background turns showmodel="gpt-6.1-sol"with a sandbox writable root under~/.codex/visualizations/....~/.codex/replays/*/report.htmlWorkaround: turn off import sync (Settings → Import, or
[desktop] external-agent-import-sync-enabled = falseinconfig.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
I can share the replay record ID and logs privately with the team if that helps.
Hiace4WD commentedon Oct 26, 2026
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-v1in 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.
emincan2000 commentedon Oct 29, 2026
Same thing happened to me.
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 = falseunder[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.
MatthieuStigler commentedon Nov 1, 2026
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.jsonand found:native-replay-automatic-users-v1contains one enrollment entry.native-replay-state-v1contains a completed Replay batch.gpt-6.1-sol, medium reasoning effort, priority service tier.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:
I can provide redacted local Replay metadata if helpful.
MatthieuStigler commentedon Nov 1, 2026
Reproduced on Ubuntu Linux.
Two additional issues with the automatic Replay functionality:
I was also unable to stop the Replay while it was running.