Skip to content

RTC: [Transport] Explore better handling of the collaborators list on refresh #75648

Description

@maxschmeling

When a collaborator refreshes a post they are editing, they will temporarily show up twice in the collaborators list until their "ghost session" times out. We should explore better ways of handling this and involve design (cc @dabowman).

Activity

  1. chriszarate commented on Feb 23, 2026

    @chriszarate
    Contributor

    We can:

    1. Decrease the timeout interval.
    2. Try to send a final "removal" update via an onbeforeunload listener.
  2. changed the title [-][Real-time collaboration] Explore better handling of the collaborators list on refresh[/-] [+]RTC: [Transport] Explore better handling of the collaborators list on refresh[/+] on Feb 23, 2026
  3. alecgeatches commented on Feb 25, 2026

    @alecgeatches
    Contributor

    This has been improved by #75883 by explicitly removing users using the pagehide event. Here's how it looks now:

    refresh-cursors-fixed.mov

    There's still a 5-second delay on the second user to remove a ghost cursor, but it's much faster than the awareness timeout alone. In normal network circumstances the disconnect signal should reach the server before the refreshing user loads the page, so they are unlikely to see their own ghost cursor at all.

  4. alecgeatches commented on Feb 25, 2026

    @alecgeatches
    Contributor

    Going to close this for now, as it's much improved. We can reopen if this does not address user confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions