fix(windows): detect pi bundled cli - #3207
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 (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe process detector now recognizes the bundled Pi CLI path with case-insensitive matching. Tests cover bundled Pi, Mastracode, and invalid lookalike paths. ChangesCLI detection
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized change adds recognition for Pi’s bundled Windows CLI while preserving existing behavior; no actionable merge-blocking risk remains after normal checks and review. 🚥 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 |
Issue
After updating to Pi 0.84.3 on Windows, Pi opens normally but its pane does not appear in Agents. Its lifecycle reports are accepted, but the pane remains unknown.
Problem
Pi 0.84.3 starts through
dist/bundle/cli.js. Herdr recognized the olderdist/cli.jsentry only, so it treated the final Node process as unrecognized.How did we fix it?
Herdr now recognizes the exact bundled CLI path inside the official Pi package. The existing CLI path still works. Other package scripts, generic bundle paths, wrong extensions, and paths with trailing components remain unrecognized.
Verification
The captured bundled path returned no agent before the change and returns Pi afterward. All 26 focused process-identification tests pass. All PR checks pass on Linux, macOS, and Windows. Local
just checkpassed formatting, Clippy, and 3517 of 3518 tests; the unrelated live-handoff PID-discovery test still fails even though its log shows the replacement server started.refs #3186
refs #3205