Skip to content

fix(harness): stop the sandbox prompt from denying host delivery tools - #4353

Merged
jujn merged 1 commit into
agentscope-ai:mainfrom
Buktal:fix/sandbox-prompt-host-delivery-tools
Nov 24, 2026
Merged

jujn merged 1 commit into
agentscope-ai:mainfrom
Buktal:fix/sandbox-prompt-host-delivery-tools

Conversation

@Buktal

@Buktal Buktal commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

Without a configured ArtifactDeliveryTarget, the sandbox branch of the workspace prompt no longer states that no artifact delivery tool is configured. artifactDeliveryEnabled reflects only the harness-built deliver_artifact, while hosts can register their own delivery tools, so the fallback now applies only when the model's tool list has none. The EN and ZH harness/sandbox.md pages are updated to match.

Closes #4352.

Evidence

  • Before: No artifact delivery tool is configured. Files remain in the configured execution backend; describe their location and any retrieval work still needed.
  • After: Unless your tool list includes a delivery or upload tool, files remain in the configured execution backend; describe their location and any retrieval work still needed. The guidance after the semicolon is unchanged, and the branch with a configured target is untouched.
  • Validation: the updated WorkspaceContextMiddlewareSandboxPromptTest assertion fails when the source change is reverted. WorkspaceContextMiddlewareSandboxPromptTest (15 tests) and HarnessAgentTest (87 tests) pass; mvn -T1C -pl agentscope-harness -am test passes with 1,918 harness tests, 0 failures, 47 skipped; spotless:check, docs npm test and npm run validate pass. The documentation diff changes prose only; Mintlify's Windows link checker reports site-wide broken links. The new sentence has not been replayed against a live model.

Merge Danger

Door: Two-way. Reverting the commit restores the previous sentence.

Blast Radius: Low. One sentence of system-prompt text in sandbox mode without ArtifactDeliveryTarget; no API, configuration, or persisted-format change.

@mintlify

mintlify Bot commented Nov 24, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 54432f0.

Approve preview

@jujn
jujn merged commit 9554fa7 into agentscope-ai:main Nov 24, 2026
7 checks passed
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.

Sandbox prompt denies host-registered delivery tools when no ArtifactDeliveryTarget is configured

2 participants