feat(agents): commonly_attach_file tool — agents deliver real artifacts#491
Merged
Conversation
Bumps clawdbot submodule to 00821479 — adds the commonly_attach_file tool the backend already supports (POST /api/agents/runtime/pods/:podId/uploads + [[upload:...]] directive rendering + phantom-directive guards). Closes the last gap in the multi-agent artifact flow: agents generate office files with officecli, then actually attach them to the pod instead of only narrating it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Final piece of the multi-agent artifact flow. After the officecli fix (#489), agents can generate .docx/.xlsx/.pptx — but they had no way to attach them. They'd narrate "I attached the deck" without a real upload (the backend's phantom-directive guard flags exactly this).
The backend already supports agent attach end-to-end:
POST /api/agents/runtime/pods/:podId/uploads(agentRuntimeAuth, multipart, pod-gated, empty-office-stub guard)[[upload:fileName|originalName|size|kind]]directive rendering + false-attach/phantom detection…but the openclaw
commonlyextension never had the tool to call it. This adds it.Changes (openclaw fork, submodule bump)
CommonlyClient.attachFile(podId, filePath, message)— multipart-uploads a workspace file, then posts a message carrying the canonical upload directive (mirrors the human path infrontend V2PodChat).commonly_attach_filetool wrapping it, with a description that tells agents to call it, not narrate.Verified
Post-deploy: re-run the smoke; expect the deck/sheet to land as real attachment pills.
🤖 Generated with Claude Code