@@ -1722,24 +1722,30 @@ function printAutomationSummary(a: AutomationReadySummary): string[] {
17221722 }
17231723 return restated ;
17241724 }
1725- // [#29059] Printed BEFORE the `flowCount === 0` return: a boot whose every
1726- // declared flow was refused registers none, and would otherwise print no
1727- // Flows line at all. Boot continued either way; this only says so. The
1725+ // [#29059] Declared flows the engine refused at registration, beside the
1726+ // declared count. Boot continued either way; this only says so. The
17281727 // engine's per-flow reason stays where it is, under Boot diagnostics.
1729- if ( a . refusedCount > 0 ) {
1728+ const printRefused = ( ) : void => {
1729+ if ( a . refusedCount === 0 ) return ;
17301730 console . error (
17311731 chalk . yellow (
17321732 ` ⚠ Flows: ${ a . declaredFlowCount } flow(s) declared, ${ a . refusedCount } refused at registration — ` +
17331733 `refused flows never run; each one's reason is under Boot diagnostics ('failed to register flow')` ,
17341734 ) ,
17351735 ) ;
1736+ } ;
1737+ // A boot whose every declared flow was refused registers none: it prints
1738+ // the refused line alone rather than no Flows line at all.
1739+ if ( a . flowCount === 0 ) {
1740+ printRefused ( ) ;
1741+ return restated ;
17361742 }
1737- if ( a . flowCount === 0 ) return restated ;
17381743
17391744 const parts = [ `${ a . flowCount } flow(s)` , `${ a . boundCount } bound to triggers` ] ;
17401745 if ( a . triggerTypes . length > 0 ) parts . push ( `(${ a . triggerTypes . join ( ', ' ) } )` ) ;
17411746 if ( a . draftCount > 0 ) parts . push ( `· ${ a . draftCount } draft` ) ;
17421747 console . error ( chalk . dim ( ` Flows: ${ parts . join ( ' ' ) } ` ) ) ;
1748+ printRefused ( ) ;
17431749
17441750 // #12028 — printed FIRST among the warnings because it re-reads every line
17451751 // above it: the counts describe the ARMED bodies only, so when a name is
0 commit comments