Skip to content

[MWPW-192608] Fix race condition in bulk publish v2 authentication#5901

Open
mokimo wants to merge 1 commit intoadobecom:stagefrom
mokimo:mwpw-192608
Open

[MWPW-192608] Fix race condition in bulk publish v2 authentication#5901
mokimo wants to merge 1 commit intoadobecom:stagefrom
mokimo:mwpw-192608

Conversation

@mokimo
Copy link
Copy Markdown
Contributor

@mokimo mokimo commented May 5, 2026

Description

Fix race condition in bulk publish v2 where the sidekick status-fetched event fires before listeners are registered, causing users to see "open sidekick and sign in" even when the sidekick is already open and logged in.

The fix extracts listener registration into an addListeners helper and immediately checks sidekick.appStore?.status after attaching listeners to handle the case where the event already fired.

Resolves: MWPW-192608

Test URLs:

🤖 Generated with Claude Code

@mokimo mokimo requested a review from a team as a code owner May 5, 2026 15:35
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

@mokimo mokimo requested a review from DKos95 May 6, 2026 10:58
Copy link
Copy Markdown
Contributor

@DKos95 DKos95 left a comment

Choose a reason for hiding this comment

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

Looks good to me, haven't been able to replicate the issue again.

@mokimo mokimo requested a review from a team May 6, 2026 14:56
Handle case where sidekick status-fetched event fires before listeners
are registered, causing "open sidekick and sign in" prompt even when
the sidekick is open and logged in.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@SilviuLCF SilviuLCF left a comment

Choose a reason for hiding this comment

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Reminder to set the Ready for Stage label - to queue this to get merged to stage & production.

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.

5 participants