Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Claude Full access falls back to Auto when settings disable bypass mode #16368

Closedbitbonsai(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/16368/headopened View on GitHub

Showing 10 changed files with 20 additions and 6 deletions (loading 7).

x
0 of 10 viewed, 10 left
10 additions and 2 deletionsapps/mobile/src/features/threads/thread-settings-options.tsModified
View file
@@ -1,4 +1,8 @@
-import type { ProviderOptionDescriptor, RuntimeMode } from "@t3tools/contracts";
+import {
+ type ProviderOptionDescriptor,
+ type RuntimeMode,
+ unsupportedRuntimeModeFallback,
+} from "@t3tools/contracts";
​
/**
* Desktop-oriented effort keywords that don't belong in the phone picker.
@@ -50,7 +54,11 @@
): RuntimeMode {
return choices.some((choice) => choice.mode === runtimeMode)
? runtimeMode
- : (choices[0]?.mode ?? runtimeMode);
+ : unsupportedRuntimeModeFallback(
+ runtimeMode,
+ choices.map((choice) => choice.mode),
+ choices[0]?.mode ?? runtimeMode,
+ );
​
export function selectableChoices(
6 additions and 2 deletionsapps/server/src/orchestration-v2/RuntimePolicy.test.tsModified
View file
@@ -61,11 +61,13 @@
};