Agent mode inserts entire file content at point #8568
Unanswered
timo-abele
asked this question in
Help
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thank you for taking a look! In VS Code the behavior seems not as clear cut indeed. I had another look at VS Code, for edit I can reproduce something similar, the upper half (until the selected line) of a file is inserted: For chat I cannot reproduce the behavior described above, but still something unexpected. I get two different results here:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Qwen-3 in Agent mode in IntelliJ and VS Code. I select a piece of code, hit Ctrl+J (L) for Chat and ask the agent to change something. The model generates its explanation and a preview of the changed file in the chat window. I click accept, so the changes are applied to the actual file. But now the entire preview file is inserted instead of just the differing lines:

Accepting this change then, of course breaks the build, because now I have the changed file inserted into the original.
Am I using continue wrong? I don't see how else to do this...
Edit: here is a recording of what I am doing:


And 'Edit' instead of 'Chat' gives the same result:
Is this a bug in continue? Or is the model somehow supplying the output wrong?
Beta Was this translation helpful? Give feedback.
All reactions