From c6b15815efdbe0b51a0f6ccf94b7f297df0129db Mon Sep 17 00:00:00 2001 From: Sandy Tao Date: Wed, 28 Jan 2026 22:23:52 -0800 Subject: [PATCH] feat: enable numerical routing by default with threshold 50 --- packages/core/src/config/config.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index 0f027c989c..7cc59013ad 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -1843,8 +1843,10 @@ export class Config { async getNumericalRoutingEnabled(): Promise { await this.ensureExperimentsLoaded(); - return !!this.experiments?.flags[ExperimentFlags.ENABLE_NUMERICAL_ROUTING] - ?.boolValue; + return ( + this.experiments?.flags[ExperimentFlags.ENABLE_NUMERICAL_ROUTING] + ?.boolValue ?? true + ); } async getClassifierThreshold(): Promise { @@ -1854,7 +1856,7 @@ export class Config { if (flag?.intValue !== undefined) { return parseInt(flag.intValue, 10); } - return flag?.floatValue; + return flag?.floatValue ?? 50; } async getBannerTextNoCapacityIssues(): Promise {