Repository navigation
Description
Finding — consolidation: open PRs #930 and #922 directly conflict in the same cursors.ts debug-log block; shepherd them as one set with #952
Reviewing PR #930 (this pr-diff-review run) against the still-open PR #922 shows the pair is on a collision course in pkgs/id/web/src/cursors.ts, inside createCursorDecorations:
- PR ⚡ Bolt coordsAtPos cache + restore getLeftCoord throw contract (supersedes #824, fixes #831) #922 (OPEN, head
b3e24417) — the coordsAtPos cache PR (fixes PR #824 (Bolt coords cache): getLeftCoord returns 0 when coordsAtPos fails, defeating clusterOverlappingGroups' separate-cluster fallback #831). It keeps and modifies the[cursor-debug]clustering log block: its diff (hunk atcursors.ts~line 647 in its numbering) wraps the block'sgetLeftCoord(g.position)call in a try/catch so "Debug logging must never throw on a failed coord lookup (PR #824 (Bolt coords cache): getLeftCoord returns 0 when coordsAtPos fails, defeating clusterOverlappingGroups' separate-cluster fallback #831)", alongside the cache rewiring around it. - PR ⚡ Bolt: clean up hot-path debug logging in cursor decorations #930 (OPEN draft, Jules/Bolt, head
42748555, commits14f02fe5,42748555) — "clean up hot-path debug logging in cursor decorations". It deletes that entire block (the positionGroups/clusters[cursor-debug]logs), plus theapply()UPDATE log and thedecorations()cursor-count log in the same file.
Whichever PR merges second cannot apply cleanly: if #930 lands first, #922's guard hunk has no context left to patch; if #922 lands first, #930's deletion hunk conflicts with the guarded version of the block. They also embody opposite decisions about the same lines (guard-and-keep vs delete), and the deletion makes the #831 guard moot — that decision should be made once, in one PR, not by merge order.
Relationship to the existing set
Issue #952 (OPEN) already shepherds the #922 + #824 coordsAtPos set (close #824 as superseded, port its cleanup, merge #922). This finding extends that same set with #930 — please handle all of it as one shepherding pass rather than letting #930 merge independently. Do not file or work a separate per-PR fix for #930's log removal.
Out-of-scope-looking hunk to check during consolidation: #930 also touches pkgs/id/web/src/cursor-utils.ts getColorForClient (String(clientID) → a typeof ternary). It appears behaviour-neutral, but it is unrelated to the stated log-cleanup purpose — confirm it is intentional before it rides along.
Acceptance criteria
- One decision recorded on this issue / consolidate(id-web): PRs #922 and #824 are one coordsAtPos change in two open PRs — close #824 as superseded, port its cleanup, merge #922 (fixes #831) #952: the
[cursor-debug]block is either deleted (per ⚡ Bolt: clean up hot-path debug logging in cursor decorations #930) or guarded-and-kept (per ⚡ Bolt coordsAtPos cache + restore getLeftCoord throw contract (supersedes #824, fixes #831) #922) — not both patches applied in sequence. - The surviving PR branch applies cleanly on current main with no conflict in
createCursorDecorations, and the other PR is closed as superseded with a pointer here (or rebased to contain only its remaining unique change). - If the block is deleted, ⚡ Bolt coordsAtPos cache + restore getLeftCoord throw contract (supersedes #824, fixes #831) #922's PR #824 (Bolt coords cache): getLeftCoord returns 0 when coordsAtPos fails, defeating clusterOverlappingGroups' separate-cluster fallback #831 throw-contract fix for
getLeftCoord/clusterOverlappingGroupsis verified intact without the guard hunk (the guard only existed for the log block). - The
cursor-utils.tsgetColorForClienthunk from ⚡ Bolt: clean up hot-path debug logging in cursor decorations #930 is either confirmed intentional and kept, or dropped from the consolidated PR. - consolidate(id-web): PRs #922 and #824 are one coordsAtPos change in two open PRs — close #824 as superseded, port its cleanup, merge #922 (fixes #831) #952's set (⚡ Bolt coordsAtPos cache + restore getLeftCoord throw contract (supersedes #824, fixes #831) #922 + ⚡ Bolt: cache coordsAtPos lookups in collab cursor plugin #824) and this pair are merged/closed in one coordinated order, with cross-references on all three PRs.
Activity
dezren39 commentedon Oct 26, 2026
🤖 Agent note · state: filed
dezren39 commentedon Oct 26, 2026
🤖 Agent note · picked up
dezren39 commentedon Oct 26, 2026
🤖 Agent note · parked
dezren39 commentedon Oct 26, 2026
🤖 Agent note · picked up
Merge pull request #1000 from developing-today/queue/1105-956-cursor-…
dezren39 commentedon Oct 26, 2026
🤖 Agent note · done