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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user