fix(detect): recognize grok agent launcher - #3274
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughProcess detection now delegates process-specific alias resolution to the platform layer. macOS recognizes valid versioned Grok agent processes as ChangesGrok process detection
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: 🔵 Low · up to The change enables Grok detection for the generic 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 93490484-6529-4816-9c00-b0f1b502ece2
📒 Files selected for processing (1)
src/detect/mod.rs
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Greptile SummaryThe PR adds a narrowly scoped macOS process alias so an official Grok launcher reported as
Confidence Score: 5/5The PR appears safe to merge, with no concrete changed-code failure identified. The alias is restricted to macOS and requires both the exact normalized
|
| Filename | Overview |
|---|---|
| src/detect/mod.rs | Integrates platform-specific process aliases into agent-name normalization and verifies canonical Grok detection remains intact. |
| src/platform/macos.rs | Maps the validated macOS Grok launcher process shape to the canonical grok identity. |
| src/platform/mod.rs | Defines the cross-platform alias boundary, strict macOS matcher, and focused positive, negative, and platform-gating tests. |
Reviews (1): Last reviewed commit: "fix(detect): scope grok alias to macos" | Re-trigger Greptile
|
@akbash-bot both cursor and grok uses "agent" as a cli alias. i'm not happy to reserve a general name as "agent" to a specific cli. wdyt? |
|
I agree that That said, this is still a Grok-specific exception. If we do not want per-agent executable-identity exceptions, I would close this PR rather than broaden |
Issue
Starting the official Grok CLI with
agentleaves the pane unknown. It does not appear in the Agents panel or agent commands.Problem
macOS reports
agentas the launch name while retaining a truncated versioned Grok process name. Herdr trusted the launch name and discarded the Grok evidence.How did we fix it?
Herdr now recognizes
agentonly when the independent process name matches the strict versioned macOS Grok shape. Ordinaryagentprocesses and Cursor aliases remain unknown. Normalgroklaunches are unchanged.Verification
The reporter's exact process snapshot failed identification before the change and resolves to Grok afterward. Canonical Grok and focused false-positive cases pass. Formatting, Clippy, Windows lint, architecture, asset, marketplace, and maintenance checks pass. Of 3,536 Rust tests, 3,535 pass; the existing live-handoff test cannot discover its replacement process with this harness's external
CARGO_TARGET_DIR.refs #3273