Repository navigation
Remove the Uninstall Posit Assistant command - #18888
Merged
Merged
Conversation
Drop the chat_uninstall_posit_assistant RPC, the uninstallPositAssistant command with its Help > Diagnostics menu entry and en/fr strings, the presenter handler, the ChatTab.Shim binding, the server-operations and RemoteServer declarations, the PaneManager visibility carve-out, and the uninstall-posit-ai e2e spec. Comments that named uninstall as a live path now describe install and update only. The user guide's "Removing Posit Assistant" section now documents how to delete the downloaded pai directory by hand on each platform, notes that chat history lives elsewhere, and that administrator-installed and bundled copies are not the user's to remove. Addresses #18658.
The manual-removal section now also names the ai.prev backup directory a failed install or update can leave beside pai, and distinguishes RSTUDIO_DATA_HOME (used as given) from XDG_DATA_HOME (which gets the rstudio/RStudio folder appended). ChatPresenter no longer takes ApplicationQuit or keeps a Session field; both were only used by the removed uninstall handler. Addresses #18658.
The Assistant preferences pane's managed-installation message still said uninstalls were unavailable; it now matches the chat pane's. Also remove the VoidResponse import the deleted handler left behind in ChatPresenter, and stop the ChatStaticFiles header from describing a caller that no longer exists. Addresses #18658.
The posit-assistant-installation-enabled description, the matching module-context comment, and the RSTUDIO_DISABLE_POSIT_ASSISTANT_INSTALLATION reference all still listed uninstalling among the operations the option controls. Regenerated SessionOptions.gen.hpp. The manual-removal guide no longer gives a Windows form for XDG_DATA_HOME, which RStudio splits on ':' and so never resolves to a drive path, and describes the assistant's own data as living under ~/.posit rather than naming a single subdirectory. The e2e fixture comment about symlinked pai now says nothing in the product deletes it today. Addresses #18658.
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 branch was successfully 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.
First of the PRs in #18658 (side-by-side versioned Posit Assistant installs). Re-implements #18662 (reverted in #18679) against current
main: #18691, #18815 and #18832 had each changed the uninstall handler since.Removed:
chat_uninstall_posit_assistantRPC (SessionChat.cpp) and its registrationuninstallPositAssistantcommand, its Help > Diagnostics menu entry, theCommands.javastub, and the en/fr command strings (Commands.cmd.xml.MD5regenerated)ChatPresenter.onUninstallPositAssistant()/performUninstall(), theChatTab.Shimbinding, theChatServerOperationsdeclaration, theRemoteServerbinding, and the chat en/fr dialog stringsPaneManagercarve-out that kept the command visible with Posit Assistant disablede2e/rstudio/tests/panes/posit-assistant-chat/uninstall-posit-ai.test.tsThe "Removing Posit Assistant" section of the user guide is replaced rather than deleted: it now says how to delete the downloaded
paidirectory by hand on each platform (with RStudio closed), that chat history and provider settings live under~/.posit/assistantand survive, and that administrator-installed and bundled copies are not the user's to remove. The managed-installation message no longer mentions uninstalls.Comments in
SessionChat.cpp,SessionAssistant.hpp,ChatInstallLock,ChatStaticFilesand the e2e fixtures that described uninstall as a live path now describe install and update only. The install and update paths keep the locking,ai.prevbackup and reap helpers the handler shared with them; later PRs in #18658 remove those.Not done here:
relaunchAfterRestart()/snapshotRStudioProcesses()ine2e/rstudio/fixtures/desktop.fixture.tsare now unused (the deleted spec was their only caller). Kept as-is since they encode the #18522 CDP-port lesson and the Reinstall PR may need them.Verification:
ant draft,cmake --build . --target rsession,rstudio-tests --scope rsession(629 passed),npm run typecheckine2e/rstudio.Addresses #18658.