File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/opencode/src/session Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -743,7 +743,7 @@ export namespace SessionPrompt {
743743 } ,
744744 tools : input . tools ,
745745 agent : agent . name ,
746- model : input . model ?? ( await lastModel ( input . sessionID ) ) ?? agent . model ?? ( await Provider . defaultModel ( ) ) ,
746+ model : input . model ?? agent . model ?? ( await lastModel ( input . sessionID ) ) ?? ( await Provider . defaultModel ( ) ) ,
747747 system : input . system ,
748748 variant : input . variant ,
749749 }
@@ -1072,7 +1072,7 @@ export namespace SessionPrompt {
10721072 SessionRevert . cleanup ( session )
10731073 }
10741074 const agent = await Agent . get ( input . agent )
1075- const model = input . model ?? ( await lastModel ( input . sessionID ) ) ?? agent . model ?? ( await Provider . defaultModel ( ) )
1075+ const model = input . model ?? agent . model ?? ( await lastModel ( input . sessionID ) ) ?? ( await Provider . defaultModel ( ) )
10761076 const userMsg : MessageV2 . User = {
10771077 id : Identifier . ascending ( "message" ) ,
10781078 sessionID : input . sessionID ,
You can’t perform that action at this time.
0 commit comments