codex cli stops execution in the middle of a task
What version of Codex is running?
0.33.0
Which model were you using?
gpt-oss-120b
What platform is your computer?
Linux 6.8.0-59-generic x86_64 x86_64
What steps can reproduce the bug?
- Run the codex using
codex - Provide the following prompt:
Role
You are a senior C → Rust migration engineer.
Task
Translate only given Rust function which will be equivalent to its already implemented C counterpart and confirm it compiles:
- Implement any missing helper functions that the target Rust functionrelies on.
- Implement the Rust function so it is functionally identical to the C original, using idiomatic, safe Rust.
- Run
cargo checkin the workspace root (rust_aces) and ensure zero errors.- Do not modify any other files.
- If the target Rust function is already implemented, DO NOT modify it.
- MAKE SURE YOU UPDATE THE RELEVANT RUST FILE WITH THE NEW IMPLEMENTATION.
Target Pair
{ "c_module": "c_aces/src/Polynomial.c", "c_function": "poly_sub", "rust_module": "rust_aces/src/interfaces/polynomial.rs", "rust_function": "sub(&self, other: &Polynomial, modulus: u64) -> Result
" }
What is the expected behavior?
It should update the relevant file, however it stops the execution while reasoning or running tools
What do you see instead?
Output: [2025-09-10T22:15:08] OpenAI Codex v0.33.0 (research preview)
workdir: /home/hexlab/Desktop/research_project_2 model: openai.gpt-oss-120b-1:0 provider: bedrock approval: never sandbox: workspace-write [workdir, /tmp, $TMPDIR]
[2025-09-10T22:15:08] User instructions:
### Role
You are a senior C → Rust migration engineer.
### Context
Follow *all* translation rules in `AGENTS.md`
### Task
Translate **only given Rust function** which will be equivalent to its already implemented C counterpart and confirm it compiles:
1. Implement any missing helper functions that the target Rust functionrelies on.
2. Implement the Rust function so it is functionally identical to the C original, using idiomatic, safe Rust.
3. Run `cargo check` in the workspace root (`rust_aces`) and ensure zero errors.
4. Do **not** modify any other files.
5. If the target Rust function is already implemented, DO NOT modify it.
6. MAKE SURE YOU UPDATE THE RELEVANT RUST FILE WITH THE NEW IMPLEMENTATION.
### Target Pair
{
"c_module": "c_aces/src/Polynomial.c",
"c_function": "poly_sub",
"rust_module": "rust_aces/src/interfaces/polynomial.rs",
"rust_function": "sub(&self, other: &Polynomial, modulus: u64) -> Result
[2025-09-10T22:15:09] exec bash -lc 'ls -R' in /home/hexlab/Desktop/research_project_2
[2025-09-10T22:15:09] bash -lc 'ls -R' succeeded in 19ms:
.:
AGENTS.md
bedrock_inferecne.py
c_aces
c_fslib
codex.log
c_parser
c_parser.py
func_validator.py
module_parser.py
my_translate.py
output_fslib.json
output.json
progress.json
pycache
README_bedrock.md
README.md
README_parser.md
requirements.txt
rust_aces
[2025-09-10T22:15:09] codex
void poly_free(Polynomial *poly) { free(poly->coeffs); poly->coeffs = NULL; poly->size = 0; }
int get_polynomial(Polynomial *p, size_t size) { p->size = size; p->coeffs = (Coeff *)malloc(p->size * sizeof(Coeff)); if (p->coeffs == NULL) return -1; return 0; }
[2025-09-10T22:15:13] codex
- if sizes
differ: diff1, diff2, loop over result size, compute ( i >= diff1 ? poly1->coeffs[i - diff1] : 0) - (i >= diff2 ? poly2->coeffs [i - diff2] : 0) % mod - else simple element
wise subtraction.
The Rust version earlier for add uses similar logic
In sub implementation
Implementation similar to add but subtract.
Let's inspect definition of
Search for other functions for error definition
Additional information
I'm using codex-cli with gpt-oss-120b which is hosted on aws bedrock.
I am experiencing similar behavior with codex exec and codex v0.42.0
Me too in codex v0.46.0
Me too in codex-cli 0.58.0
This bug report is old and not actionable because there's not enough information to diagnose. If you see this behavior again, please use the /feedback slash command to upload the session and open a new bug report.