fix(cli): show the centroid method in the hooks route table

With CLAUDE_FLOW_ROUTER_CENTROID=1 the table printed 'Method: keyword' while
Backend said 'nearest centroid'.

Co-Authored-By: RuFlo <ruv@ruv.net>
This commit is contained in:
randRuFlo committed 2026-11-11 08:29:01 -05:00
1 parent 3193d99ecb
commit bc3252133f
1 file changed
+1 -1
+1 -1
View File
@@ -728,7 +728,7 @@ const routeCommand: Command = {
if (result.routing) {
output.writeln();
output.writeln(output.bold('Routing Method'));
const methodDisplay = result.routing.method.startsWith('semantic')
const methodDisplay = result.routing.method.startsWith('semantic') || result.routing.method === 'centroid'
? output.success(`${result.routing.method} (${result.routing.backend || 'semantic'})`)
: 'keyword';
output.printList([