Title: Close Jules PR #765 as superseded: cursor work already on main, conflicts with #778, and its claimed search-counting change is not in its diff · Issue #780 · developing-today/code · GitHub
Open Graph Title: Close Jules PR #765 as superseded: cursor work already on main, conflicts with #778, and its claimed search-counting change is not in its diff · Issue #780 · developing-today/code
X Title: Close Jules PR #765 as superseded: cursor work already on main, conflicts with #778, and its claimed search-counting change is not in its diff · Issue #780 · developing-today/code
Description: Finding (PR diff review, 2026-10-24) Open draft PR #765 — ⚡ Bolt: ProseMirror widget recycling and search counting optimization (Jules, head b9cf7303c, opened 2026-10-24T15:06:36Z) — duplicates work already on main, conflicts with the sa...
Open Graph Description: Finding (PR diff review, 2026-10-24) Open draft PR #765 — ⚡ Bolt: ProseMirror widget recycling and search counting optimization (Jules, head b9cf7303c, opened 2026-10-24T15:06:36Z) — duplicates wor...
X Description: Finding (PR diff review, 2026-10-24) Open draft PR #765 — ⚡ Bolt: ProseMirror widget recycling and search counting optimization (Jules, head b9cf7303c, opened 2026-10-24T15:06:36Z) — duplicates wor...
Opengraph URL: https://github.com/developing-today/code/issues/780
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Close Jules PR #765 as superseded: cursor work already on main, conflicts with #778, and its claimed search-counting change is not in its diff","articleBody":"## Finding (PR diff review, 2026-10-24)\n\nOpen draft PR #765 — `⚡ Bolt: ProseMirror widget recycling and search counting optimization` (Jules, head `b9cf7303c`, opened 2026-10-24T15:06:36Z) — duplicates work already on main, conflicts with the sanctioned salvage PR #778, and its body claims a change its diff does not contain. It should be closed as superseded, not merged.\n\n## Evidence\n\n1. **The claimed search-counting change is not in the diff.** The body says it \"replaced an O(N) document traversal for counting search matches with an O(1) read from a precomputed set\", but the PR touches only two files (`pkgs/id/web/src/cursors.ts` +49/-60, `pkgs/id/web/src/image-upload.ts` +1/-0) and the full 183-line diff contains no search code at all. (The search-counting theme is also the subject of many earlier closed Bolt PRs — #142, #232, #235, #252, #447, #521 — and of open triage issue #310.)\n2. **The cursor work is already on main.** Current main (`3184df61`) already has lazy `() => HTMLElement` widget factories and stable state-derived keys in `pkgs/id/web/src/cursors.ts` — e.g. line 655 `key: cursor-own-${ownCursor.clientID}-${ownCursor.color}` is byte-identical to #765's proposed own-cursor key (landed via `09e3cc2b`, the same landing that made Jules PR #753 superseded in #760).\n3. **Where #765 differs from main it is weaker.** Main's standalone cursor key (cursors.ts:747) is `cursor-${clientID}-${opacity}-${color}-${connectionState}-${encodeURIComponent(cursor.name)}`; #765's version drops the cursor **name**, the exact weaker-keys flaw #760 cited for not merging #753 (recycled DOM can go stale when only the name changes — cf. #331).\n4. **Direct overlap with PR #778.** #765 adds `key: image-upload-${action.id}` to the placeholder `Decoration.widget` call in `pkgs/id/web/src/image-upload.ts`; #778 (the #760 salvage PR, open) adds `key: placeholder-${action.id}` to the same call. Both cannot merge cleanly, and #778 is the tracked salvage vehicle.\n\n## Why it matters\n\nMerging #765 would regress main's cursor keys (dropping `name`), conflict with #778, and deliver none of the search improvement its body advertises. Leaving it open invites exactly the duplicate-Jules pile-up #310 and #760 are trying to clear.\n\n## Acceptance criteria\n\n- [ ] PR #765 is closed as superseded, with a comment linking this issue, main's cursor landing (`09e3cc2b` / cursors.ts on main), and PR #778 for the image-upload key.\n- [ ] No part of #765 is merged unless a specific hunk is shown to be absent from main and stronger than main's version — in which case it is salvaged via #778 or a successor, not by merging #765.\n- [ ] The discrepancy between the PR body (search-counting claim) and its diff is noted on the PR so future Bolt runs are not credited with it.\n\nRelated: #310, #760, #778, #331. Filed by the pr-diff-review job; this job files only — a sweep does the closing.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-24T18:43:39Z","url":"https://github.com/developing-today/code/issues/780"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:66f0dc7f-fa7f-5028-f89b-50968fe6fd8b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC2A:128099:61A12E:828236:6B062849 |
| html-safe-nonce | c3e30cee6eb69083780a5ef18c0a2bd9ff1c5f18c4522900ebc0c084c2710b48 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzJBOjEyODA5OTo2MUExMkU6ODI4MjM2OjZCMDYyODQ5IiwidmlzaXRvcl9pZCI6IjQ0MTcyMTMxMzA4NzU0ODAxMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aaa4e691598a12fde630233d77f3613f062d8520c1a408af1f33d4e082193f86 |
| hovercard-subject-tag | issue:6016338166 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/780/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f3f978de7ca3c24f61d8cd13a4f03d3144138f77768867b30b455af9848d9c9/developing-today/code/issues/780 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f3f978de7ca3c24f61d8cd13a4f03d3144138f77768867b30b455af9848d9c9/developing-today/code/issues/780 |
| og:image:alt | Finding (PR diff review, 2026-10-24) Open draft PR #765 — ⚡ Bolt: ProseMirror widget recycling and search counting optimization (Jules, head b9cf7303c, opened 2026-10-24T15:06:36Z) — duplicates wor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32e57d5cc2ce6ce92ec6dceb65858344750c27c2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width