Skip to content

Commit 38a5c59

Browse files
fix: bundle browser recording JS files in PyInstaller build (#2025)
Co-authored-by: openhands <openhands@all-hands.dev>
1 parent 7d784ce commit 38a5c59

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ When reviewing code, provide constructive feedback:
116116
- If it is a single-line string, you can break it into a multi-line string by doing "ABC" -> ("A"\n"B"\n"C")
117117
- If it is a long multi-line string (e.g., docstring), you should just add type ignore AFTER the ending """. You should NEVER ADD IT INSIDE the docstring.
118118

119+
# PyInstaller Data Files
120+
121+
When adding non-Python files (JS, templates, etc.) loaded at runtime, add them to `openhands-agent-server/openhands/agent_server/agent-server.spec` using `collect_data_files`.
122+
119123
</DEV_SETUP>
120124

121125
<PR_ARTIFACTS>

openhands-agent-server/openhands/agent_server/agent-server.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ a = Analysis(
4444
# OpenHands Tools templates
4545
*collect_data_files("openhands.tools.delegate", includes=["templates/*.j2"]),
4646

47+
# OpenHands Tools browser recording JS files
48+
*collect_data_files("openhands.tools.browser_use", includes=["js/*.js"]),
49+
4750
# Package metadata for importlib.metadata
4851
*copy_metadata("fastmcp"),
4952
*copy_metadata("litellm"),

0 commit comments

Comments
 (0)