Skip to content

Commit e9d9ced

Browse files
sjarmakclaude
andcommitted
Strip all OH sandbox plugins (jupyter + agent_skills)
agent_skills indexes /workspace at startup, causing a 120s timeout on large repos (firefox, linux, etc). We use a preamble for instructions so the skills plugin isn't needed. Clearing sandbox_plugins entirely fixes baseline ConnectError on all large-repo tasks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3308446 commit e9d9ced

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

agents/harnesses/openhands/agent.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,12 @@ def create_run_agent_commands(self, instruction: str):
215215
"",
216216
"_preload_site_package('pandas')",
217217
"",
218-
"# Monkey-patch CodeActAgent to exclude the jupyter plugin.",
219-
"# OpenHands v1.4.0 hardcodes JupyterRequirement in sandbox_plugins",
220-
"# and the jupyter-kernelgateway cannot bind inside Daytona sandboxes.",
218+
"# Strip all sandbox plugins (jupyter, agent_skills).",
219+
"# jupyter-kernelgateway can't bind in Daytona sandboxes, and",
220+
"# agent_skills indexes /workspace at startup which times out on large repos.",
221+
"# We use a preamble for task instructions, so skills aren't needed.",
221222
"import openhands.agenthub.codeact_agent.codeact_agent as _ca_mod",
222-
"_ca_mod.CodeActAgent.sandbox_plugins = [",
223-
" p for p in _ca_mod.CodeActAgent.sandbox_plugins",
224-
" if getattr(p, 'name', '') != 'jupyter'",
225-
"]",
223+
"_ca_mod.CodeActAgent.sandbox_plugins = []",
226224
"",
227225
"runpy.run_module('openhands.core.main', run_name='__main__')",
228226
])

0 commit comments

Comments
 (0)