Repository navigation
feat: add message to DEFAULT_TOOL_ALLOW in sandbox policy - #86715
Hidetsugu55 wants to merge 1 commit into
Conversation
The sandbox default allowlist omitted "message", which prevented agents in workspace-write mode from sending visible replies without an explicit alsoAllow override in openclaw.json. This was the root cause of the Discord channel message tool injection failure (Cycle 2 diagnosis). With this change, the runtime openclaw.json workaround (tools.sandbox.tools.alsoAllow: ["message"]) can be safely withdrawn.
|
Codex review: needs real behavior proof before merge. Reviewed May 29, 2026, 1:21 AM ET / 05:21 UTC. Summary PR surface: Source +1, Tests +14. Total +15 across 2 files. Reproducibility: no. high-confidence live reproduction is present. Source inspection shows current main omits Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land only after maintainers explicitly accept the default sandbox messaging boundary and the contributor provides redacted real behavior proof, or narrow the fix to the source-reply path that needs Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction is present. Source inspection shows current main omits Is this the best way to solve the issue? Unclear whether this is the best fix. The one-line default change likely addresses the reported blocked tool, but a narrower source-reply grant may preserve the sandbox boundary better unless maintainers want AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 8eb5ff08c86b. Label changesLabel justifications:
Evidence reviewedPR surface: Source +1, Tests +14. Total +15 across 2 files. View PR surface stats
Security concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
Heads up: this PR needs to be updated against current |
|
Closing as superseded by the narrower fix that landed in #88381 ( This PR adds Proof on #88381:
Thanks for chasing the broken visible-reply path. The safer shape is now on |
Summary
"message"toDEFAULT_TOOL_ALLOWinsrc/agents/sandbox/constants.tsmessagewithout explicitalsoAllowconfigContext
The sandbox default allowlist omitted
message, which prevented agents inworkspace-writesandbox mode from sending visible replies through Discord (and potentially other channels) without an explicittools.sandbox.tools.alsoAllow: ["message"]override inopenclaw.json.This was the root cause of the Discord channel message tool injection failure, diagnosed through Cycle 2 debug logging.
Verification
pnpm test src/agents/sandbox/tool-policy.test.ts— 11 tests passed (1 new)pnpm build— cleanAfter merge
The runtime workaround (
tools.sandbox.tools.alsoAllow: ["message"]inopenclaw.json) can be safely withdrawn.