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
Uninstalling Posit AI fails with "Access Denied" when multiple Desktop instances are open #17365
RStudio Edition : Desktop
RStudio Version : 2026.04.0-daily
OS Version : Windows 11 Pro
R Version : 4.5.3
Steps to reproduce the problem
Open RStudio Desktop.
Install Posit AI if it's not already installed.
Session -> New Session.
A second RStudio Desktop instance opens.
In the second instance, open the command palette with Ctrl+Shift+P.
Type "Uninstall Posit AI" and click the command.
Click "Yes" on the confirmation dialog.
An error dialog appears: "system error 5 (Access is denied)".
Also, if the uninstall is performed from the first instance instead (where it succeeds):
Return to the second instance.
The chat pane still shows Posit Assistant as if it's available.
Send a message in the chat pane.
The spinning squares appear but no response ever arrives. The underlying package has been removed.
Describe the problem in detail
The uninstall command fails from a secondary instance. When the uninstall succeeds from the first instance, other open instances are not notified. Their chat panes continue to show Posit Assistant as functional, but any interaction silently hangs, with the misleading spinning squares.
Describe the behavior you expected
The error dialog shouldn't appear or should be more informative. Perhaps the uninstall could succeed regardless of which instance initiates it, or the confirmation dialog could warn that other RStudio instances need to be closed first. After a successful uninstall, other open instances would ideally detect the change and update their UI accordingly.
Unlike other operating systems, Windows locks files that have been loaded for execution, while they are running. So we'd need to message all other instances, have them all terminate the backends, and then do the uninstall.
I don't think this needs to be fixed for release as it's intended as a troubleshooting aid and should be rarely used.
The part about other instances not updating after one successfully uninstalls is not Windows-specific, again we'd need to communicate with all instances to deal with this, and I don't think it's worth the effort.
Activity
gtritchie commentedon Apr 8, 2026
Unlike other operating systems, Windows locks files that have been loaded for execution, while they are running. So we'd need to message all other instances, have them all terminate the backends, and then do the uninstall.
I don't think this needs to be fixed for release as it's intended as a troubleshooting aid and should be rarely used.
gtritchie commentedon Apr 8, 2026
The part about other instances not updating after one successfully uninstalls is not Windows-specific, again we'd need to communicate with all instances to deal with this, and I don't think it's worth the effort.