Codex wrote a double `else` block in JS - syntax hallucination.

Resolved 💬 2 comments Opened Nov 6, 2025 by jcs180 Closed Nov 11, 2025

What version of Codex is running?

0.46.0

What subscription do you have?

Plus

Which model were you using?

gpt-5-codex (medium)

What platform is your computer?

MacOS

What issue are you seeing?

Codex just produced some totally wrong code (double else block in JS):

} else {
              activateTab(tab);
            } else {
              activateTab(tab);
              tab.focus();
            }

What steps can reproduce the bug?

Uploaded thread: 019a54c7-55eb-7d80-8a9d-cbf020af9b20

What is the expected behavior?

To write valid JS.

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗