[BUG] Can't run /compact command

Resolved 💬 9 comments Opened Dec 16, 2025 by Eyhenij Closed Dec 17, 2025

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?

Trying to run "/compact" and getting  Error: Error during compaction: Error: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools: Tool names must be unique."},"request_id":"req_011CWAQTSevYFRww13Vty1QQ"}, removed all mcp-servers

What Should Happen?

Command "/compact" should be finished and conversation should be continued

Error Messages/Logs

Steps to Reproduce

Seems it should be investigated from "request_id":"req_011CWAQTSevYFRww13Vty1QQ"

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.70

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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