Skip to content

fix(harness): make sandbox file tools image-compatible#2370

Open
logicwu0 wants to merge 2 commits into
agentscope-ai:mainfrom
logicwu0:fix/2365-sandbox-file-tools
Open

fix(harness): make sandbox file tools image-compatible#2370
logicwu0 wants to merge 2 commits into
agentscope-ai:mainfrom
logicwu0:fix/2365-sandbox-file-tools

Conversation

@logicwu0

Copy link
Copy Markdown
Contributor

Summary

  • avoid nested command substitution when creating parent directories for sandbox writes and uploads
  • preserve shell error details from write failures
  • perform exact edit replacements through the filesystem transfer APIs instead of requiring Python in the sandbox image
  • update sandbox image requirements and add regression coverage

Testing

  • mvn -pl agentscope-harness -Dtest=BaseSandboxFilesystemTest,SandboxBackedFilesystemTest,ProjectAwareOverlayTest,LocalFilesystemModeTest test
  • git diff --check

Fixes #2365

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: 使用默认镜像运行沙箱命令,write_file和edit_file工具报错

1 participant