fix: keep agent hooks silent without usable python - #2771
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)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe pull request makes Unix hook Python execution silent and non-blocking when it fails. It updates Devin, Grok, and MastraCode integration versions and extends asset consistency and hook fallback tests. ChangesHook and integration updates
Estimated code review effort: 2 (Simple) | ~10 minutes Mergeability Score: ⚪ Minimal · up to The PR keeps Unix hooks silent when discovered Python cannot start and updates integration assets; no actionable merge-blocking risk remains after normal checks. Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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: d4c2238b-e6a0-4261-bca2-feb6e7e7a881
📒 Files selected for processing (13)
src/integration/assets/claude/herdr-agent-state.shsrc/integration/assets/codex/herdr-agent-state.shsrc/integration/assets/copilot/herdr-agent-state.shsrc/integration/assets/devin/herdr-agent-state.ps1src/integration/assets/devin/herdr-agent-state.shsrc/integration/assets/droid/herdr-agent-state.shsrc/integration/assets/grok/herdr-agent-state.ps1src/integration/assets/grok/herdr-agent-state.shsrc/integration/assets/mastracode/herdr-agent-state.ps1src/integration/assets/mastracode/herdr-agent-state.shsrc/integration/mod.rssrc/integration/tests.rstests/cli/hooks.rs
Greptile SummaryThe PR makes seven Unix agent hooks silently tolerate a discoverable but unusable Python interpreter and adds regression coverage for that environment. It also advances the Devin, Grok, and Mastracode integration assets, but leaves four other behaviorally changed assets at their prior versions.
Confidence Score: 4/5The integration versions for Claude, Codex, Copilot, and Droid need to be advanced before merging so existing installations actually receive the hook fix. Four behaviorally changed assets retain their previous version markers, while status and update recommendations rely exclusively on those versions, leaving already-installed hooks on the failing implementation. Files Needing Attention: src/integration/assets/{claude,codex,copilot,droid}/herdr-agent-state.sh and src/integration/mod.rs
|
| Filename | Overview |
|---|---|
| src/integration/assets/claude/herdr-agent-state.sh | Silences Python startup failures, but the unchanged integration version prevents existing installations from receiving the fix. |
| src/integration/assets/codex/herdr-agent-state.sh | Applies the silent-failure behavior without advancing the asset version. |
| src/integration/assets/copilot/herdr-agent-state.sh | Applies the silent-failure behavior without advancing the asset version. |
| src/integration/assets/droid/herdr-agent-state.sh | Applies the silent-failure behavior without advancing the asset version. |
| src/integration/mod.rs | Advances Devin, Grok, and Mastracode versions but omits corresponding bumps for four other changed hook assets. |
| tests/cli/hooks.rs | Adds focused Unix regression coverage proving all seven changed hooks remain silent and return success with an unusable python3. |
| src/integration/tests.rs | Extends bundled version consistency coverage to Grok and updates the expected Mastracode version. |
Reviews (1): Last reviewed commit: "test: gate shell hook regression on unix" | Re-trigger Greptile
Summary
python3cannot startChecks
cargo test --test cli shell_hooks_ignore_unusable_python_on_path -- --nocapturecargo test --test cli cases::hooks -- --nocapturecargo test bundled_integration_asset_versions_match_expected_versions -- --nocapturesh -nfor the seven changed Unix hook assetsjust check(fmt and clippy pass; nextest is blocked by the unrelated existinglive_server_holds_one_pty_master_fd_per_panereplacement-server timeout, also reproducible in isolation)refs #2769