File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ export class Agent {
355355
356356 const sandbox = typeof config . sandbox === 'object' && 'exec' in config . sandbox
357357 ? ( config . sandbox as Sandbox )
358- : deps . sandboxFactory . create ( sandboxConfig || { kind : 'local' , workDir : process . cwd ( ) } ) ;
358+ : await deps . sandboxFactory . createAsync ( sandboxConfig || { kind : 'local' , workDir : process . cwd ( ) } ) ;
359359
360360 const model = config . model
361361 ? config . model
@@ -747,7 +747,7 @@ export class Agent {
747747
748748 let sandbox : Sandbox ;
749749 try {
750- sandbox = deps . sandboxFactory . create ( metadata . sandboxConfig || { kind : 'local' , workDir : process . cwd ( ) } ) ;
750+ sandbox = await deps . sandboxFactory . createAsync ( metadata . sandboxConfig || { kind : 'local' , workDir : process . cwd ( ) } ) ;
751751 } catch ( error : any ) {
752752 throw new ResumeError ( 'SANDBOX_INIT_FAILED' , error ?. message || 'Failed to create sandbox' ) ;
753753 }
You can’t perform that action at this time.
0 commit comments