Skip to content

Commit 7f3ff79

Browse files
committed
fix(web): Resume continues on the model picked in the composer
After a thread stops on a usage limit, picking another model or provider account and pressing Resume still ran on the old one. Send passes the composer's model selection with its turn and Resume did not, so the server fell back to the thread's saved selection. Pass it from Resume too.
1 parent 50647de commit 7f3ff79

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/web/src/components/ChatView.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8729,11 +8729,13 @@ export default function ChatView(props: ChatViewProps) {
87298729
interactionMode,
87308730
});
87318731
if (settingsResult._tag === "Failure") return settingsResult;
8732+
const modelSelection = composerRef.current?.getSendContext().selectedModelSelection;
87328733
const turnResult = await startThreadTurn({
87338734
environmentId,
87348735
input: {
87358736
threadId,
87368737
manualContinuationOfRunId: resumableRunId,
8738+
...(modelSelection ? { modelSelection } : {}),
87378739
message: {
87388740
messageId: newMessageId(),
87398741
role: "user",

0 commit comments

Comments
 (0)