Repository navigation
Cursor 훅: 받지 못하는 subagent와 stop 항목을 걷어냅니다 - #946
Merged
Merged
Conversation
Cursor's CLI runs no subagent hook for a Task subagent, so Hide's subagentStart, subagentStop and stop entries only cost a process per event. The guidance marker moves to @3, which reads an @2 install as outdated and rewrites it; the retired keys are stripped by marker and an operator's or another tool's entry under them is kept. The Grok and Cursor e2e spec follows the new file shape, and the pinned-Herdr stand-in in the hook integration test takes a private folder instead of a pid-named one.
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.
Closes #940
Closes #932
Summary
Cursor의 CLI는 Task 서브에이전트에 subagent 훅을 실행하지 않아서(#911), Hide가
~/.cursor/hooks.json에 쓰던subagentStart,subagentStop,stop항목은 이벤트마다 프로세스만 하나 더 띄웠습니다.이제 Cursor에는
sessionStart와preToolUse(Shell)만 설치하고, 이전에 설치한 세 키는 Hide 표식이 붙은 항목만 걷어냅니다.표식을
hide-guidance@3으로 올려서@2로 설치된 파일은 Outdated로 읽히고 다시 쓰입니다.Grok 파일도 같은 표식을 쓰므로
@3으로 다시 쓰이지만 내용은 그대로입니다.Review
@2설치를 사용자 확인 없이 Outdated로 읽어 다시 쓰는 것이 맞는지(기존 버전 올림과 같은 경로입니다).hide-agent-hooks/src/guidance.rs- 사용자와 다른 도구가stop등에 둔 항목을 건드리지 않아야 해서retired_keys가 표식 있는 항목만 지웁니다.hide-agent-hooks/src/bin/hide-agent-hooks.rs- 일부러 바꾸지 않았습니다. 남아 있는@2항목이 전환 기간에 계속 allow를 답해야 하기 때문입니다.Evidence
@2Cursor 파일(Hide 항목 5개, Orca의stop포함)에 설치하면[sessionStart, preToolUse, stop]만 남고 Orca의stop은 그대로이며 상태가 Installed(@3)입니다. 제거는 Hide 항목 5개만 걷어냅니다.verify-cargo.sh lint,verify-cargo.sh test전체,verify-web.sh통과. Grok/Cursor e2e 5개(고정한 Herdr)를 새 파일 모양에 맞춰 고쳐 통과했습니다.grok_cursor_hooks.rs의 Herdr stand-in이 pid+시계로 폴더 이름을 만들어 병렬 실행에서 이름이 충돌했습니다. docs/TESTING.md Rust 규칙 7대로tempfile비공개 폴더(/tmp, 접두사hah-gc-)를 씁니다.~/.cursor/hooks.json전환은 보지 않았습니다(운영자 앱은 건드리지 않습니다).Breaking change
설치된 Cursor 훅 파일이
@3으로 다시 쓰이고 Hide의subagentStart/subagentStop/stop항목이 사라집니다. 운영자가 할 일은 없습니다.