You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex runs consistently into a stream error when using /compact #5087
stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_9fuLHI3mxyYoaLpqTAYk2405.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
What is the expected behavior?
That /compact compacts
What do you see instead?
stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_9fuLHI3mxyYoaLpqTAYk2405.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
Additional information
No response
Reacted by Darko Luketic, Al Ghifari, Wesley Silva, McCoy R. Becker, Rick Torres Jr. and Omar Khaled
■ Codex ran out of room in the model's context window. Start a new conversation or clear earlier history before retrying.
› continue
■ Codex ran out of room in the model's context window. Start a new conversation or clear earlier history before retrying.
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_q0x1D3dj8x9F5gI4YXyht3pz.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 1/5 in 217ms…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_q0x1D3dj8x9F5gI4YXyht3pz.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 2/5 in 409ms…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_q0x1D3dj8x9F5gI4YXyht3pz.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 3/5 in 731ms…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_q0x1D3dj8x9F5gI4YXyht3pz.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 4/5 in 1.57s…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_q0x1D3dj8x9F5gI4YXyht3pz.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 5/5 in 3.357s…
■ unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_q0x1D3dj8x9F5gI4YXyht3pz.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}
■ Codex ran out of room in the model's context window. Start a new conversation or clear earlier history before retrying.
› continue
■ Codex ran out of room in the model's context window. Start a new conversation or clear earlier history before retrying.
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_q0x1D3dj8x9F5gI4YXyht3pz.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 1/5 in 217ms…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_q0x1D3dj8x9F5gI4YXyht3pz.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 2/5 in 409ms…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_q0x1D3dj8x9F5gI4YXyht3pz.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 3/5 in 731ms…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_q0x1D3dj8x9F5gI4YXyht3pz.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 4/5 in 1.57s…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_q0x1D3dj8x9F5gI4YXyht3pz.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 5/5 in 3.357s…
■ unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_q0x1D3dj8x9F5gI4YXyht3pz.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}
The thing is, if you have a log running task you are jot always able to interrupt in time. /compact should always be posssible
Same problem here with codex-cli 0.47.0 on Windows 11 (WSL2 and native). gpt-5-codex-high. 10% context left, compact gives always
unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_xVhvaoDVlo3quCl5ffcZJTnr.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}
╭────────────────────────────────────────────────╮
│ >_ OpenAI Codex (v0.47.0) │
│ │
│ model: gpt-5-codex high /model to change │
╰────────────────────────────────────────────────╯
MacOS: 15.6.1
Chip: Apple M2 Pro
Installation Method: Homebrew
Error: unexpected status 400 Bad Request when using /compact
Auto compact fails as well.
Same here. The context got full, and when I typed /compact it also led to this. It did not auto compact for me. After the error message, it resets the context back to 100% but when I send a new prompt, it tells me the context is full.
Using WSL2 on Windows 11.
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_FFqkhL94kEiJIcFoxGjuNGoL.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 1/5 in 210ms…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_FFqkhL94kEiJIcFoxGjuNGoL.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 2/5 in 375ms…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_FFqkhL94kEiJIcFoxGjuNGoL.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 3/5 in 826ms…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_FFqkhL94kEiJIcFoxGjuNGoL.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 4/5 in 1.566s…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_FFqkhL94kEiJIcFoxGjuNGoL.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 5/5 in 3.43s…
■ unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_FFqkhL94kEiJIcFoxGjuNGoL.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}
Activity
dlukt commentedon Oct 13, 2025
0.46.0
Linux
styler-ai commentedon Oct 13, 2025
The thing is, if you have a log running task you are jot always able to interrupt in time. /compact should always be posssible
aidogmf commentedon Oct 19, 2025
Same problem with codex-cli 0.47.0 on MacOS Sequoia 15.6.1 (Intel Core i7)
jlacroix42 commentedon Oct 20, 2025
Same problem here with codex-cli 0.47.0 on Windows 11 (WSL2 and native). gpt-5-codex-high. 10% context left, compact gives always
omar-hanafy commentedon Oct 21, 2025
Same problem here info:
MacOS: 15.6.1
Chip: Apple M2 Pro
Installation Method: Homebrew
Error: unexpected status 400 Bad Request when using /compact
Auto compact fails as well.
Toltally-suck-at-code commentedon Oct 25, 2025
Same here. The context got full, and when I typed /compact it also led to this. It did not auto compact for me. After the error message, it resets the context back to 100% but when I send a new prompt, it tells me the context is full.
Using WSL2 on Windows 11.
"error": {
"message": "No tool call found for function call output with call_id call_FFqkhL94kEiJIcFoxGjuNGoL.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 1/5 in 210ms…
"error": {
"message": "No tool call found for function call output with call_id call_FFqkhL94kEiJIcFoxGjuNGoL.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 2/5 in 375ms…
"error": {
"message": "No tool call found for function call output with call_id call_FFqkhL94kEiJIcFoxGjuNGoL.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 3/5 in 826ms…
"error": {
"message": "No tool call found for function call output with call_id call_FFqkhL94kEiJIcFoxGjuNGoL.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 4/5 in 1.566s…
"error": {
"message": "No tool call found for function call output with call_id call_FFqkhL94kEiJIcFoxGjuNGoL.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}; retrying 5/5 in 3.43s…
■ unexpected status 400 Bad Request: {
"error": {
"message": "No tool call found for function call output with call_id call_FFqkhL94kEiJIcFoxGjuNGoL.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}
etraut-openai commentedon Nov 14, 2025
Closing in favor of #4813