Skip to content

All context is lost upon editing message from before compaction #20287

@zaptrem

Description

@zaptrem

What version of the Codex App are you using (From “About Codex” dialog)?

26.422.71525 (2210)

What subscription do you have?

Pro

What platform is your computer?

Darwin 25.3.0 arm64 arm

What issue are you seeing?

If you edit a pre-compaction message after compaction, Codex will lose chat state. See screenshot

What steps can reproduce the bug?

  1. Run a conversation to the point where the next chat message immediately causes a compaction
  2. Allow compaction to happen and a response to be written
  3. Edit the prior message to ask about prior conversation history.
  4. Codex will not remember anything from the prior conversation
  5. Attempts to fork at prior messages causes the same behavior (Codex does not remember any conversation context when asked in forked versions of the conversation)

See here:

Image

What is the expected behavior?

Compaction runs again with the new message, or Codex recalls pre-compaction context some other way.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingcontextIssues related to context management (including compaction)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions