Skip to content

Real-time Collaboration: Fix error when collaboratorInfo is null#75401

Merged
ingeniumed merged 1 commit intowpvip/rtc-pluginfrom
fix/collaborator-info-delay-bug
Feb 11, 2026
Merged

Real-time Collaboration: Fix error when collaboratorInfo is null#75401
ingeniumed merged 1 commit intowpvip/rtc-pluginfrom
fix/collaborator-info-delay-bug

Conversation

@maxschmeling
Copy link
Contributor

@maxschmeling maxschmeling commented Feb 10, 2026

What?

When retrieving collaborator info takes too long, the collaboratorInfo property can be null and cause exceptions. This change fixes that issue.

Why?

User reported errors in real-world environments.

Testing Instructions

  1. Add a delay in setCurrentCollaboratorInfo (in packages/core-data/src/awareness/base-awareness.ts) with await new Promise( ( resolve ) => setTimeout( resolve, 5000 ) );
  2. Open a post in two windows
  3. Put your cursor in a paragraph
  4. Prior to this fix, you'll see an error and content disappear

@github-actions github-actions bot added [Package] Core data /packages/core-data [Package] Editor /packages/editor [Package] Block editor /packages/block-editor [Package] Sync labels Feb 10, 2026
@maxschmeling maxschmeling changed the base branch from trunk to wpvip/rtc-plugin February 10, 2026 23:50
@maxschmeling maxschmeling added [Feature] Real-time Collaboration Phase 3 of the Gutenberg roadmap around real-time collaboration [Type] Bug An existing feature does not function as intended labels Feb 10, 2026
@ingeniumed
Copy link
Contributor

The static analysis failure is due to a change in trunk not being used, while the other two test failures are due to a change in recordHandlers that's not in trunk. It's unrelated to this PR

@ingeniumed ingeniumed marked this pull request as ready for review February 11, 2026 00:16
@ingeniumed ingeniumed requested a review from nerrad as a code owner February 11, 2026 00:16
@ingeniumed ingeniumed merged commit 7229efb into wpvip/rtc-plugin Feb 11, 2026
44 of 50 checks passed
@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: maxschmeling <maxschmeling@git.wordpress.org>
Co-authored-by: ingeniumed <ingeniumed@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@ingeniumed ingeniumed deleted the fix/collaborator-info-delay-bug branch February 11, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Real-time Collaboration Phase 3 of the Gutenberg roadmap around real-time collaboration [Package] Block editor /packages/block-editor [Package] Core data /packages/core-data [Package] Editor /packages/editor [Package] Sync [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants