diff --git a/v3/@claude-flow/cli/src/commands/hooks.ts b/v3/@claude-flow/cli/src/commands/hooks.ts index 87f5528af8..ab28f19188 100644 --- a/v3/@claude-flow/cli/src/commands/hooks.ts +++ b/v3/@claude-flow/cli/src/commands/hooks.ts @@ -3402,7 +3402,8 @@ const routeTaskCommand: Command = { // Silently handle v2-specific flags that don't exist in v3 // --auto-swarm, --detect-complexity are ignored but don't fail if (routeCommand.action) { - return routeCommand.action(ctx); + const result = await routeCommand.action(ctx); + return result || { success: true }; } return { success: true }; }