File tree Expand file tree Collapse file tree
packages/opencode/src/server/routes/instance Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -882,9 +882,9 @@ export const SessionRoutes = lazy(() =>
882882 const msg = await runRequest (
883883 "SessionRoutes.prompt" ,
884884 c ,
885- SessionPrompt . Service . use ( ( svc ) =>
886- svc . prompt ( { ...body , sessionID } as unknown as SessionPrompt . PromptInput ) ,
887- ) ,
885+ SessionPrompt . Service . use ( ( svc ) =>
886+ svc . prompt ( { ...body , sessionID } as unknown as SessionPrompt . PromptInput ) ,
887+ ) ,
888888 )
889889 void stream . write ( JSON . stringify ( msg ) )
890890 } )
@@ -917,7 +917,9 @@ export const SessionRoutes = lazy(() =>
917917 void runRequest (
918918 "SessionRoutes.prompt_async" ,
919919 c ,
920- SessionPrompt . Service . use ( ( svc ) => svc . prompt ( { ...body , sessionID } as unknown as SessionPrompt . PromptInput ) ) ,
920+ SessionPrompt . Service . use ( ( svc ) =>
921+ svc . prompt ( { ...body , sessionID } as unknown as SessionPrompt . PromptInput ) ,
922+ ) ,
921923 ) . catch ( ( err ) => {
922924 log . error ( "prompt_async failed" , { sessionID, error : err } )
923925 void Bus . publish ( Session . Event . Error , {
You can’t perform that action at this time.
0 commit comments