You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NES gutter icon persists across file close/open cycles and applies stale suggestion to wrong file #17108
An NES gutter icon is visible on line 6 — the same line number where the edit was made in file_a.R.
No edits have been made in file_b.R.
Click the NES gutter icon.
The previous file's suggestion is applied: total_price becomes final_result and print(total_price) becomes print(final_result).
The user is not shown a preview before the change is applied.
Describe the problem in detail
After accepting an NES suggestion and closing the file, the NES gutter icon persists in the editor. When a new file is opened, the stale gutter icon appears on the same line number where the previous edit occurred — before any edits are made in the new file. Clicking the stale gutter icon silently applies the old file's suggestion to the new file, corrupting its contents.
This only occurs with sequential NES edits with GitHub Copilot. Posit Assistant works correctly.
Describe the behavior you expected
No NES gutter icon should appear on a freshly opened file before any edits. NES state from a previous file should not carry over after the file is closed.
Activity
invalidate in-flight NES requests on editor dismiss
Fix NES gutter icon persisting across file close/open cycles (#17160)
ronblum commentedon Mar 4, 2026
Verified in RStudio Desktop 2026.04.0-daily+346 on Windows 11. Used automated Playwright test
code_suggestions.test.ts -g "NES adjacent rename"Made changes corresponding to PR review. Added resulting changes and …