Repository navigation
fix(cursor): pin the afterFileEdit capture hook to repowise-augment (#5364) - #5548
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Worth a look: 1 thing to check below.
✅ Health of changed files: 9.2 (unchanged) Average full file score (structure and history) of 3 changed code files, weighted by size before this PR; not the repository score. 👀 Suggested reviewers RaghavChamadiya
Settings and updatesSilence one PR with |
Summary
afterFileEditcapture hook entry dynamically viahook_direct_command("repowise-augment", "--client cursor")instead of the hardcodedrepowise augment --client cursorconstant._is_capture_hookto match bothrepowise-augment(bare or pinned path) and legacyrepowise augmentcommands so reinstall replaces legacy entries and uninstall removes either._refresh_capture_commandso reinstalling repins existingrepowise-augmententries and upgrades legacyrepowise augment --client cursorentries in place while leaving foreign hooks untouched.Related Issues
Closes #5364
Test Plan
pytest tests/unit/cli/test_hook_command_pinning.py tests/unit/cli/test_attribution_capture_cli.py tests/unit/distill/test_cursor_hook_adapter.py)ruff check .)Checklist