Repository navigation
Show collaborator names as written in cursor labels - #5300
Merged
Merged
Conversation
Security Review ✅
Note: this PR itself hardens the cursor-label renderer by replacing |
Cursor labels in the job editor are drawn with generated CSS. A name with quotes or backslashes now goes through a CSS string serialiser, so it shows as written. The stylesheet is rendered as a text child. Cursor colors now come from the user ID in the awareness store, the same way each client picks its own, so a collaborator has the same color on every screen.
elias-ba
force-pushed
the
cursor-label-names
branch
from
December 4, 2026 05:36
b7101d6 to
8165466
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5300 +/- ##
=======================================
- Coverage 91.9% 91.9% -0.0%
=======================================
Files 482 482
Lines 24481 24481
=======================================
- Hits 22493 22492 -1
- Misses 1988 1989 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
taylordowns2000
approved these changes
Dec 4, 2026
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.
Description
This PR fixes two things with collaborator cursors in the job editor. A name with a quote or a backslash broke the label above that person's cursor. Names are now escaped before they go into the cursor styles, so they show as written.
Each collaborator's cursor color now comes from their user ID, the same way every browser already picks its own color. So a collaborator has the same color on every screen, in the job editor, on the diagram and in the avatars.
Validation steps
Ada "The Countess" \ Lovelaceand open a job in both browsers.AI Usage
Please disclose whether you've used AI anywhere in this PR (it's cool, we just want to know!):
You can read more details in our Responsible AI Policy
Pre-submission checklist
/reviewwith Claude Code):owner,:admin,:editor,:viewer)