Skip to content

Suppress 'R Session Disconnected' dialog on Desktop - #17139

Closed
kevinushey wants to merge 1 commit into
mainfrom
bugfix/desktop-disconnect-dialog-guard
Closed

kevinushey wants to merge 1 commit into
mainfrom
bugfix/desktop-disconnect-dialog-guard

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Summary

The onClientDisconnected handler in Application.java was showing the "R Session Disconnected" popup unconditionally, including on Desktop where it should never appear. Desktop has its own session recovery mechanism triggered by process exit.

Fix

Add a Desktop.isDesktop() guard, mirroring the existing pattern in onQuit() which already suppresses the quit popup on Desktop.

Testing

  • On Desktop, trigger a scenario where INVALID_CLIENT_ID is returned during session restart
  • Verify the "R Session Disconnected" dialog no longer appears
  • On Server, verify the dialog still appears for genuine disconnections

The onClientDisconnected handler was showing the disconnection
popup unconditionally, including on Desktop where it should never
appear. Desktop has its own session recovery mechanism triggered
by process exit.

Add a Desktop.isDesktop() guard, mirroring the existing pattern
in onQuit() which already suppresses the quit popup on Desktop.
@posit-snyk-bot

posit-snyk-bot commented Mar 1, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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.

3 participants