|
|
@@ -91,7 +91,12 @@ async def main(
|
|
|
event_stream=event_stream,
|
|
|
)
|
|
|
runtime = ServerRuntime(event_stream=event_stream, sandbox=sandbox)
|
|
|
- runtime.init_sandbox_plugins(controller.agent.sandbox_plugins)
|
|
|
+
|
|
|
+ if runtime.sandbox.is_initial_session:
|
|
|
+ logger.info('Initializing plugins in the sandbox')
|
|
|
+ runtime.init_sandbox_plugins(controller.agent.sandbox_plugins)
|
|
|
+ else:
|
|
|
+ logger.info('Plugins are already initialized in the sandbox')
|
|
|
runtime.init_runtime_tools(controller.agent.runtime_tools, is_async=False)
|
|
|
|
|
|
await event_stream.add_event(MessageAction(content=task), EventSource.USER)
|