fix(windows): detect Cursor Agent Node wrapper#8266
Open
bbingz wants to merge 1 commit into
Open
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdded Cursor-specific recognition for versioned 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
node.exe .../cursor-agent/versions/<version>/index.jsentrypoint.cursor-agentprocess identity for both the interactive parent andworker-serverchild.Agent.exebinaries unclassified.Closes #8258.
Screenshots
No visual change.
Testing
pnpm lintpnpm typecheckpnpm test— the full suite exceeded the 3-minute local timeout without reporting a failure; the two directly affected suites pass 47/47.pnpm build— not run; this change has no build-system or packaging impact.Additional targeted command:
AI Review Report
Reviewed the shared command-line recognizer and the Windows descendant-resolution path against the process tree reproduced with Cursor Agent
2026.07.09-a3815c0. The main risks checked were false positives from genericindex.jsfiles, the installedagentalias colliding with unrelated executables, and ambiguity when both Cursor's main process and worker are present. The matcher is anchored to the official versioned Cursor install layout, both Cursor processes resolve to one canonical identity, and negative tests cover a generic Cursor-named directory plus Grok'sagent.exe.Cross-platform compatibility was checked explicitly. The shared path comparison already normalizes Windows and POSIX separators, and the new match does not change shortcuts, labels, shell launching, Electron APIs, local/SSH routing, or provider-specific review behavior. Non-Windows runtimes remain unaffected unless they expose the same unambiguous Cursor install layout.
Security Audit
The change only classifies an already-observed process command line. It does not execute command-line content, access files, add IPC, change authentication, read secrets, or introduce dependencies. The bounded, suffix-anchored path expression avoids broad substring classification and has no unbounded backtracking structure. No security follow-up is required.
Notes
Manually reproduced on Windows before the fix: Cursor's main and worker Node processes were live while
orca worktree ps --jsonreturnedagents: []. The directagentalias is intentionally not classified because another installed product may ownAgent.exe; Cursor is recognized from its child Node entrypoint instead.