Fix: parse Grok Build camelCase hook stdin (#646)

Grok was classified as GitHub Copilot, so the design hook skipped every
edit with no-file-path and never ran Stop. Normalize toolInput/sessionId
and treat Stop additionalContext as the Grok product.

Prepared with AI assistance.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Abdul Wahab
2026-08-24 05:28:21 +05:00
co-authored by Cursor
parent c39b6425fa
commit 35ae07339b
7 changed files with 289 additions and 27 deletions
+3 -1
View File
@@ -71,7 +71,9 @@ const NODE_MAJOR_FLOOR = 22;
// Claude Code / Codex: `systemMessage` on stdout is shown to the user -> notice
// Cursor: preToolUse output is permission-shaped and its `user_message`
// renders only on DENY, so warning would block the edit -> probe only
// Grok Build: PostToolUse/Stop stdout is ignored outright -> probe only
// Grok Build: PostToolUse stdout is ignored; Stop additionalContext
// reaches the model, but the node-version notice has no systemMessage
// channel on this harness -> probe only
// Copilot: output contract unconfirmed; do not guess a shape -> probe only
//
// The clamp avoids `<` and `>` deliberately: Volta's Windows shims run through