You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hooks/cursor/rtk-rewrite.sh writes nothing to stdout on its jq-missing, rtk-missing and too-old exits #5323
hooks/cursor/README.md says the hook returns {} when no rewrite applies because "Cursor requires JSON output for all code paths", and every later exit in the script prints {}. The first three do not: when jq is missing, when rtk is missing, or when rtk --version is below the floor, the script writes a warning to stderr and exits 0 with empty stdout.
Measured with {"tool_input":{"command":"git status"}} on stdin and the real release binaries on PATH:
Current rtk installs the native rtk hook cursor, so this script reaches users only when they copy it by hand. The fix is echo '{}' before the exit 0 of each of the three branches, with a test that runs the script with jq or rtk removed from PATH and with an old rtk --version, and asserts stdout is {}.
Activity