Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.1021.31345
What subscription do you have?
ChatGPT subscription ($100/month)
What platform is your computer?
Darwin 25.6.0 arm64 arm
What issue are you seeing?
Summary
Codex App entered a repetitive execution loop during a SwiftUI development task, repeatedly compacting its context, inspecting the same files, and announcing implementation steps without delivering a verified result.
The execution lasted 2 hours, 3 minutes, and 22 seconds before exhausting my usage limit.
I am paying $100/month for ChatGPT, and this incident consumed my available usage without completing the requested task.
Steps to reproduce
- Open an existing macOS SwiftUI project.
- Ask Codex to convert three existing modal views (Reports, Mail, and Profile) into full application pages accessible through the sidebar.
- Codex initially rebuilds and reinstalls the application without implementing the requested changes.
- Clarify that the navigation changes were not implemented.
- Allow Codex to continue working through automatic context compaction cycles.
Actual behavior
Instead of implementing the changes, Codex repeatedly:
- Read the same Swift source files.
- Searched for the same navigation symbols.
- Announced that it was about to modify the navigation.
- Promised to rebuild and reinstall the application.
- Automatically compacted its context.
- Restarted essentially the same investigation.
Repeated searches included:
showMail|showReport|showProfileSetup|sidebarUtility|detailContent
The agent repeatedly stated that implementation was underway or nearly complete, but the visible execution history showed no verified completion.
The execution eventually terminated with:
“You’ve hit your usage limit.”
The application indicated that usage would become available again on November 1, 2026, at 11:16 AM.
Expected behavior
Codex should:
- Preserve task state across context compaction.
- Detect repeated tool calls without meaningful progress.
- Prioritize actual code modifications over repetitive analysis.
- Verify progress through file diffs, builds, and tests.
- Stop execution when it cannot make progress.
Impact
- Execution time: 2h 03m 22s
- Subscription: $100/month
- Context compaction: Repeated automatic compactions
- Tool usage: Repeated file reads and nearly identical searches
- Result: No verified implementation
- Termination: Usage limit exhausted
This is not merely a coding error. It appears to be a failure of execution control, context management, and resource-consumption safeguards.
Requested action
Please investigate why Codex continued repeating the same operations across context compaction cycles without detecting the lack of progress.
I would also appreciate a review of the usage consumed during this failed execution and consideration of restoring the exhausted allowance.
I have an exported execution log containing the repeated operations and final usage-limit error.
What steps can reproduce the bug?
Reproduction steps
- Open an existing macOS SwiftUI project in Codex App.
- Ask Codex to convert three existing modal views (Reports, Mail, Profile) into regular pages within the application’s sidebar navigation.
- Allow Codex to inspect the existing navigation implementation.
- After an initial rebuild that does not contain the requested changes, explicitly ask Codex to implement the missing functionality.
- Allow the agent to continue autonomously through multiple automatic context compaction cycles.
- Observe the repeated file inspections, identical searches, and repetitive progress messages.
Repeated operations
Codex repeatedly searched for:
showMail|showReport|showProfileSetup|sidebarUtility|detailContent
The agent repeatedly inspected JobSearchModule.swift and related SwiftUI views.
After automatic context compaction, it returned to essentially the same investigation.
Result
The agent continued repeating operations for approximately 2 hours and 3 minutes without delivering a verified implementation.
The session eventually terminated with:
You've hit your usage limit.
Reproducibility
Observed in one extended execution session. Not independently reproduced in a fresh session.
Session ID and exact token consumption are not currently available.
The complete execution history can be provided in redacted form.
What is the expected behavior?
Codex should maintain a reliable record of task progress across automatic context compaction.
After inspecting the relevant files, the agent should proceed to implementation rather than repeatedly restarting the same investigation.
Expected behavior includes:
- Preserving completed analysis, pending changes, and known blockers across context compaction.
- Detecting repeated tool calls that produce no meaningful progress.
- Avoiding redundant file reads and identical searches.
- Reporting progress only when supported by actual code modifications.
- Verifying implementation through diffs, builds, and tests.
- Stopping execution and reporting a blocker when progress cannot be made.
The agent should not continue consuming a user’s usage allowance for hours while repeatedly announcing the same intended actions.
A failed task should terminate with a clear explanation rather than exhausting the available usage limit.
Additional information
Environment
- Application: ChatGPT desktop app with Codex
- Version: 26.1021.31345
- Operating system: macOS / Darwin 25.6.0
- Architecture: Apple Silicon (arm64)
- Subscription: $100/month
Incident impact
The problematic execution lasted 2 hours, 3 minutes, and 22 seconds.
During this period, Codex repeatedly announced that it was implementing the requested changes while continuing to inspect the same source files.
The execution history contains numerous automatic context compaction events and repeated tool calls.
The final result was an exhausted usage allowance, with the application indicating that usage would become available again on November 1, 2026, at 11:16 AM.
Financial impact
I am paying $100 per month for access to this service.
A significant amount of my available usage was consumed by repetitive operations that did not produce a verified result.
This is particularly concerning because the agent did not detect the execution loop or stop before exhausting the usage allowance.
Requested investigation
Please investigate the interaction between automatic context compaction, execution-loop detection, and agent progress tracking.
I would also appreciate a review of the usage consumed during this failed execution and consideration of restoring the exhausted allowance.
A full execution history is available. I can provide a redacted log if needed.
[codex-execution-loop.md](https://github.com/user-attachments/files/33945320/codex-execution-loop.md)

Activity
github-actions commentedon Oct 26, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action