Skip to content

Commit a6116da

Browse files
Bil0000claude
andcommitted
fix(mobile): saving a model keeps the options picked in the sheet
Saving re-applied remembered options over the pending selection, so a thread saved with Ultracode got the remembered xhigh instead. Remembered options now apply only when no options were picked. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent bf8855e commit a6116da

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/mobile/src/features/threads/ThreadSettingsSheet.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ export function ExistingThreadSettingsRouteScreen({
15461546
prompt={prompt}
15471547
onPromptChange={(text) => setComposerDraftText(draftKey, text)}
15481548
reportedModelSelection={reportedModelSelection}
1549-
onSelectModel={(option) => updateModelSelection(withRememberedModelOptions(option.selection))}
1549+
onSelectModel={(option) => updateModelSelection(option.selection)}
15501550
restoreSelection={withRememberedModelOptions}
15511551
optionDescriptors={resolveProviderOptionDescriptors({
15521552
capabilities: currentModelOption?.capabilities,

‎apps/mobile/src/features/threads/new-task-flow-provider.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,9 @@ export function NewTaskFlowProvider(
553553
if (!option) {
554554
return;
555555
}
556-
const selection = withRememberedModelOptions(
557-
options ? { ...option.selection, options } : option.selection,
558-
);
556+
const selection = options
557+
? { ...option.selection, options }
558+
: withRememberedModelOptions(option.selection);
559559
const provider = selectedEnvironmentServerConfig?.providers.find(
560560
(candidate) => candidate.instanceId === selection.instanceId,
561561
);

0 commit comments

Comments
 (0)