<@U090ER7JPHA> are there any places in the OpenHan...
# slackbot-chatter
l
@nutritious-balloon-65098 are there any places in the OpenHands codebase where
/workspace
is referenced directly that cannot be overridden by the
WORKSPACE_BASE
or
WORKSPACE_MOUNT_PATH_IN_SANDBOX
variables?
n
I'm on it! Graham Neubig can track my progress here.
OpenHands encountered an unknown error. See the conversation for more information, or try again
I've analyzed the OpenHands codebase to identify places where
/workspace
is hardcoded and cannot be overridden by the
WORKSPACE_BASE
or
WORKSPACE_MOUNT_PATH_IN_SANDBOX
variables. Here are the key findings: 1. Issue Resolver (
openhands/resolver/issue_resolver.py
): ◦ Contains hardcoded
cd /workspace
commands and git configurations that directly reference
/workspace
◦ These commands don't respect the workspace configuration variables 2. Action Execution Server (
openhands/runtime/action_execution_server.py
): ◦ Hardcodes the downloads directory as
/workspace/.downloads
◦ Uses hardcoded paths like
/workspace/file_{n}
for downloaded files 3. Docker Nested Conversation Manager (
openhands/server/conversation_manager/docker_nested_conversation_manager.py
): ◦ Explicitly sets
env_vars['WORKSPACE_BASE'] = '/workspace'
regardless of configuration 4. VSCode Plugin (
openhands/runtime/plugins/vscode/__init__.py
): ◦ Uses hardcoded
/workspace
in paths when the environment variables aren't set 5. Function Call Converter (
openhands/llm/fn_call_converter.py
): ◦ Contains examples with hardcoded
/workspace
paths in tool examples 6. Evaluation Benchmarks: ◦ Many benchmark files in
evaluation/benchmarks/
contain hardcoded references to
/workspace
◦ These are used for testing and evaluation purposes 7. Test Files: ◦ Many test files have hardcoded references to
/workspace
for testing purposes These hardcoded references would need to be modified to use the configured workspace path variables instead of hardcoded values to make the system fully configurable.
I've analyzed the OpenHands codebase to identify places where
/workspace
is hardcoded and cannot be overridden by the
WORKSPACE_BASE
or
WORKSPACE_MOUNT_PATH_IN_SANDBOX
variables. Here are the key findings: 1. Issue Resolver (
openhands/resolver/issue_resolver.py
): ◦ Contains hardcoded
cd /workspace
commands and git configurations that directly reference
/workspace
◦ These commands don't respect the workspace configuration variables 2. Action Execution Server (
openhands/runtime/action_execution_server.py
): ◦ Hardcodes the downloads directory as
/workspace/.downloads
◦ Uses hardcoded paths like
/workspace/file_{n}
for downloaded files 3. Docker Nested Conversation Manager (
openhands/server/conversation_manager/docker_nested_conversation_manager.py
): ◦ Explicitly sets
env_vars['WORKSPACE_BASE'] = '/workspace'
regardless of configuration 4. VSCode Plugin (
openhands/runtime/plugins/vscode/__init__.py
): ◦ Uses hardcoded
/workspace
in paths when the environment variables aren't set 5. Function Call Converter (
openhands/llm/fn_call_converter.py
): ◦ Contains examples with hardcoded
/workspace
paths in tool examples 6. Evaluation Benchmarks: ◦ Many benchmark files in
evaluation/benchmarks/
contain hardcoded references to
/workspace
◦ These are used for testing and evaluation purposes 7. Test Files: ◦ Many test files have hardcoded references to
/workspace
for testing purposes These hardcoded references would need to be modified to use the configured workspace path variables instead of hardcoded values to make the system fully configurable.