Skip to content

perf(id-web): remove hot-path [cursor-debug] logging (ports #930, closes #956) - #1000

Merged
dezren39 merged 1 commit into
mainfrom
queue/1105-956-cursor-debug-delete
Oct 26, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/1105-956-cursor-debug-delete

Conversation

@dezren39

@dezren39 dezren39 commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

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.ts deletions onto current main:

33 deletions, one file, no other changes.

#831 safety: the throw contract lives in getLeftCoord itself (cursors.ts, throws when coordsAtPos fails so clusterOverlappingGroups falls 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.ts getColorForClient typeof 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 --noEmit clean.

Queue task 1105. Closes #956 when merged; supersedes #930.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Chores
    • Removed extraneous diagnostic messages related to cursor processing. Cursor behavior remains unchanged.

…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.
@dezren39
dezren39 requested a review from a team as a code owner October 26, 2026 18:38
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T18:39:43.858433Z 8aef69b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cf859697-7700-429a-b171-f26749d21fac
Commits

Reviewing files that changed from the base of the PR and between 3b9d159 and 8aef69b.

Files selected for processing: 1
  • pkgs/id/web/src/cursors.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The change removes debug logging from cursor clustering, cursor update processing, and decoration generation. Cursor processing and public declarations are otherwise unchanged.

Changes: Cursor log cleanup

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: Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Refactor

Possibly related issues

Possibly related PRs

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: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the main change: removing hot-path cursor-debug logging in id-web. It is specific and related to the changeset.
Linked Issues check Passed The PR satisfies the coding requirements in #956. The whole-PR diff removes the [cursor-debug] clustering block, the apply() update log, and the decorations() cursor-count log from `pkgs/id/web/…
Out of Scope Changes check Passed The whole-PR diff contains only 33 deletions in pkgs/id/web/src/cursors.ts. Each deletion removes debug logging named by #956. No unrelated source change, test change, or behavior change is present.
Docstring Coverage Passed 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…
Full details: Linked Issues check

Explanation

The PR satisfies the coding requirements in #956. The whole-PR diff removes the [cursor-debug] clustering block, the apply() update log, and the decorations() cursor-count log from pkgs/id/web/src/cursors.ts. It does not change getLeftCoord. clusterOverlappingGroups retains its separate-cluster fallback when coordinate lookup throws. The unrelated cursor-utils.ts hunk 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dezren39
dezren39 merged commit 14acb15 into main Oct 26, 2026
28 checks passed
@dezren39
dezren39 deleted the queue/1105-956-cursor-debug-delete branch October 26, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

consolidate(id-web): PR #930 deletes the cursor debug-log block that PR #922 guards — one set with #952, merge in one order

1 participant