Skip to content

find dead code and delete it#233

Draft
amiagent wants to merge 3 commits intomainfrom
ami/12ef7af5
Draft

find dead code and delete it#233
amiagent wants to merge 3 commits intomainfrom
ami/12ef7af5

Conversation

@amiagent
Copy link
Collaborator

@amiagent amiagent commented Mar 10, 2026

Changes from Slack bot


Summary by cubic

Removed two unused text utilities from packages/react-grab: create-text-node-bounds and get-text-node-at-position. Also fixed timer cleanup null checks there and made packages/provider-copilot store the real Copilot session ID for resume.

Written for commit e0d75b3. Summary will update on new commits.

…e-at-position

Both files were defined but never imported or called anywhere in the codebase.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Contributor

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-grab-website Ready Ready Preview, Comment Mar 10, 2026 1:35pm

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 10, 2026

Open in StackBlitz

@react-grab/cli

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/cli@233

grab

npm i https://pkg.pr.new/aidenybai/react-grab/grab@233

@react-grab/amp

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/amp@233

@react-grab/claude-code

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/claude-code@233

@react-grab/codex

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/codex@233

@react-grab/copilot

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/copilot@233

@react-grab/cursor

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/cursor@233

@react-grab/droid

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/droid@233

@react-grab/gemini

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/gemini@233

@react-grab/opencode

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/opencode@233

react-grab

npm i https://pkg.pr.new/aidenybai/react-grab@233

@react-grab/relay

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/relay@233

@react-grab/utils

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/utils@233

commit: da3497c

amiagent and others added 2 commits March 10, 2026 13:20
Three timer ID checks used truthy checks (if (timerId)) instead of
the consistent explicit null check (if (timerId !== null)) used
throughout the rest of the file. While window.setTimeout() never
returns 0 in practice, this inconsistency violated the established
pattern and was a latent correctness risk.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The copilot handler was mapping browserSessionId → browserSessionId in
copilotSessionMap on close, then passing this back as the --resume arg
on the next run. This would send the browser's internal session ID to
the copilot CLI instead of the actual copilot session ID.

The fix mirrors the cursor/claude-code pattern: only set the session map
if a capturedCopilotSessionId was actually obtained from the CLI output.
Since the copilot CLI outputs plain text (not JSON with a session_id),
this variable remains undefined and the map is never incorrectly populated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant