Skip to content

Responding with a follow-up when AI suggests an edit results in desync #12269

@mcendu

Description

@mcendu

Before submitting your bug report

Relevant environment info

- OS: Windows 11
- Continue version: 1.2.22
- IDE version: Code 1.117.0
- Model: "DeepSeek Coder" (deepseek-v4-flash)

Description

When the AI requests an edit, you can type in a follow-up instead of rejecting or accepting the edit. The edit request will not be carried out, but the AI will receive an indicator that the edit was successful. As a result, the AI's view of the file will disagree with the actual state.

While this is less a problem for short files, with longer files, the AI may output a diff against their desynchronized view of the file, which fails to apply.

To reproduce

  1. Create a new C source file with an empty main function:
#include <stdio.h>
int main(int argc, char **argv)
{
}
  1. Ask the AI to write Hello World in the current file.

  2. After an edit is suggested, ask the AI to add the functionality to print out argv[0]. The edit will not be carried out, but the interface of Continue marks this edit as accepted.

Log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:editRelates to side panel Edit featureide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windows

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions