GeezerVison is showing github.com — ⚡ Bolt: Optimize ProseMirror cursor rendering by dezren39 · Pull Request #753 · developing-today/code
Conversation
dezren39
commented
Oct 24, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
💡 What: Refactored Decoration.widget components to use factory functions (() => HTMLElement) and strictly stable keys derived from data properties (clientID, opacity, connectionState). Removed arbitrary decorationGeneration strings.
🎯 Why: Eager DOM instantiation and arbitrary keys prevented ProseMirror from recycling DOM nodes. The editor was aggressively destroying and recreating large chunks of DOM elements during typing (layout thrashing) and fetching fresh connectionState logic.
📊 Impact: Considerably reduces GC pressure and DOM mutations. Cursors now recycle nodes during document mapping (typing).
🔬 Measurement: Verify tests run. Monitor layout thrashing/GC spikes in Chromium dev tools when multiple users type concurrently.
PR created automatically by Jules for task 7393883821618106765 started by @dezren39
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Removes generation counter and adds stable keys to ProseMirror decorations to enable DOM node recycling, resolving layout thrashing on cursor and selection updates. Includes visual property state dependencies (opacity, connectionState) in widget keys for correct fading rendering.
Co-authored-by: dezren39 <[email protected]>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.
When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.
I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!
For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!
New to Jules? Learn more at jules.google/docs.
For security, I will only act on instructions from the user who triggered this task.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Important
Draft PR not reviewed
Draft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration:
reviews:
auto_review:
drafts: true
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
-
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 24, 2026
|
Closing as superseded — do not merge. Main already contains this cursor-recycling change in commit 09e3cc2 (2026-10-20, ⚡ Bolt: Optimize cursor decoration DOM recycling), and main's widget keys in pkgs/id/web/src/cursors.ts are strictly richer than this PR's (they include color and name; this PR's keys drop both, which would regress cursor colour/rename refresh — see #760). The PR's only novel hunk, key: placeholder-${action.id} in image-upload.ts, is carried onto current main in PR #778. Tracked in #760.
|
google-labs-jules[bot] reacted with eyes emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Closing as superseded — do not merge. Main already contains this cursor-recycling change in commit 09e3cc2 (2026-10-20, ⚡ Bolt: Optimize cursor decoration DOM recycling), and main's widget keys in pkgs/id/web/src/cursors.ts are strictly richer than this PR's (they include color and name; this PR's keys drop both, which would regress cursor colour/rename refresh — see #760). The PR's only novel hunk, key: placeholder-${action.id} in image-upload.ts, is carried onto current main in PR #778. Tracked in #760.
Understood. Acknowledging that this work is now superseded by commit 09e3cc2 and PR #778 on main. Stopping work on this task.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dezren39
added a commit
that referenced
this pull request
Oct 25, 2026
#778)
fix(id-web): salvage novel hunks from stale Jules PRs #753/#755
Both draft PRs duplicate work already on main (cursor recycling in
09e3cc2, ARIA labels in ac08985) and will be closed as superseded
under #760. Their only novel hunks, verified absent on main:
- templates.rs: aria-label="Download" on #download-btn (from #755)
- image-upload.ts: key: placeholder-${action.id} on the placeholder
widget (from #753), matching the stable-key pattern main uses for
cursor widgets
Local: image-upload vitest 39/39 PASS.
Refs #760
Co-authored-by: Muse Sweep <[email protected]>
This was referenced Oct 28, 2026
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|