Skip to content

Uninstalling Posit AI fails with "Access Denied" when multiple Desktop instances are open #17365

Closed

Description

@ronblum

System details

RStudio Edition : Desktop
RStudio Version : 2026.04.0-daily
OS Version      : Windows 11 Pro
R Version       : 4.5.3

Steps to reproduce the problem

  1. Open RStudio Desktop.
  2. Install Posit AI if it's not already installed.
  3. Session -> New Session.
    • A second RStudio Desktop instance opens.
  4. In the second instance, open the command palette with Ctrl+Shift+P.
  5. Type "Uninstall Posit AI" and click the command.
  6. 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):

  1. Return to the second instance.
  2. The chat pane still shows Posit Assistant as if it's available.
  3. 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.

Activity

  1. added
    new
    and removed
    new
    on Apr 8, 2026
  2. gtritchie commented on Apr 8, 2026

    @gtritchie
    Member

    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.

  3. gtritchie commented on Apr 8, 2026

    @gtritchie
    Member

    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.

  4. added theissue type on Apr 8, 2026
  5. added this to the Later milestone on Apr 8, 2026
  6. self-assigned this
    on Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions