Skip to content

Selecting a code assistant that needs an addon update can leave it uninstalled with no error shown #18350

Closed

Description

@ronblum

System details

RStudio Edition : Desktop
RStudio Version : 2026.08.0-daily+122
OS Version      : macOS 26.5.2
R Version       : 4.6.1

Steps to reproduce the problem

Using a fresh RStudio profile that has never installed the Posit Assistant addon:

  1. Launch RStudio.
  2. Sign in to Posit AI (Assistant: Sign In from the command palette).
  3. Go to Tools -> Global Options -> Assistant tab and set "Use code assistant" to "Posit AI Next Edit Suggestions".
  4. Click OK before an "Update Posit Assistant" dialog appears.
  5. Open a new R script and type code that would normally trigger a ghost-text suggestion.
    • No suggestion appears. The editor shows "Posit AI: No completions available."
  6. Check the assistant data directory (the pai subfolder under the RStudio data directory).
    • Only manifest-check.json exists, no bin subdirectory -- the addon was never installed.

Describe the problem in detail

Selecting a code assistant that needs an addon install triggers an async check, and an "Update Posit Assistant" dialog appears once it resolves. Closing Options before that happens skips the install silently -- no error anywhere. The provider stays selected, but completions never work, with no clue why beyond "No completions available."

Found via the RStudio Playwright E2E suite: running many RStudio instances back-to-back against fresh profiles hit this consistently.

Describe the behavior you expected

Either Options would ideally stay open until the check resolves, or closing it early would still let the install proceed, or at least report that it didn't.

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions