Repository navigation
feat: label agent presence rows across the admin UI - #653
Merged
Merged
Conversation
Contributor
|
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 Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Contributor
🚩 New public surface
|
Contributor
🛝 WordPress PlaygroundsBuilt from d7395c9
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #653 +/- ##
============================================
- Coverage 95.24% 94.99% -0.25%
- Complexity 195 199 +4
============================================
Files 24 24
Lines 3257 3298 +41
============================================
+ Hits 3102 3133 +31
- Misses 155 165 +10
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
3 tasks
This was referenced Sep 28, 2026
6 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #549
An agent editing over REST/MCP runs no Heartbeat, so nothing showed it was there. It already writes its own presence row with a capped
$expires_inin the post room it's editing -wp_presence_is_agent_user()(deferred towpai_is_agent_user()when the Agent Users plugin is loaded) labels that row, andwp_presence_admin_room_entries()backfills it intoadmin/onlinereads so the admin bar picks it up without a second write.Labelled: the admin bar dropdown (incl. crowd tooltips), the Active Posts widget, and the post list's Editors column. Left out of the
wp_presence_collaboration_startedcount on purpose - that only watcheseditor-prefixed rows.Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): claude-sonnet-5
Used for: Implementation, tests, docs. Reviewed by me.