Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): hide Ultrathink from the Claude effort picker #28044

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/28044/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 7 changed files with 12 additions and 47 deletions (loading 4).

x
0 of 7 viewed, 7 left
3 additions and 5 deletionsapps/mobile/src/features/threads/ThreadSettingsSheet.tsxModified
View file
@@ -560,12 +560,10 @@
props.onPromptChange(change.prompt);
- if (!("modelOptions" in change)) return;
- const next =
- change && "modelOptions" in change
- ? (change.modelOptions ?? [])
- : applyProviderOptionSelection(displayedDescriptors, { id, value });
+ const next = change
+ ? (change.modelOptions ?? [])
+ : applyProviderOptionSelection(displayedDescriptors, { id, value });
if (!next) {
return;
2 additions and 33 deletionsapps/mobile/src/features/threads/thread-settings-options.test.tsModified
View file
@@ -24,40 +24,17 @@
​
describe("selectableChoices", () => {
// regression: #21406 bring model controls in line with web
- it("includes prompt-injected and workflow choices in declared order", () => {
+ it("leaves out prompt-injected choices and keeps workflow choices in declared order", () => {
expect(selectableChoices(effortDescriptor).map((choice) => choice.id)).toEqual([
"low",
"medium",
"high",