Skip to content

fix: keep the admin bar's presence menu current while it is open - #914

Draft
jaredrethman wants to merge 1 commit into
WordPress:mainfrom
jaredrethman:fix/apply-refused-fragment-on-leave
Draft

jaredrethman wants to merge 1 commit into
WordPress:mainfrom
jaredrethman:fix/apply-refused-fragment-on-leave

Conversation

@jaredrethman

@jaredrethman jaredrethman commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

A swap refused while the admin bar menu was open waited for the next tick, which Heartbeat's cadence hid and a push transport shows as a stale menu. The admin bar keeps its list item on a swap anyway, so the swap now keeps the menu open and waits only for focus inside it, and a surface registered through presence-api.liveSurfaces may bring its own busy() check.

Related: #901
Example consumer for a capable relay: https://github.com/wpsignal/wordsocket/pull/19/changes

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Fable 5.1
Used for: Tests from my findings, reviewed and tested by me, code review.

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🛝 WordPress Playgrounds

Built from 5039e42

Post locks RTC Synced patterns Settings
Single site Launch post locks, single site Launch RTC, single site Launch synced patterns, single site Launch settings, single site
Multisite Launch post locks, multisite Launch RTC, multisite Launch synced patterns, multisite Launch network settings, multisite

@jaredrethman
jaredrethman force-pushed the fix/apply-refused-fragment-on-leave branch from 271281a to 4741663 Compare October 29, 2026 14:13
github-actions Bot added a commit that referenced this pull request Oct 29, 2026
@jaredrethman jaredrethman changed the title feat: apply refused fragment on leave fix: land a live surface's held fragment once the pointer or focus leaves it Oct 29, 2026
@josephfusco josephfusco added this to the n.e.x.t milestone Oct 29, 2026
@jaredrethman
jaredrethman force-pushed the fix/apply-refused-fragment-on-leave branch from 4741663 to b8da751 Compare October 29, 2026 22:43
github-actions Bot added a commit that referenced this pull request Oct 29, 2026
@jaredrethman
jaredrethman force-pushed the fix/apply-refused-fragment-on-leave branch from b8da751 to 5039e42 Compare October 29, 2026 22:57
github-actions Bot added a commit that referenced this pull request Oct 29, 2026
@jaredrethman jaredrethman changed the title fix: land a live surface's held fragment once the pointer or focus leaves it fix: keep the admin bar's presence menu current while it is open Oct 30, 2026

This branch has not been deployed

No deployments
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.

2 participants