losing track of and faking execution of simple tasks: release 0.27.0, 0.28.0, and 0.29.0 with gpt-oss and other models
What version of Codex is running?
0.27.0, 0.28.0, and 0.29.0
Which model were you using?
gpt-oss ( and similar results with other models )
What platform is your computer?
amd64 linux
What steps can reproduce the bug?
used the same simple prompt (build and run a container and clean up after exits) and the same config.toml, same profile and model, same AGENTS.md file, and switched through the following versions, restarting a new codex session each time the binary executable was incremented:
- 0.25.0 , completed tasks accurately, single run, gave final report
- 0.26.0 , completed tasks accurately, single run, gave final report
- 0.27.0 , lost track half way through and stopped
- 0.28.0 , created a plan but did not execute it
- 0.29.0 , created a plan, and "synthesized" (faked) the execution of it
---
full prompt was:
_"build the Dockerfile and run the resulting image, using build and run arguments to remove interim build images and container IDs upon exit. When you're done, there should be no container IDs or images from this task except for the main build output image - so keep track of the container and image IDs along the way. The overal objective of this task is to verify that we can build and run fast-exiting containers with this type of hygiene"_
What is the expected behavior?
the expected behavior is, for same model and environment, codex should facilitate the model's planning and execution of the request in the prompt to completion.
What do you see instead?
pretending to execute some or all steps in its plan
Additional information
release 0.25.0 is my "stable" for the time being... overall behavior seem increasingly inconsistent and non-performant after that - despite using the same model, environment, and prompt through the newer releases.
6 Comments
I consistently have this type of issue especially as context usage increases - Codex will repeatedly write plans and claim to have completed the work, while no work was actually performed.
Hey @neurostream this might be a collection of changes that might result in the wrong symptoms.
0.29 fixed the behavior where the CoT wasn't passed back to the model provider resulting in occasional tool calling amnesia. Passing the CoT back in should overall increase the performance but can increase the likelihood of running out of context with providers like Ollama that default to very small context windows.
The Ollama team is aware of this and is trying to improve context window management but one thing you could try that should improve things is setting a higher context window.
For that create a file called Modelfile and add the following content:
(Or increase beyond 32k. The default is I think 4k or 8k)
Then run
This should give you a new gpt-oss:20b-32k that you can try instead. Hope that helps
btw, i continued the next iteration of the test above with 0.30.0 and it seems to be a lot better.
I'll try to re-cast the model in ollama (i'm using gpt-oss:120b and other models with codex) with the num_ctx adjustment - i just assumed what was in the metadeta about the context size was what it would be using, like:
in any case, thank you! very insightful
@dkundel-openai things are looking good. closing this issue, thanks agian.
With default run of ollama
codexquickly forgets the task, even thoughollama show gpt-oss-20bshowscontext length 131072. The problem is ollama has a hidden additional context limit of 8192 tokens:https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-specify-the-context-window-size
right... i've recently started to use "ollama create" to set the ctx size for each local model to more deliberate sizes for my inference hardware; and setting the global OLLAMA_CONTEXT_LENGTH for "ollama serve" to the context size of the largest model i use locally (since the default of like 4k or 8k caps the size of all models regardless of the the models trained context size).