codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex runs consistently into a stream error when using /compact

Open styler-ai opened this issue 1 year ago • 7 comments

What version of Codex is running?

• codex-cli 0.46.0

Which model were you using?

gpt-5-codex-high

What platform is your computer?

Windows 11

What steps can reproduce the bug?

/compact

 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

styler-ai avatar Oct 11 '25 12:10 styler-ai

0.46.0 Linux

■ 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
  }
}

dlukt avatar Oct 13 '25 13:10 dlukt

0.46.0 Linux

■ 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

styler-ai avatar Oct 13 '25 15:10 styler-ai

Same problem with codex-cli 0.47.0 on MacOS Sequoia 15.6.1 (Intel Core i7)

aidogmf avatar Oct 19 '25 09:10 aidogmf

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
  }
}

jlacroix42 avatar Oct 20 '25 10:10 jlacroix42

Same problem here info:

╭────────────────────────────────────────────────╮
│ >_ 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.

omar-hanafy avatar Oct 21 '25 07:10 omar-hanafy

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
}
}

Toltally-suck-at-code avatar Oct 25 '25 13:10 Toltally-suck-at-code

Closing in favor of #4813

etraut-openai avatar Nov 14 '25 06:11 etraut-openai