Repository navigation
Add posit-assistant-path option for admin-managed installs - #18688
Merged
Merged
Conversation
Administrators deploying Posit Assistant system-wide were limited to pai/bin under the XDG system configuration directory. The new posit-assistant-path session option names the directory holding the installation instead. The option replaces the XDG config location in the search order rather than adding to it, so a set-but-invalid path logs a warning and reports Posit Assistant as not installed instead of silently reverting to /etc/rstudio and hiding the misconfiguration. The backend-start error message and the uninstall refusal now report the same effective path. The lock-skip check at startChatBackend keeps comparing against the XDG location, so an installation reached through the option over-locks the way an RSTUDIO_POSIT_AI_PATH one already does. No unit test covers the option itself: the generated Options class exposes only CLI parsing, with no setter a test could drive. Addresses #18687
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 20:10 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 20:10 — with
GitHub Actions
Inactive
Warn once per session instead of on every locate() call, which runs on each status, verify, and chat request; a misconfigured path would otherwise repeat a warning-level line throughout the session. Gate the uninstall refusal on verifyPositAiInstallation() rather than exists(). A system path that exists but holds no installation — a typo, or a mounted-but-empty share — reported "installed at the system level by an administrator" and returned before clearing cached update state. Say in the option description that the path is absolute and names the directory containing the installation's dist directory. The user and default system locations have pai/bin appended, this one does not, and the description is what rsession --help shows. Addresses #18687
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 20:21 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 20:21 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 20:24 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 20:24 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 21:34 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 21:34 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 21:51 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 21:51 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 21:54 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 21:54 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 22:09 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 22:09 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 22:09 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 22:09 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 22:09 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 29, 2026 22:09 — 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 |
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.
Adds a
posit-assistant-pathsession option naming the directory that holds an administrator-managed Posit Assistant installation, so a system-wide deployment no longer has to live under the XDG system configuration directory.When the option is set it replaces the XDG config location in the search order rather than adding to it, so the search is:
(NOTE: since removed as redundant)RSTUDIO_POSIT_AI_PATH, for development and testingposit-assistant-pathwhen set, otherwise<XDG system config dir>/pai/binA path that is set but does not hold a valid installation logs a warning and leaves Posit Assistant reported as not installed. It does not fall back to
/etc/rstudio/pai/bin, which would hide the misconfiguration.The backend-start error message and the uninstall refusal both report the effective system path, so an administrator sees the location RStudio actually checked. The lock-skip check in
startChatBackendstill compares against the XDG location, which means an installation reached through the option over-locks the same way anRSTUDIO_POSIT_AI_PATHone already does -- deliberate, per the reasoning in the comment there.Verification
Manual: set
posit-assistant-pathinrsession.confand confirm the backend starts from that location../build/src/cpp/rstudio-tests --scope rsessionpasses (519 tests), including theChatInstallationsuite, which now reads session options.Addresses #18687.