@@ -1231,10 +1231,7 @@ export namespace Config {
12311231 if ( provider && model ) result . model = `${ provider } /${ model } `
12321232 result [ "$schema" ] = "https://opencode.ai/config.json"
12331233 result = mergeDeep ( result , rest )
1234- await fsNode . writeFile (
1235- path . join ( Global . Path . config , "config.json" ) ,
1236- JSON . stringify ( result , null , 2 ) ,
1237- )
1234+ await fsNode . writeFile ( path . join ( Global . Path . config , "config.json" ) , JSON . stringify ( result , null , 2 ) )
12381235 await fsNode . unlink ( legacy )
12391236 } )
12401237 . catch ( ( ) => { } ) ,
@@ -1244,9 +1241,7 @@ export namespace Config {
12441241 return result
12451242 } )
12461243
1247- let cachedGlobal = yield * Effect . cached (
1248- loadGlobal ( ) . pipe ( Effect . orElseSucceed ( ( ) => ( { } ) as Info ) ) ,
1249- )
1244+ let cachedGlobal = yield * Effect . cached ( loadGlobal ( ) . pipe ( Effect . orElseSucceed ( ( ) => ( { } ) as Info ) ) )
12501245
12511246 const getGlobal = Effect . fn ( "Config.getGlobal" ) ( function * ( ) {
12521247 return yield * cachedGlobal
@@ -1440,9 +1435,7 @@ export namespace Config {
14401435 } )
14411436
14421437 const waitForDependencies = Effect . fn ( "Config.waitForDependencies" ) ( function * ( ) {
1443- yield * InstanceState . useEffect ( state , ( s ) =>
1444- Effect . promise ( ( ) => Promise . all ( s . deps ) . then ( ( ) => undefined ) ) ,
1445- )
1438+ yield * InstanceState . useEffect ( state , ( s ) => Effect . promise ( ( ) => Promise . all ( s . deps ) . then ( ( ) => undefined ) ) )
14461439 } )
14471440
14481441 const update = Effect . fn ( "Config.update" ) ( function * ( config : Info ) {
@@ -1453,9 +1446,7 @@ export namespace Config {
14531446 } )
14541447
14551448 const invalidate = Effect . fn ( "Config.invalidate" ) ( function * ( wait ?: boolean ) {
1456- cachedGlobal = yield * Effect . cached (
1457- loadGlobal ( ) . pipe ( Effect . orElseSucceed ( ( ) => ( { } ) as Info ) ) ,
1458- )
1449+ cachedGlobal = yield * Effect . cached ( loadGlobal ( ) . pipe ( Effect . orElseSucceed ( ( ) => ( { } ) as Info ) ) )
14591450 const task = Instance . disposeAll ( )
14601451 . catch ( ( ) => undefined )
14611452 . finally ( ( ) =>
0 commit comments