Skip to content

Remove the Uninstall Posit Assistant command - #18888

Merged
gtritchie merged 4 commits into
mainfrom
feature/pai-remove-uninstall
Sep 22, 2026
Merged

gtritchie merged 4 commits into
mainfrom
feature/pai-remove-uninstall

Conversation

@gtritchie

Copy link
Copy Markdown
Member

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_assistant RPC (SessionChat.cpp) and its registration
  • the uninstallPositAssistant command, its Help > Diagnostics menu entry, the Commands.java stub, and the en/fr command strings (Commands.cmd.xml.MD5 regenerated)
  • ChatPresenter.onUninstallPositAssistant() / performUninstall(), the ChatTab.Shim binding, the ChatServerOperations declaration, the RemoteServer binding, and the chat en/fr dialog strings
  • the PaneManager carve-out that kept the command visible with Posit Assistant disabled
  • e2e/rstudio/tests/panes/posit-assistant-chat/uninstall-posit-ai.test.ts

The "Removing Posit Assistant" section of the user guide is replaced rather than deleted: it now says how to delete the downloaded pai directory by hand on each platform (with RStudio closed), that chat history and provider settings live under ~/.posit/assistant and 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, ChatStaticFiles and 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.prev backup and reap helpers the handler shared with them; later PRs in #18658 remove those.

Not done here: relaunchAfterRestart() / snapshotRStudioProcesses() in e2e/rstudio/fixtures/desktop.fixture.ts are 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 typecheck in e2e/rstudio.

Addresses #18658.

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.
@gtritchie gtritchie added this to the 2026.10 (Blue Mistflower) milestone Sep 21, 2026
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.
@gtritchie
gtritchie deployed to e2e-playwright September 21, 2026 21:03 — with GitHub Actions Active
@gtritchie
gtritchie deployed to e2e-playwright September 21, 2026 21:03 — with GitHub Actions Active
@gtritchie
gtritchie deployed to e2e-playwright September 21, 2026 21:06 — with GitHub Actions Active
@gtritchie
gtritchie deployed to e2e-playwright September 21, 2026 21:06 — with GitHub Actions Active
@gtritchie
gtritchie deployed to e2e-playwright September 21, 2026 21:07 — with GitHub Actions Active
@gtritchie
gtritchie deployed to e2e-playwright September 21, 2026 21:07 — with GitHub Actions Active
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.
@github-actions

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

#################### 100% pass rate

Passed Failed Skipped Flaky
3083 0 187 1
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 10 0
✅ desktop-linux 773 0 38 1
✅ desktop-macos 780 0 33 0
✅ desktop-windows 776 0 42 0
✅ server-linux 724 0 44 0
✅ setup 28 0 20 0
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit b98687985b494375698c5071d8dfbb2bd07d1ff4 - Run #1111

@gtritchie
gtritchie merged commit 561c4a3 into main Sep 22, 2026
34 checks passed
@gtritchie
gtritchie deleted the feature/pai-remove-uninstall branch September 22, 2026 01:26

This branch was successfully deployed

1 active deployment
e2e-playwright — b9868798 Deployed Sep 21, 2026 by gtritchie via windows / e2e-desktop-windows (2) #1111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant