Repository navigation
fix(hooks): map the subagent veto to the payloads lich measured, and keep the task out of argv - #109
Merged
Merged
Conversation
…keep the task out of argv Antigravity's call id is toolCall.id, now sent as tool_use_id. Kiro's use_subagent is taken only with command InvokeSubagents and its subagents under content, as measured; the unmeasured fallbacks are gone. The body reaches curl on stdin and the token through a config on fd 3, so a task prompt is no longer visible in the process list while the hook waits.
Merged
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.
Follow-up on #108, from the payloads lich measured on 2026-11-22.
toolCall.idis now sent astool_use_id, not "".use_subagentis taken only withcommand: "InvokeSubagents"and itscontent.subagents[].query, as measured; the unmeasured fallbacks (a top-levelsubagents, a missingcommand) are dropped. The ACPsubagentmapping was already right.claudemode already reads itstool_use_id,tool_inputandsession_id; the test payload is now Cursor's measured shape, an id with a newline in it included.hooks/veto-subagent.shfeeds curl the body on stdin (--data-binary @-) and the token header through a config on fd 3, so neither the task prompt nor the token is a process argument while the hook waits.docs/subagent-cards.md: what is measured now, and what is still not (tool_use_idon Codex and Crush, omp'scontextjoin, Windows).Test plan
node --test tests/*.test.mjs: 501 pass, with the measured payloads for Antigravity, Kiro (ACP and classic) and Cursor, and a recording curl, printf and jq asserting the task and the token appear in no command line.