Skip to content

Bug: Device stuck waiting for source selection after reconnect #305

@alex-larkin

Description

@alex-larkin

Prerequisites

Note: Reporting against production release v3.2.6, not a dev build. Developer prerequisite items below are N/A.

  • Using yarn
  • Using an up-to-date master branch
  • Using latest version of devtools.
  • For issue in production release, add devtools output of DEBUG_PROD=true yarn build && yarn start

Expected Behavior

After a device disconnects and the user reloads the page or clicks "Re-initiate Connection," the session should resume normally using the same source as before (or, if really necessary, host should be prompted to select what to share with device.)

Current Behavior

The device browser is permanently stuck displaying "Waiting for user to select source to share from screen sharing device…" and the host never prompts the user to select a source. The session does not recover.

Steps to Reproduce

  1. Successfully establish a screen sharing session between host and device.
  2. Close the browser tab on the device.
  3. Wait for the host to register the disconnection.
  4. On the device, navigate back to the Deskreen URL.
  5. Shared screen does not load, user not prompted to select what to share.
  6. Clicking "Re-initiate Connection" doesn't help either.

Possible Solution (Not obligatory)

Context

This makes reconnecting a device after any accidental tab close, brief disconnect, or new session broken.

Your Environment

  • Node version : N/A (production release)
  • Deskreen version or branch : 3.2.6
  • Operating System and version : Windows 11 (latest), Chrome (145.0.7632.159) — both host and device
  • Link to your project : N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions