Restore USER_MESSAGE_ONLY exit code constant

The user-message handler references HOOK_EXIT_CODES.USER_MESSAGE_ONLY
but the constant was missing from hook-constants.ts, causing it to
return exitCode: undefined. The handler is still registered for Cursor's
afterFileEdit flow.
This commit is contained in:
Rod Boev
2026-02-05 10:27:36 -05:00
committed by Alex Newman
parent fececc4e51
commit 46a75c4d98
+2
View File
@@ -21,6 +21,8 @@ export const HOOK_EXIT_CODES = {
FAILURE: 1,
/** Blocking error - for SessionStart, shows stderr to user only */
BLOCKING_ERROR: 2,
/** Show stderr to user only, don't inject into context. Used by user-message handler (Cursor). */
USER_MESSAGE_ONLY: 3,
} as const;
export function getTimeout(baseTimeout: number): number {