Skip to content

Codex runs consistently into a stream error when using /compact #5087

@styler-ai

Description

@styler-ai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcontextIssues related to context management (including compaction)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions