Repository navigation
Cursor를 서브에이전트 수를 보고하지 않는 agent로 선언 - #921
Merged
Merged
Conversation
Cursor CLI runs subagentStart and subagentStop only when its agent server asks for them, and a Task subagent run never produced one, so the pane's count stayed at zero. Its chat store keeps each subagent as a store of its own but nothing in it says a subagent is still running, so Cursor's adapter now declares no count, its hook reports none, and the Basic popover lists subagents as not available instead of showing a zero.
This was referenced Oct 10, 2026
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 #911
Summary
Cursor pane의 서브에이전트 수가 Task 서브에이전트를 돌려도 늘 0이었습니다.
Cursor CLI 2026.10.01-e373342는
subagentStart/subagentStophook을 agent 서버가 요청할 때만 실행하고, Task 서브에이전트에서는 한 번도 요청하지 않았습니다.Cursor의 로컬 세션 기록에서 수를 읽을 수 있는지 확인했고, 믿을 만하지 않아 Cursor를 서브에이전트 수를 보고하지 않는 agent로 선언합니다(
subagent_counts: None).그래서 hook은 Cursor에 대해 count를 보고하지 않고, Basic 팝오버는 서브에이전트를
– Not available로 보여 주며, pane의 children 표시는 0 대신 "알 수 없음"(Pi와 같은 uninstrumented, reasonunknown)입니다.Review
~/.cursor/chats를 읽어 보니 서브에이전트는 부모와 같은 폴더에 자기 store를 가지며subagentInfo(parentAgentId,toolCallId,typeName)가 있고, 부모 graph에도 Task 호출과 그 tool result가 있습니다. 끝난 서브에이전트는 셀 수 있지만 store 어디에도 "아직 도는 중"을 말하는 표시가 없고, 부모의 Task 호출이 서브에이전트 실행 중에 이미 기록되는지는 실행 중 상태를 볼 수 없어 확인하지 못했습니다. working을 추정해 보이는 것은 0과 같은 종류의 거짓이라(design principle 10) 선언을 골랐고, 읽는 방식은agent-hooks.md에 근거와 함께 남깁니다.unknown)로 바뀝니다. Pi와 같은 경로이고 "서브에이전트를 알 수 없다"는 사실에 맞습니다.hide-agent-adapter/src/declarations.rs- 선언 한 줄이 설정 기능 목록, 사이드바 projection, hook 보고를 모두 정합니다.hide-agent-hooks/src/bin/hide-agent-hooks.rs의count_basic은 선언이 없으면 아무것도 보고하지 않습니다.subagentStart,subagentStop,stop)은 그대로 둡니다. 이미 설치된hooks.json의 항목을 걷어내려면 별도 retirement 단계가 필요해서 후속으로 남깁니다(subagentStart는 계속allow로 답합니다).Evidence
cursor_answers_allow_to_each_subagent_start_and_tells_herdr_no_count가 Herdr에[(1,0),(2,0),(1,1),(0,1)]을 보고해 실패했고, 수정 뒤 통과합니다(hide-agent-hooks/tests/it/grok_cursor_hooks.rs).support.json에서 Cursor의subagents제거), 어댑터 계약 테스트,verify-cargo.sh lint와test,verify-web.sh, 격리 fixture에서web/e2e/grok-cursor-hooks.spec.ts5개 통과(Cursor pane의 count가 null).hide-hostgit 테스트가 한 번 실패했다가 같은 커밋에서 다섯 번 통과했습니다. quarantine 이슈 #920에 남겼고 이 변경과 무관합니다.