openclaw - 💡(How to fix) Fix [Bug]: Discord thread-reply silently ignores filePath/path parameters — attachment not sent

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

message tool with action: "thread-reply" silently ignores filePath and path parameters on Discord. The tool returns ok: true but no attachment is included in the Discord message.

Error Message

For two consecutive days, the thread was created successfully and the reply message appeared, but the attachment was missing. The agent believed it succeeded because the tool returned ok: true — there was no error signal at all.

Root Cause

message tool with action: "thread-reply" silently ignores filePath and path parameters on Discord. The tool returns ok: true but no attachment is included in the Discord message.

Code Example

// handle-action.ts (send) — lines 53-56
const mediaUrl =
  readStringParam(params, "media", { trim: false }) ??
  readStringParam(params, "path", { trim: false }) ??
  readStringParam(params, "filePath", { trim: false });

---

// handle-action.guild-admin.ts (thread-reply) — line 409
const mediaUrl = readStringParam(actionParams, "media", { trim: false });

---

{
     "action": "thread-reply",
     "channel": "discord",
     "target": "<thread-id>",
     "message": "See attachment",
     "filePath": "/path/to/report.md"
   }

---

if (action === "thread-reply") {
    const content = readStringParam(actionParams, "message", {
      required: true,
    });
-   const mediaUrl = readStringParam(actionParams, "media", { trim: false });
+   const mediaUrl =
+     readStringParam(actionParams, "media", { trim: false }) ??
+     readStringParam(actionParams, "path", { trim: false }) ??
+     readStringParam(actionParams, "filePath", { trim: false });
    const replyTo = readStringParam(actionParams, "replyTo");

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING