mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-06 15:22:12 +03:00
fix(types): simplify Codex service tier narrowing (#9136)
Validated in local merge-train (devbox-vm-06-dev002) @ combined-tip (FAST gates: typecheck/complexity/cognitive/changelog/vitest — only pre-existing audit.test.ts flake). Evidence: /home/diegosouzapw/dev/proxys/OmniRoute/.claude/worktrees/merge-train-20260805-222248-suite.log
This commit is contained in:
@@ -96,7 +96,7 @@ export function getCodexEffectiveServiceTier(
|
||||
// Dashboard global modes are explicit overrides; use "none" to preserve the
|
||||
// per-connection requestDefaults.serviceTier value.
|
||||
if (globalServiceMode === true) return "priority";
|
||||
if (globalServiceMode && globalServiceMode !== false && globalServiceMode !== "none") {
|
||||
if (globalServiceMode && globalServiceMode !== "none") {
|
||||
return globalServiceMode;
|
||||
}
|
||||
return getCodexConnectionServiceTier(providerSpecificData);
|
||||
|
||||
Reference in New Issue
Block a user