Repository navigation
Read admin Posit Assistant installs only from posit-assistant-path - #18985
Merged
Merged
Conversation
The session no longer searches <systemConfigDir>/pai. An administrator-provided installation exists only when posit-assistant-path names one, and that directory may now hold version slots under versions/ (selected by its own selected.json, never rewritten) as well as a single unversioned installation. When it contributes a candidate, the best one always runs, ahead of the user's slot and the bundled copy regardless of version or protocol. When it holds nothing, the bundled copy is skipped and only the user's slot remains. InstallSearchPaths' systemStorageDir and pinnedPath are replaced by adminDir, kLegacyInstallDirName is removed, and the "installation not found" messages no longer name <systemConfigDir>/pai/bin. Addresses #18973
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 |
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.
Fixes #18973.
An administrator-provided Posit Assistant now exists only when
posit-assistant-pathnames one. The session no longer reads<systemConfigDir>/pai.Resolution
posit-assistant-pathunset: the user's slot and the bundled copy compete under the Posit Assistant discovery should pick the highest version, and prefer bundled/admin installs when user installs are disabled #18774 rules. Ties go to the user.Set to
P:Pcontributes up to two candidates.P/selected.jsonnames. If that selection is missing or stale, the newest verifying slot for this protocol is used, andP/selected.jsonis never written.Pitself as a single unversioned installation, the 2026.09 layout.P/binis not read.The two compete under the Posit Assistant discovery should pick the highest version, and prefer bundled/admin installs when user installs are disabled #18774 rules, and ties go to the slot. The winner always runs, ahead of the user's slot and the bundled copy whatever their versions. It also runs when it declares another protocol; the session reports that as a protocol mismatch.
Pholds no valid installation: the bundled copy is not used. The user's slot is used when user installation is enabled. A warning namingPis logged once per session.userInstallWouldBeSelected():Phas a valid installation;Pis invalid and user installation is enabled;"Installation not found" messages: they name
Pwhen it is set. Otherwise they say installation is managed and nothing has been configured, or tell the user to install from the Posit Assistant pane.Code changes
InstallSearchPaths::systemStorageDirandpinnedPathare replaced by oneadminDirfield.kLegacyInstallDirNameis removed.posit-assistant-pathoption description is rewritten, andSessionOptions.gen.hppis regenerated.InstallSearchPaths,locatePositAssistantInstallation(),userInstallWouldBeSelected()andisPositAssistantInstallationEnabledByAdmin()are rewritten.Tests
The
ChatInstallationTests.cppresolution tests are rewritten againstP. Tests of a default-location copy competing by version are deleted.NeverReadsTheSystemConfigDirectoryredirectsRSTUDIO_CONFIG_DIRandRSTUDIO_DATA_HOMEto a temp directory and stages a slot and abin/in the old default location. It then checks that the session's own sources find neither.ChatStaticFilesTests.cppserves throughPas an unversioned directory.All 268 tests pass.
NEWS
posit-assistant-pathis now read.posit-assistant-path=/etc/rstudio/pai/binfor existing Server deployments, and notes that Desktop now runs only the user's own install.