File tree Expand file tree Collapse file tree
packages/opencode/src/server/routes/instance/httpapi Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -491,7 +491,9 @@ export const sessionHandlers = Layer.unwrap(
491491 const instance = yield * InstanceState . context
492492 yield * Effect . promise ( ( ) =>
493493 Instance . restore ( instance , ( ) =>
494- AppRuntime . runPromise ( Session . Service . use ( ( svc ) => svc . removePart ( ctx . params ) ) . pipe ( Effect . provide ( Session . defaultLayer ) ) ) ,
494+ AppRuntime . runPromise (
495+ Session . Service . use ( ( svc ) => svc . removePart ( ctx . params ) ) . pipe ( Effect . provide ( Session . defaultLayer ) ) ,
496+ ) ,
495497 ) ,
496498 )
497499 return true
@@ -514,7 +516,9 @@ export const sessionHandlers = Layer.unwrap(
514516 const instance = yield * InstanceState . context
515517 return yield * Effect . promise ( ( ) =>
516518 Instance . restore ( instance , ( ) =>
517- AppRuntime . runPromise ( Session . Service . use ( ( svc ) => svc . updatePart ( payload ) ) . pipe ( Effect . provide ( Session . defaultLayer ) ) ) ,
519+ AppRuntime . runPromise (
520+ Session . Service . use ( ( svc ) => svc . updatePart ( payload ) ) . pipe ( Effect . provide ( Session . defaultLayer ) ) ,
521+ ) ,
518522 ) ,
519523 )
520524 } )
You can’t perform that action at this time.
0 commit comments