Skip to content

Commit bc0cc5c

Browse files
authored
Move Claude Code binary to /var/tmp/ (#9)
* Move Claude Code binary to /var/tmp/ * Run make check to fix formatting
1 parent 0cde1d4 commit bc0cc5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/inspect_swe/_util/agentbinary.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ async def ensure_agent_binary_installed(
8686
resolved_version = version
8787

8888
# write it into the container and return it
89-
binary_path = f"/opt/{source.binary}-{resolved_version}-{platform}"
89+
binary_path = (
90+
f"/var/tmp/.5c95f967ca830048/{source.binary}-{resolved_version}-{platform}"
91+
)
9092
await sandbox.write_file(binary_path, binary_bytes)
9193
await sandbox_exec(sandbox, f"chmod +x {binary_path}", user="root")
9294
if source.post_install:

0 commit comments

Comments
 (0)