File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/opencode/src/session Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,16 @@ export namespace Mode {
2222 export type Info = z . infer < typeof Info >
2323 const state = App . state ( "mode" , async ( ) => {
2424 const cfg = await Config . get ( )
25+ const model = cfg . model ? Provider . parseModel ( cfg . model ) : undefined
2526 const result : Record < string , Info > = {
2627 build : {
28+ model,
2729 name : "build" ,
2830 tools : { } ,
2931 } ,
3032 plan : {
3133 name : "plan" ,
34+ model,
3235 tools : {
3336 write : false ,
3437 edit : false ,
@@ -45,10 +48,7 @@ export namespace Mode {
4548 tools : { } ,
4649 }
4750 item . name = key
48- const model = value . model ?? cfg . model
49- if ( model ) {
50- item . model = Provider . parseModel ( model )
51- }
51+ if ( value . model ) item . model = Provider . parseModel ( value . model )
5252 if ( value . prompt ) item . prompt = value . prompt
5353 if ( value . tools )
5454 item . tools = {
You can’t perform that action at this time.
0 commit comments