()
| 1444 | * Evaluated at permission-check time so it's reactive to config changes. |
| 1445 | */ |
| 1446 | export function shouldPlanUseAutoMode(): boolean { |
| 1447 | if (feature('TRANSCRIPT_CLASSIFIER')) { |
| 1448 | return ( |
| 1449 | hasAutoModeOptIn() && |
| 1450 | isAutoModeGateEnabled() && |
| 1451 | getUseAutoModeDuringPlan() |
| 1452 | ) |
| 1453 | } |
| 1454 | return false |
| 1455 | } |
| 1456 | |
| 1457 | /** |
| 1458 | * Centralized plan-mode entry. Stashes the current mode as prePlanMode so |
no test coverage detected