Skip to content

Notify user when connecting as follower fails#19454

Closed
tareh7z wants to merge 6 commits intonvaccess:masterfrom
tareh7z:fix-follower-connection-error
Closed

Notify user when connecting as follower fails#19454
tareh7z wants to merge 6 commits intonvaccess:masterfrom
tareh7z:fix-follower-connection-error

Conversation

@tareh7z
Copy link
Copy Markdown
Contributor

@tareh7z tareh7z commented Jan 16, 2026

Link to issue number:

Fixes #19103

Summary of the issue:

Users are not notified when connecting as the controlled computer (follower) fails. Only the leader connection errors are shown to users.

Description of user facing changes:

Users will now see an error message when connection as the controlled computer fails, just like when connecting as the controlling computer.

Description of developer facing changes:

None.

Description of development approach:

Made follower connection error handling consistent with leader connection by adding the missing event handler and user notification.

  • Added onConnectAsFollowerFailed method in client.py to handle follower connection failures;
  • Registered transportConnectionFailed event handler for follower transport;
  • Added cleanup for event handlers in disconnectAsFollower method.

Testing strategy:

Tested manually.

Known issues with pull request:

None known.

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@tareh7z tareh7z requested a review from a team as a code owner January 16, 2026 12:39
@tareh7z tareh7z requested a review from SaschaCowley January 16, 2026 12:39
@tareh7z
Copy link
Copy Markdown
Contributor Author

tareh7z commented Jan 16, 2026

Hi!

I think this PR, similar to PR #19442, could also be considered for the 2026.1 release. @seanbudd and @SaschaCowley, would you be able to review it?

Thanks.

@josephsl
Copy link
Copy Markdown
Contributor

Hi,

If targeting 2026.1, then the PR sould be based on origin/beta rather than origin/master as the master branch is targeting 2026.2 at the moment.

Thanks.

@@ -1,36 +0,0 @@
# A part of NonVisual Desktop Access (NVDA)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make sure this file is restored rather than being deleted

@tareh7z tareh7z requested a review from seanbudd January 19, 2026 09:30
@tareh7z tareh7z closed this Jan 19, 2026
@tareh7z tareh7z deleted the fix-follower-connection-error branch January 19, 2026 09:31
@tareh7z
Copy link
Copy Markdown
Contributor Author

tareh7z commented Jan 19, 2026

Hi @josephsl, @seanbudd!

I have opened a completely new PR, #9467.

I will make sure these beginner mistakes do not happen again. Sorry for the unnecessary noise.

Thanks.

seanbudd pushed a commit that referenced this pull request Jan 21, 2026
Replaces #19454
Replaces #19467
Fixes #19103
Summary of the issue:

Users are not notified when connecting as the controlled computer (follower) fails. Only the leader connection errors are shown to users.
Description of user facing changes:

Users will now see an error message when connection as the controlled computer fails, just like when connecting as the controlling computer.
Description of developer facing changes:

None.
Description of development approach:

Made follower connection error handling consistent with leader connection by adding the missing event handler and user notification.

    Added onConnectAsFollowerFailed method in client.py to handle follower connection failures;
    Registered transportConnectionFailed event handler for follower transport;
    Added cleanup for event handlers in disconnectAsFollower method.
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.

No warning when connecting as the controlled computer fails

3 participants