Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(clients): honor project default models in new threads #6011

Mergedanirudhsama(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/6011/headmerged by shivamhwp(GitHub profile, opens in a new tab) View on GitHub

Showing 12 changed files with 66 additions and 17 deletions (loading 9).

x
0 of 12 viewed, 12 left
10 additions and 5 deletionsapps/mobile/src/features/threads/NewTaskDraftScreen.tsxModified
View file
@@ -704,10 +704,12 @@
if (editingPendingTask) {
flow.finishEditingPendingTask();
} else {
- // Drop the workspace selection with the content: the next task should
- // re-resolve mode/branch/origin from the server's configured defaults
- // instead of resurrecting this task's picks.
- clearComposerDraftContent(draftKey, { clearWorkspaceSelection: true });
+ // Drop draft-local model/workspace selections with the content. The
+ // next task re-resolves project defaults before sticky app defaults.
+ clearComposerDraftContent(draftKey, {
+ clearModelSelection: true,
+ clearWorkspaceSelection: true,
+ });
navigation.getParent()?.goBack();
return;
@@ -771,7 +773,10 @@
flow.finishEditingPendingTask();
} else {
- clearComposerDraftContent(draftKey, { clearWorkspaceSelection: true });
+ clearComposerDraftContent(draftKey, {
+ clearModelSelection: true,
+ clearWorkspaceSelection: true,
+ });
navigation.dispatch(
StackActions.replace("Thread", {