Skip to content

IntelliJ Plugin: Ctrl+Z history pollution and possible data loss #10621

@alshain

Description

@alshain

Before submitting your bug report

Relevant environment info

- Continue version: 1.0.59
- IDE version: IntelliJ 2025.3.2

Description

Prior closed issue: #2245 (closed due to inactivity, issue had not been acknowledged)

When using Continue inline chat to make changes (possibly other modes as well), for every line changed, Continue seems to add two entries to the undo stack.

This creates issues when undoing changes:

  • It's difficult to tell where Continue's changes start and stop (the simple change below takes 16 presses of Ctrl+Z to undo)
  • It can push my own changes out of the undo stack
  • It's simply very annoying to have to press Ctrl+Z that many times
Image

It would also be neat if Continue could take a snapshot in the local history and tag it with the prompt that was used before and after.

To reproduce

  1. Use Ctrl+I
  2. Have it change more than one line
  3. Accept all changes
  4. Use Ctrl+Z to undo

Log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:inline-editRelates to the auto refactor featureide:jetbrainsRelates specifically to JetBrains extensionkind:bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions