Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.1007.71326
What subscription do you have?
Max
What platform is your computer?
MaxOS 27.0.1
What issue are you seeing?
Twice now, Astra on both Medium and High effort levels has become hung, for hours, trying to write a single SQL function. Both times I start an effort and let it run at night. Both times I wake in the morning and it is still running (6-8 hours) on the build which should have taken an hour or two at most. I stop the model and then inquire and both time it says it got hung circling on a single SQL function that it did not like its solution. Both times it said it should have stopped and alerted me but chose to kept looping.
What steps can reproduce the bug?
Bug: Codex gets stuck in prolonged implementation/rework loops.
Task: Fix a static SQL checker so it distinguishes SQL-analysis test fixtures from real database SQL, without filename/name exemptions or baseline additions.
Observed behavior: Codex repeatedly implements an approach, finds shortcomings in its own solution, expands or replaces it, and repeats for hours without completing the task. Progress messages describe individual changes, but the overall work does not converge. This happened overnight and is the second observed occurrence.
Representative SQL fixtures:
SELECT id FROM asset
SELECT lifecycle FROM asset
These strings are embedded in generated TypeScript fixtures in app/test/src/migration-order.test.ts. The difficult part was tracing their use through helper functions, temporary source files, and compiler analysis—not executing the SQL.
Expected behavior: Identify the competing requirements, choose a bounded implementation strategy, validate it, and finish. If the approach repeatedly fails, explicitly identify the recurring failure and change strategy rather than continuing an open-ended rewrite loop.
Impact: Hours consumed, requested fixes still uncommitted, and required review and final gate not completed.
What is the expected behavior?
It should solve the issue or stop and ask for direction.
Additional information
This is a typical Typescript/node project.
Activity
github-actions commentedon Oct 16, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action