Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): remember model options changed in existing threads #9372

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

Showing 4 changed files with 26 additions and 7 deletions (loading 1).

x
0 of 4 viewed, 4 left
3 additions and 7 deletionsapps/mobile/src/features/threads/new-task-flow-provider.tsxModified
View file
@@ -49,8 +49,8 @@
removeComposerDraftAttachment,
replaceComposerDraftAttachments,
scheduleUnusedComposerAttachmentCleanup,
+ setComposerDraftModelSelection,
setComposerDraftText,
- setStickyComposerModelSelection,
updateComposerDraftSettings,
useComposerDraft,
useStickyComposerModelSelection,
@@ -486,8 +486,7 @@
return;
const selection = options ? { ...option.selection, options } : option.selection;
- updateComposerDraftSettings(selectedProjectDraftKey, { modelSelection: selection });
- setStickyComposerModelSelection(selection);
+ setComposerDraftModelSelection(selectedProjectDraftKey, selection);
[modelOptions, selectedProjectDraftKey],
@@ -502,10 +501,7 @@
instanceId: selectedModel.instanceId,
model: selectedModel.model,
- updateComposerDraftSettings(selectedProjectDraftKey, {
- modelSelection: nextSelection,
- });
- setStickyComposerModelSelection(nextSelection);