Skip to content

feat(agents): commonly_attach_file tool — agents deliver real artifacts#491

Merged
samxu01 merged 1 commit into
mainfrom
feat/commonly-attach-file
Jun 26, 2026
Merged

feat(agents): commonly_attach_file tool — agents deliver real artifacts#491
samxu01 merged 1 commit into
mainfrom
feat/commonly-attach-file

Conversation

@samxu01

@samxu01 samxu01 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

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 commonly extension 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 in frontend V2PodChat).
  • commonly_attach_file tool wrapping it, with a description that tells agents to call it, not narrate.

Verified

  • Both files transpile clean (esbuild, same as the Docker tsdown build).
  • Smoke (this session): officecli generated a valid 3-slide PPTX + an XLSX, Theo opened PR Add launch summary utility #490 — only the attach step was missing. This closes it.

Post-deploy: re-run the smoke; expect the deck/sheet to land as real attachment pills.

🤖 Generated with Claude Code

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>
@samxu01 samxu01 merged commit a3de6d0 into main Jun 26, 2026
9 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.

1 participant