René's URL Explorer Experiment


Title: PR #327's ProseMirror widget keys omit cursor colour and name, so recycled cursor DOM goes stale · Issue #331 · developing-today/code · GitHub

Open Graph Title: PR #327's ProseMirror widget keys omit cursor colour and name, so recycled cursor DOM goes stale · Issue #331 · developing-today/code

X Title: PR #327's ProseMirror widget keys omit cursor colour and name, so recycled cursor DOM goes stale · Issue #331 · developing-today/code

Description: Finding Open draft PR #327 (⚡ Bolt: Optimize ProseMirror decoration recycling, head 59decd10f6) removes the decorationGeneration counter in pkgs/id/web/src/cursors.ts and gives the collaborative-cursor widgets stable, state-derived keys ...

Open Graph Description: Finding Open draft PR #327 (⚡ Bolt: Optimize ProseMirror decoration recycling, head 59decd10f6) removes the decorationGeneration counter in pkgs/id/web/src/cursors.ts and gives the collaborative-cu...

X Description: Finding Open draft PR #327 (⚡ Bolt: Optimize ProseMirror decoration recycling, head 59decd10f6) removes the decorationGeneration counter in pkgs/id/web/src/cursors.ts and gives the collaborative-cu...

Opengraph URL: https://github.com/developing-today/code/issues/331

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PR #327's ProseMirror widget keys omit cursor colour and name, so recycled cursor DOM goes stale","articleBody":"## Finding\n\nOpen draft PR #327 (⚡ Bolt: Optimize ProseMirror decoration recycling, head `59decd10f6`) removes the `decorationGeneration` counter in `pkgs/id/web/src/cursors.ts` and gives the collaborative-cursor widgets stable, state-derived keys — but two of the new keys omit properties that are rendered into the widget DOM, so ProseMirror will keep showing the old DOM after those properties change.\n\nProseMirror compares a widget decoration's `key` instead of its DOM node to decide whether it needs to be redrawn (ProseMirror reference: widget spec `key` — \"When comparing decorations of this type (in order to decide whether it needs to be redrawn), ProseMirror will by default compare the widget DOM node by identity. If you pass a key, that key will be compared instead\"). A property that changes without changing the key therefore never reaches the screen.\n\n## Evidence (PR #327 head, cross-checked via `gh api contents?ref=59decd10f6`)\n\n- Standalone remote cursor, `cursors.ts:738` on the PR head:\n  `key: cursor-${cursor.clientID}-o${cursor.opacity}-c${connectionState}`\n  — includes opacity and connection state, but **not `cursor.color` and not `cursor.name`**. The widget it keys is built by `createStandaloneCursor` / `createCursorLine` (same file): caret `borderColor = cursor.color`, label `backgroundColor = cursor.color`, label text colour derived from `cursor.color`, and label `textContent = cursor.name`.\n- Cluster/merged cursor lines, `cursors.ts:715` on the PR head:\n  `key: cursor-cluster-${group.position}-${clusterKey}-c${group.mostRecentColor}`\n  — the merged bar appended to the leftmost line renders one segment per cursor with that cursor's `color` (background), `name` (text), `opacity` and connection-state-driven strobe state (`createMergedBar`), and non-leftmost group lines render their first cursor's opacity/strobe state (`createCursorLine`); none of those per-cursor values are in the key (`clusterKey` encodes only `clientID@head` per cursor, and `mostRecentColor` is only the owning group's first cursor's colour).\n- Contrast inside the same diff: the own-cursor key (`cursors.ts:651`) correctly includes its only rendered variable property, `ownCursor.color`. Contrast across the sibling drafts tracked by #310: PR #217's standalone key includes `-color-${cursor.color}`, its cluster key includes connection state plus an opacity hash, and its selection key includes colour — #327 drops colour from the standalone and selection keys.\n- Colour/name are not session constants in this code: the plugin's `apply()` \"update\" case replaces `color` on every cursor update and takes `name` from the update when present (`name = cursorUpdate.name ?? existing?.name`), and `createCursorDecorations` falls back to `getColorForClient(clientID)` only when an update carries no colour — so a peer's colour source/value and display name can both change mid-session. While a peer is active their opacity stays at 1.0 (see `getOpacityForAge` in `cursor-utils.ts`: 1.0 for the first 30s after each update, and every update refreshes `lastUpdate`), so no other key component forces a redraw either.\n\n## Why it matters\n\nIf #327 (or a variant with the same keys) merges as-is, a collaborator who changes colour or display name — or whose first updates arrive colourless and later carry an explicit colour — keeps rendering with the stale caret colour and stale name label for everyone else, indefinitely while they stay active. That is a correctness regression introduced specifically by removing the generation counter, in the one file the PR touches. The PR's own added learning note (`.jules/bolt.md`) states the rule it breaks: properties that dynamically dictate the widget's appearance (it names opacity, connectionState and colour) must be included in the key.\n\n## Acceptance criteria\n\n- [ ] Whichever ProseMirror-recycling PR survives the #310 triage, every widget key in `cursors.ts` covers all properties rendered into that widget's DOM: standalone cursor keys include colour and name; cluster keys include the per-cursor segment values (colour, name, opacity) and connection state, not just the group's most-recent colour.\n- [ ] The selection decoration's colour handling is checked the same way (PR #327's `selection-…-o${opacity}` key omits `cursor.color`, which is half of its rendered `background-color: ${cursor.color}${selectionOpacity}` style).\n- [ ] A test or equivalent check pins the key construction: changing only a cursor's colour (or only its name) produces a different standalone key. There is currently no `cursors.test.ts` (only `cursor-utils.test.ts`), so the key derivation may need extracting to a pure helper to be testable.\n\nFound by the pr-diff-review job reviewing PR #327 (open) in developing-today/code. Cross-repo check: `createCursorDecorations` / `collab-cursor` exist only in developing-today/code (GitHub code search), so this is a single-repo issue. Related triage: #310.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-19T02:25:46Z","url":"https://github.com/developing-today/code/issues/331"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:673c46c9-a868-6da3-ccc5-c08f945879a5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD2EA:249987:47342F:5FCCB9:6B062135
html-safe-noncefc05af40e60fd62a524eaf8049512a64fe526fb34999ced0b380510a4b726ed1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkVBOjI0OTk4Nzo0NzM0MkY6NUZDQ0I5OjZCMDYyMTM1IiwidmlzaXRvcl9pZCI6IjgyOTc4OTU4NzAxNDI0ODg4ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2fea7cd025accda77c9cbda5b3fb6316f64c70bc8f5a06443306cb4fe37e5d03
hovercard-subject-tagissue:5916730266
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/331/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1a1697c0c97e4a7552dae7ae146488907af207c7ecd31ec675e9878ead0908b6/developing-today/code/issues/331
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1a1697c0c97e4a7552dae7ae146488907af207c7ecd31ec675e9878ead0908b6/developing-today/code/issues/331
og:image:altFinding Open draft PR #327 (⚡ Bolt: Optimize ProseMirror decoration recycling, head 59decd10f6) removes the decorationGeneration counter in pkgs/id/web/src/cursors.ts and gives the collaborative-cu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None9a7c5824b75ea2ec5e3de73a483229c7bb9f32a774ffd401f010dd9bacf1483d
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb25c3080e84402f75431d8dc7a96b2635219cec7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/331#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F331
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F331
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/331
Reloadhttps://github.com/developing-today/code/issues/331
Reloadhttps://github.com/developing-today/code/issues/331
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests144 (144)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/331
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/331
PR #327's ProseMirror widget keys omit cursor colour and name, so recycled cursor DOM goes stalehttps://github.com/developing-today/code/issues/331#top
https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
meta/enrichedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22meta%2Fenriched%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/pr-diff-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fpr-diff-review%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 19, 2026https://github.com/developing-today/code/issues/331#issue-5916730266
#327https://github.com/developing-today/code/pull/327
#327https://github.com/developing-today/code/pull/327
Triage 11 overlapping Jules Bolt and Palette draft PRs #310https://github.com/developing-today/code/issues/310
⚡ Bolt: optimize ProseMirror cursor DOM recycling #217https://github.com/developing-today/code/pull/217
⚡ Bolt: Optimize ProseMirror decoration recycling #327https://github.com/developing-today/code/pull/327
#327https://github.com/developing-today/code/pull/327
Triage 11 overlapping Jules Bolt and Palette draft PRs #310https://github.com/developing-today/code/issues/310
⚡ Bolt: Optimize ProseMirror decoration recycling #327https://github.com/developing-today/code/pull/327
#327https://github.com/developing-today/code/pull/327
#310https://github.com/developing-today/code/issues/310
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 19, 2026https://github.com/developing-today/code/issues/331#event-33605002267
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 24, 2026https://github.com/developing-today/code/issues/331#issuecomment-6388376079
#327https://github.com/developing-today/code/pull/327
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/331#issuecomment-6428985576
#327https://github.com/developing-today/code/pull/327
#310https://github.com/developing-today/code/issues/310
#310https://github.com/developing-today/code/issues/310
#310https://github.com/developing-today/code/issues/310
#327https://github.com/developing-today/code/pull/327
#217https://github.com/developing-today/code/pull/217
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
source/pr-diff-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fpr-diff-review%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
meta/enrichedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22meta%2Fenriched%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
on Oct 26, 2026https://github.com/developing-today/code/issues/331#event-34311803554
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/331#issuecomment-6551683752
PR #327's ProseMirror widget keys omit cursor colour and name, so recycled cursor DOM goes stale #331https://github.com/developing-today/code/issues/331
⚡ Bolt: Optimize ProseMirror decoration recycling #327https://github.com/developing-today/code/pull/327
⚡ Bolt: Optimize ProseMirror decoration recycling #327https://github.com/developing-today/code/pull/327
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/331#issuecomment-6551691932
⚡ Bolt: Optimize ProseMirror decoration recycling #327https://github.com/developing-today/code/pull/327
⚡ Bolt: Optimize cursor decoration DOM recycling #379https://github.com/developing-today/code/pull/379
⚡ Bolt: ProseMirror widget recycling and search counting optimization #765https://github.com/developing-today/code/pull/765
PR #327's ProseMirror widget keys omit cursor colour and name, so recycled cursor DOM goes stale #331https://github.com/developing-today/code/issues/331
#331https://github.com/developing-today/code/issues/331
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 1, 2026https://github.com/developing-today/code/issues/331#event-34807651503
dezren39https://github.com/dezren39
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 1, 2026https://github.com/developing-today/code/issues/331#event-34807663656
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/331
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/331
dezren39https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
meta/enrichedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22meta%2Fenriched%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/pr-diff-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fpr-diff-review%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.