[BUG] brace expansion bug in zip files generated by claude.ai

Resolved 💬 3 comments Opened Mar 23, 2026 by ipswitch8 Closed Apr 21, 2026

Preflight Checklist

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

What's Wrong?

Claude.ai acknowledges an internal issue with creating zip files, (e.g. for download of multi-file output):

_mkdir -p with brace expansion creating literal brace-named directories that get zipped_

...which also sometimes leads to missing folders and/or files when unzipped.

What Should Happen?

Zip files should contain only the expected file content within the expected folder structure.

Error Messages/Logs

Steps to Reproduce

Ask Claude.ai to create something with a logical folder structure, in this case it was a combination of agents, commands, and hooks, then ask it to provide all the generated files in a single zip.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Looks like that command ended up here instead of your terminal. Run it there and it will show your installed Claude Code version — useful to include in the bug report since the zip/mkdir issue may be version-specific.

Platform

Other

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

Again - specific to https://claude.ai/ but it told me to come here for the report. 🤷‍♂️

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗