Skip to content

[BUG] duplicate assistant messages #2697

Closed

Description

@snipeship

What version of Codex is running?

codex-cli 0.23.0 (but on HEAD it happens, as well)

Which model were you using?

gpt-5

What platform is your computer?

Darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

Send two messages in a row; if you check the request body in the second request, it will include a duplicate of the assistant's message from the first request.

What is the expected behavior?

It should only include one (not duplicate) assistant message.

What do you see instead?

There are two duplicate assistant responses.

If you ask the model, it will confirm the suspicion (it is reaching the model, unfortunately).

Additional information

Lots of wasted tokens :)

Activity

  1. snipeship commented on Aug 27, 2025

    @snipeship
    Author

    #2758 closes this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions