codex - 💡(How to fix) Fix GPT 5.5 under codex decides to make unilateral decisions that can cause breaking changes to existing code bases when given instructions after many compacted contexts [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#22521Fetched 2026-05-14 03:34:49
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×2closed ×1commented ×1

Root Cause

So I added that line about adding new features because I wanted codex to do something like

Fix Action

Fix / Workaround

When writing code in QHTML, if you run into a situation where the framework does not support the operation you are trying to perform in a declarative manner, rather than trying to do a javascript workaround, consider adding new features to the QHTML framework itself

and it does just that in GPT 5.3-codex and other previous versions.. but GPT 5.5 does not.. instead it resorted back to the creating massive javascript workarounds, only this time its deleting existing code that serves some other purpose because its name is similar to the thing its creating or changing and it removes it at the framework level then adds in the workaround specific to the q-component, whereas q-components are part of an entirely differente layer in the model that qhtml has

Code Example

Which i interpret as create a new abstracted feature that will facilitate the simple creation whatever the problem is 

Example:  qhtml does not support the ability to loop over an array - codex was doing something like this
q-component somecomp { 
   q-property myprop
   onReady { 
    for (var i=0; i<myprop.length; i++) { var elem = document.createElement("some-elem"); document.querySelector("somecomp").appendChild(some-elem) }
}
}

Which was causing the newly created elements to not be registered in the qhtml engine so then it started implementing all the lookups and everything right tthere in the onReady { } block like  getContextNamedReferences(element)  blah blah and it like re-built half the runtime inside of a simple component. 

So I added that line about adding new features because I wanted codex to do something like 

add a new language feature
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.130.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.5 (reasoning high, summaries auto)

What platform is your computer?

Linux 6.17.0-23-generic x86_64 unknown

What terminal emulator and version are you using (if applicable)?

Konsole running zsh

What issue are you seeing?

GPT 5.5 under codex decides to make unilateral decisions that can cause breaking changes to existing code bases when given instructions after many compacted contexts. A number of times I have given codex instructions like "comment out this particular code so we can uncomment it later" and its response is always "delete the code and replace it with a placeholder" instead of following instructions..

This behavior happens in many different situations, mostly invovled with editing existing code, it makes a lot of unilateral decisions which were not really requested , even when a specific request was made which has nothing to do with its chosen action.

I have seen gpt 5.5 xhigh do things like modify files that did not need to be modified based on partial directions in AGENTS.md which referenced specific scenarios like

When writing code in QHTML, if you run into a situation where the framework does not support the operation you are trying to perform in a declarative manner, rather than trying to do a javascript workaround, consider adding new features to the QHTML framework itself

Which i interpret as create a new abstracted feature that will facilitate the simple creation whatever the problem is

Example: qhtml does not support the ability to loop over an array - codex was doing something like this q-component somecomp { q-property myprop onReady { for (var i=0; i<myprop.length; i++) { var elem = document.createElement("some-elem"); document.querySelector("somecomp").appendChild(some-elem) } } }

Which was causing the newly created elements to not be registered in the qhtml engine so then it started implementing all the lookups and everything right tthere in the onReady { } block like getContextNamedReferences(element) blah blah and it like re-built half the runtime inside of a simple component.

So I added that line about adding new features because I wanted codex to do something like

add a new language feature for (item in myprop) { some-elem { otherprop: item } }

then use that syntax after creating the language feature..

and it does just that in GPT 5.3-codex and other previous versions.. but GPT 5.5 does not.. instead it resorted back to the creating massive javascript workarounds, only this time its deleting existing code that serves some other purpose because its name is similar to the thing its creating or changing and it removes it at the framework level then adds in the workaround specific to the q-component, whereas q-components are part of an entirely differente layer in the model that qhtml has

Just thought you might want to know about this strange behavior...

What steps can reproduce the bug?

Uploaded thread: 019dd681-c1c2-7de0-a7e6-0d16cd9f0ce1

What is the expected behavior?

in the case of the session from the transcript log, there are numerous situations where the behavior should have been to more closely follow the AGENTS.md and the prompt instructions.

Additional information

It is possible that this is just too complex for ChatGPT to be able to understand.. which it may very well be..

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix GPT 5.5 under codex decides to make unilateral decisions that can cause breaking changes to existing code bases when given instructions after many compacted contexts [1 comments, 2 participants]