Repository navigation
Locate a Posit Assistant copy bundled with RStudio - #18690
Merged
Merged
Conversation
Commercial builds will ship Posit Assistant alongside the session binary,
in ${RSTUDIO_INSTALL_BIN}/posit-assistant (or beside bin/ in the macOS app
bundle, mirroring the Copilot Language Server rule). This adds the runtime
half of that lookup so the diff against rstudio-pro stays limited to the
install rule itself; open-source builds ship no bundle, so the new location
never exists and the search falls through as before.
The bundled copy ranks last. A manifest-installed update lands in the user
data directory and an administrator's own install is deliberate, so both
outrank whatever version shipped with RStudio. posit-assistant-path skips
the bundled copy entirely: a pinned path that holds no installation already
ends the search rather than falling back to the XDG system location, and
answering a typo or an unmounted share with the shipped version would be
the same silent downgrade.
The uninstall refusal now resolves the installation instead of re-testing
the system location, so it reports the copy actually in use and can tell
the bundled case apart from an administrator's install. The lock-skip check
at startChatBackend is unchanged: a bundled install over-locks the way the
env-var and posit-assistant-path overrides already do.
No NEWS entry: this is the open-source companion to the rstudio-pro
bundling change and has no effect in an open-source build.
bundledPositAssistantInstallPath() chose the directory beside the session binary on existence alone, so a partial directory there — a half-removed bundle from an earlier layout, say — masked a usable bundle at the resource root and reported Posit Assistant as not installed. Verify that candidate instead, which also makes the header's claim that both locations are checked true.
The "no valid installation" log called bundledPositAssistantInstallPath() a second time, re-verifying the bin candidate. DLOG formats its arguments before the logger applies level filtering, so the extra stat calls were paid on every status, verify, and chat request even with debug logging off. Reuse the path resolved a few lines above instead.
gtritchie
temporarily deployed
to
e2e-playwright
August 30, 2026 00:21 — with
GitHub Actions
Inactive
gtritchie
had a problem deploying
to
e2e-playwright
August 30, 2026 00:21 — with
GitHub Actions
Failure
gtritchie
temporarily deployed
to
e2e-playwright
August 30, 2026 00:26 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 30, 2026 00:26 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 30, 2026 00:28 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 30, 2026 00:28 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 30, 2026 00:37 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 30, 2026 00:37 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 30, 2026 00:37 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 30, 2026 00:37 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 30, 2026 00:37 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 30, 2026 00:37 — with
GitHub Actions
Inactive
RStudio E2E - all platformsAll tests passed!
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
gtritchie
temporarily deployed
to
e2e-playwright
August 30, 2026 01:36 — with
GitHub Actions
Inactive
This was referenced Aug 30, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Open-source companion to rstudio/rstudio-pro#12483, which bundles Posit Assistant with Workbench. The runtime lookup lives here so the diff between the two repos stays limited to the install rule; open-source builds ship no bundle, the directory never exists, and the search falls through as before.
installation::bundledPositAssistantInstallPath()resolvesoptions().resourcePath()/bin/posit-assistantwhen it holds a valid installation, andoptions().resourcePath()/posit-assistantotherwise -- the macOS app-bundle layout, where the directory sits besidebinrather than inside it. That mirrors the Copilot Language Server rule insrc/cpp/session/CMakeLists.txt, which is where the pro-sideinstall(DIRECTORY ...)lands. There is no new session option:posit-assistant-pathremains the single administrator override, for both the system-wide and the bundled location.Search order:
Bundled ranks last. A manifest-installed update lands in the user data directory and an administrator's own install is deliberate, so both outrank the copy that shipped with RStudio.
posit-assistant-pathskips the bundled copy entirely: a pinned path that turns out to be invalid already ends the search rather than reverting to the XDG system location, and answering a typo or an unmounted share with the shipped version would be the same silent downgrade.The uninstall refusal now resolves the installation instead of re-testing the system location, so it reports the copy actually in use and has wording of its own for the bundled case. The lock-skip check at
startChatBackendis unchanged: a bundled install over-locks the way the env-var andposit-assistant-pathoverrides already do.Testing
Unit tests cover the bin-then-root candidate rule, including a partial directory beside the session binary falling through to a usable bundle at the resource root. The search order itself is not unit-testable -- the generated
Optionsclass exposes only CLI parsing, with no setter a test could drive, the same limitation noted in #18688. Both branches were instead verified against the realrsessionbinary with a throwaway probe: with a staged bundle and no user install, the search resolved to<resourcePath>/posit-assistant; with--posit-assistant-path=/nonexistent/pinned, it returned empty and logged the warn-once message, leaving the staged bundle unused.To exercise it in a development build,
options().resourcePath()resolves tobuild/src/cpp, so stage an unpacked package atbuild/src/cpp/posit-assistantand pointXDG_DATA_HOMEat an empty directory so a per-user install does not shadow it.No NEWS entry: this is the open-source companion to a pro change and has no effect in an open-source build.