cold-piano-32610
09/29/2025, 5:55 PMWorkspace base path is NOT set. Agent will run in a temporary directory.
Using workspace directory: /tmp/openhands_workspace_xxx
But i already set the sanbox_volumes and also set the --directory
env["AGENT_ENABLE_PROMPT_EXTENSIONS"] = "false"
env["AGENT_ENABLE_BROWSING"] = "false"
env["ENABLE_BROWSER"] = "false"
# Other sandbox settings
env["SANDBOX_ENABLE_AUTO_LINT"] = "true"
# Disable environment sanity check
env["SKIP_DEPENDENCY_CHECK"] = "1"
# Enable saving trajectory (adapt to SVBench structure)
env["SAVE_TRAJECTORY_PATH"] = "/tmp/agent_logs"
# We are running in a sandboxed testing environment, no need to create
# a new user
env["RUN_AS_OPENHANDS"] = "false"
# OpenHands runs inside task container, need to set the runtime to local
env["RUNTIME"] = "local"
# Disable heavy plugins for faster startup
env["ENABLE_BROWSER"] = "false"
env["ENABLE_JUPYTER"] = "false"
env["ENABLE_BROWSING"] = "false"
env["INITIALIZE_PLUGINS"] = "false"
commands = [
# SVBench always uses the current directory as the workspace
"SANDBOX_VOLUMES=${PWD}:/workspace:rw",
# Configure OpenHands to bind to all interfaces
# "OPENHANDS_LOCAL_RUNTIME_URL=http://0.0.0.0",
# Disable heavy plugins for faster startup
"OPENHANDS_ENABLE_BROWSER=false",
"OPENHANDS_ENABLE_JUPYTER=false;",
"OPENHANDS_ENABLE_BROWSING=false",
"OPENHANDS_INITIALIZE_PLUGINS=false",
# Note: OpenHands default entrypoint is OpenHands CLI, but
# we need to use OpenHands headless mode.
"/opt/openhands-venv/bin/python -m openhands.core.main",
"--directory /project",
f"--task {escaped_instruction}",
]
All I want is ask agent to work in the current path, could you please let me know what else I need to set?calm-artist-7206
09/30/2025, 5:16 AMWORKSPACE_BASE=. , or to the directory?