mirror of
http://10.0.2.1:3031/sauer/claude-code.git
synced 2026-06-30 17:46:58 +10:00
16 lines
547 B
TypeScript
16 lines
547 B
TypeScript
|
|
import { getFeatureValue_CACHED_MAY_BE_STALE } from '../services/analytics/growthbook.js'
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Whether inference-config commands (/model, /fast, /effort) should execute
|
||
|
|
* immediately (during a running query) rather than waiting for the current
|
||
|
|
* turn to finish.
|
||
|
|
*
|
||
|
|
* Always enabled for ants; gated by experiment for external users.
|
||
|
|
*/
|
||
|
|
export function shouldInferenceConfigCommandBeImmediate(): boolean {
|
||
|
|
return (
|
||
|
|
process.env.USER_TYPE === 'ant' ||
|
||
|
|
getFeatureValue_CACHED_MAY_BE_STALE('tengu_immediate_model_command', false)
|
||
|
|
)
|
||
|
|
}
|