Skip to content

feat: add atomic send-file skill for Matrix file transfer#423

Draft
Jing-ze wants to merge 2 commits intoagentscope-ai:mainfrom
Jing-ze:feat/send-file-skill
Draft

feat: add atomic send-file skill for Matrix file transfer#423
Jing-ze wants to merge 2 commits intoagentscope-ai:mainfrom
Jing-ze:feat/send-file-skill

Conversation

@Jing-ze
Copy link
Copy Markdown
Contributor

@Jing-ze Jing-ze commented Mar 24, 2026

Summary

  • Add send-file.sh script as an atomic tool for uploading local files to Matrix and sending them as m.file attachments — shared by Manager and all Workers (OpenClaw + CoPaw)
  • Add send-file skill for both Manager (manager/agent/skills/send-file/) and Workers (manager/agent/worker-skills/send-file/), registered as a builtin skill for automatic distribution
  • Fix silent failure in MatrixChannel.send_media() — now sends m.notice fallback when upload or delivery fails, so users get clear error feedback instead of "Message failed"
  • Add integration test test-15-file-transfer.sh with matrix_send_file() and matrix_wait_for_media_message() test helpers

Test plan

  • bash -n syntax check passes on all shell scripts
  • python -c "import ast; ast.parse(...)" passes on matrix_channel.py
  • test-15-file-transfer.sh passes 8/8 assertions locally
  • Full make test with rebuilt images (send-file.sh deployed in container)
  • Manual test: Worker executes send-file.sh to send file attachment in Element

🤖 Generated with Claude Code

Jing-ze and others added 2 commits March 24, 2026 19:06
Add a shared send-file.sh script and skill that enables Manager and all
Workers (OpenClaw + CoPaw) to send local files as Matrix attachments via
a single command. Also fix silent failure in MatrixChannel.send_media()
by sending m.notice fallback when upload or delivery fails.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ribution

Move send-file from worker-skills/ and skills/ into a new shared-skills/
directory that is automatically distributed to both Manager and all Workers.
Update create-worker.sh and upgrade-builtins.sh to push shared-skills to
Workers via MinIO alongside builtin skills.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed

Commit: b0d02c2
Workflow run: #329

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions
Copy link
Copy Markdown
Contributor

📊 CI Metrics Report

Summary

Metric Current Baseline Change
LLM Calls 255 178 +77 ↑ +43.3%
Input Tokens 7204032 4375537 +2828495 ↑ +64.6%
Output Tokens 54243 43659 +10584 ↑ +24.2%
Total Tokens 7258275 4419196 +2839079 ↑ +64.2%

By Role

Role Metric Current Baseline Change
🧠 Manager LLM Calls 165 139 +26 ↑ +18.7%
Input Tokens 4845697 3612053 +1233644 ↑ +34.2%
Output Tokens 28893 27064 +1829 ↑ +6.8%
Total Tokens 4874590 3639117 +1235473 ↑ +33.9%
🔧 Workers LLM Calls 90 39 +51 ↑ +130.8%
Input Tokens 2358335 763484 +1594851 ↑ +208.9%
Output Tokens 25350 16595 +8755 ↑ +52.8%
Total Tokens 2383685 780079 +1603606 ↑ +205.6%

Per-Test Breakdown

Test Mgr Calls Wkr Calls Δ Calls Mgr In Wkr In Mgr Out Wkr Out Δ Tokens Trend
02-create-worker 11 0 -1 ↓ -8.3% 216020 0 1322 0 -25649 ↓ -10.6% ✅ improved
03-assign-task 21 5 -1 ↓ -3.7% 480682 90200 2119 706 +26998 ↑ +4.9% ✅ improved
04-human-intervene 24 10 -12 ↓ -26.1% 577229 169860 3874 948 -167546 ↓ -18.2% ✅ improved
05-heartbeat 11 13 +12 ↑ +100.0% 302659 313346 2154 785 +293897 ↑ +90.4% ⚠️ regressed
06-multi-worker 37 8 +15 ↑ +50.0% 1317688 214410 8096 9687 +709012 ↑ +84.3% ⚠️ regressed
14-git-collab 61 54 +64 ↑ +125.5% 1951419 1570519 11328 13224 +2002367 ↑ +129.7% ⚠️ regressed

Trends

3 test(s) improved (fewer LLM calls)
⚠️ 3 test(s) regressed (more LLM calls)


Generated by HiClaw CI on 2026-03-24 12:23:09 UTC


📦 Download debug logs & test artifacts

@googs1025
Copy link
Copy Markdown
Contributor

Will this PR resolve this issue #427?

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.

2 participants