Skip to content

Commit

Permalink
use sandbox var
Browse files Browse the repository at this point in the history
  • Loading branch information
enyst committed Feb 26, 2025
1 parent a93e7ca commit 0e9f94e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openhands/core/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ async def run_controller(
if agent is None:
agent = create_agent(config)

# when the runtime is created, it will be connected and clone the selected repository
if runtime is None:
runtime = create_runtime(
config,
Expand All @@ -103,12 +104,13 @@ async def run_controller(

event_stream = runtime.event_stream

# when memory is created, it will load the microagents from the selected repository
memory = create_memory(
microagents_dir=config.microagents_dir,
agent=agent,
runtime=runtime,
event_stream=event_stream,
# selected_repository=selected_repository,
selected_repository=config.sandbox.selected_repo,
)

# trick for testing
Expand Down

0 comments on commit 0e9f94e

Please sign in to comment.