Repository navigation
perf(id-web): remove hot-path [cursor-debug] logging (ports #930, closes #956) - #1000
Conversation
…rations Ports PR #930's cursors.ts deletions onto current main (post-#922): the guarded [cursor-debug] clustering block in createCursorDecorations, the apply() UPDATE log, and the decorations() cursor-count log. 33 deletions, one file. Decision recorded on #956: delete (per #930) rather than guard-and-keep (per #922). #922 merged first and its guard was a stopgap; the #831 getLeftCoord throw contract lives in the helper itself and is unaffected. #930's unrelated cursor-utils getColorForClient typeof hunk is dropped as behavior-neutral churn. Verified: vitest cursor-utils 78/78, tsc --noEmit clean. Queue task 1105.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Remove cursor debug logs pkgs/id/web/src/cursors.ts |
Removes logs for clustering details, cursor updates, and cursor counts during decoration generation. |
Priority:
Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Refactor
Possibly related issues
- 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 — Tracks the coordinated
coordsAtPosandgetLeftCoordchanges, which are related to removing the conflicting cursor debug block.
Possibly related PRs
- developing-today/code#995 — Removes unused declarations from the same cursor-decoration implementation.
Merge Risk: 
Minimal · up to 8aef6
-
The change removes cursor debug output while preserving cursor processing and coordinate-error handling. No actionable merge-blocking risk remains.
Pre-merge checks: 
5
-
Full details: Linked Issues check
-
Explanation
The PR satisfies the coding requirements in
#956. The whole-PR diff removes the[cursor-debug]clustering block, theapply()update log, and thedecorations()cursor-count log frompkgs/id/web/src/cursors.ts. It does not changegetLeftCoord.clusterOverlappingGroupsretains its separate-cluster fallback when coordinate lookup throws. The unrelatedcursor-utils.tshunk is absent. The issue's merge-order, closure, and cross-reference items are coordination tasks, not coding requirements.
Full details: Docstring Coverage
-
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files.
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Some tools did not complete. Review the errors below.
🔧 Biome (2.5.15)
-
pkgs/id/web/src/cursors.ts
-
Biome could not lint this file: nested root configuration. Check the repository's Biome configuration and plugins.
-
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.
Comment @coderabbitai help to get the list of available commands.
Remainder of the #930/#922 set tracked in #956. Decision: delete the
[cursor-debug]logging (per #930), not guard-and-keep.PR #922 merged first (13:51Z, 21de714) and guarded the clustering debug block for #831 — a stopgap while the block lived. This PR ports PR #930's
cursors.tsdeletions onto current main:[cursor-debug]clustering block increateCursorDecorations(guarded version from ⚡ Bolt coordsAtPos cache + restore getLeftCoord throw contract (supersedes #824, fixes #831) #922)apply()UPDATE logdecorations()cursor-count log33 deletions, one file, no other changes.
#831 safety: the throw contract lives in
getLeftCoorditself (cursors.ts, throws whencoordsAtPosfails soclusterOverlappingGroupsfalls back to separate clusters) — verified intact after this deletion; the debug block was only a consumer of it.Dropped from #930: its unrelated
cursor-utils.tsgetColorForClienttypeof hunk — behavior-neutral churn that also removed an explanatory comment; not carried over.#930 will be closed as superseded by this PR (its branch predates #922 and cannot merge cleanly over the guarded block).
Verified locally: vitest cursor-utils 78/78,
tsc --noEmitclean.Queue task 1105. Closes #956 when merged; supersedes #930.
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit