Skip to content

IntelliJ: rejecting a proposed edit triggers an assertion in DiffStreamHandler.undoChanges #13489

Open

Description

@jasonhemann

I encountered an IDE internal error when rejecting a proposed Java edit in Continue's Agent mode.

Environment:

  • IntelliJ IDEA 2026.2.3, build 262.10968.63
  • Continue 1.0.68
  • macOS, Apple Silicon
  • Gemini 4 Hydrogen through the Gemini provider

The sequence was:

  1. Ask Continue to repair a disposable Java fixture.
  2. Accept its proposed change to one file.
  3. Reject a proposed change to another file. In this case, the rejected change referenced an enum constant that did not exist.
  4. IntelliJ reports an exception attributed to Continue.

Relevant stack excerpt:

java.lang.Throwable: Assertion failed
  at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:477)
  at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:486)
  at com.intellij.openapi.command.impl.UndoManagerImpl.undo(UndoManagerImpl.java:117)
  at com.github.continuedev.continueintellijextension.editor.DiffStreamHandler.undoChanges$lambda$17(DiffStreamHandler.kt:423)

I expected rejecting the edit to restore the original contents without an IDE error.

The original contents were restored, and I could continue the conversation, accept a corrected edit, and run the tests successfully. IntelliJ recorded one occurrence. I have not yet established a reliably repeatable minimal reproduction or whether the problem depends on the model.

Does this match an existing issue with rejecting streamed edits?

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions