vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Agents window: "Clear" next to "Submit" deletes all review comments with no confirmation or undo

Open pfeurean opened this issue 3 weeks ago • 1 comments

Does this issue occur when all extensions are disabled?: Not tested (the action is core VS Code, not an extension).

  • VS Code Version: 1.145.2 (c4453f8ea430795f941c1b2ff6c9321135a74a02)
  • OS Version: Windows 11 x64

Steps to reproduce

  1. In the Agents window, run Code Review (/code-review) on a session with changes. The agent adds several review comments to the changed files.
  2. In the Changes view, the comment toolbar shows Submit and Clear side by side.
  3. Click Clear.

Actual behavior

  • Every review comment for the session is deleted immediately. There's no confirmation dialog and no undo.
  • The comments can't be recovered. The only way back is to ask the agent to add them again or to run the review again.
  • Clear is in the same toolbar group as Submit (a_submit, order 1, next to Submit at order 0), so it's easy to click by mistake. Its visible label is just "Clear". The tooltip says "Clear All Feedback", but that only shows on hover.

Expected behavior

One or more of:

  • A confirmation before deleting all comments, such as "Delete all 3 review comments?" (UX guidelines recommend confirming destructive actions).
  • An undo, for example a notification with Undo after clearing.
  • Clear placed apart from Submit, with a clearer label such as "Clear All Comments".

Notes

  • Source: ClearAllFeedbackAction in src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackEditorActions.ts calls agentFeedbackService.clearFeedback(sessionResource) directly.
  • In the same session the comments were in a child chat, and Submit then appeared to do nothing, which matches #346885. These are separate problems, but together they made the review flow very hard to recover from: the comments were gone and Submit gave no feedback.

pfeurean avatar Nov 10 '26 19:11 pfeurean

Thanks for creating this issue! It looks like you may be using an old version of VS Code; the latest stable release is 1.145.3. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!