claude-code - 💡(How to fix) Fix [BUG] fakechat MCP server silently drops all but the first file when multiple attachments are passed to reply tool

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…

Error Message

In external_plugins/fakechat/server.ts, the reply tool's input schema declares files as an array of strings, but the handler only ever processes files[0]. Any files at index 1 and beyond are silently ignored — no error, no warning.

Error Messages/Logs

No error is thrown. Files beyond index 0 are silently dropped. 4. No error is returned; the tool reports success

Code Example

No error is thrown. Files beyond index 0 are silently dropped.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

In external_plugins/fakechat/server.ts, the reply tool's input schema declares files as an array of strings, but the handler only ever processes files[0]. Any files at index 1 and beyond are silently ignored — no error, no warning.

The tool description says "Pass reply_to for quote-reply, files for attachments" implying multiple files are supported, but the implementation contradicts this.

What Should Happen?

All file paths passed in the files array should be processed and delivered. If only one file is supported, the schema should use maxItems: 1 and the description should say so explicitly.

Error Messages/Logs

No error is thrown. Files beyond index 0 are silently dropped.

Steps to Reproduce

  1. Start the fakechat MCP server
  2. Call the reply tool with multiple files: { "text": "here are two files", "files": ["/path/a.txt", "/path/b.txt"] }
  3. Observe the fakechat UI — only the first file appears
  4. No error is returned; the tool reports success

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude Sonnet 4.6

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

Affected file: external_plugins/fakechat/server.ts The fix is to loop over all entries in files[] instead of only checking files[0]. The Discord and Telegram server.ts counterparts handle this correctly via a for-loop.

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