diff --git a/v3/@claude-flow/cli/src/commands/route.ts b/v3/@claude-flow/cli/src/commands/route.ts index 2eac154fab..743e6be2b9 100644 --- a/v3/@claude-flow/cli/src/commands/route.ts +++ b/v3/@claude-flow/cli/src/commands/route.ts @@ -191,9 +191,10 @@ const routeTaskCommand: Command = { } else { output.writeln(); - const confidenceColor = result.confidence >= 0.7 + const confidence = result.confidence ?? 0; + const confidenceColor = confidence >= 0.7 ? output.success - : result.confidence >= 0.4 + : confidence >= 0.4 ? output.warning : output.error;