[Bug] Anthropic API Error: Duplicate tool names during conversation compaction

Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened Dec 16, 2025 · closed Dec 16, 2025

Bug Description
getting an error compacting this conversation: ⎿  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_011CWAxQ45GNYu89FUV1SxHf"}

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.0.70
  • Feedback ID: 23177c0a-c100-4c3d-929e-f64cbda11e0e

Errors

[{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readFileSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:500)\n    at E3 (/$bunfs/root/claude:11:8454)\n    at readFileSync (/$bunfs/root/claude:12:465)\n    at uB_ (/$bunfs/root/claude:4582:22120)\n    at call (/$bunfs/root/claude:915:945)\n    at call (/$bunfs/root/claude:911:6229)\n    at nrD (/$bunfs/root/claude:1806:17437)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T18:22:58.259Z"},{"error":"MaxFileReadTokenExceededError: File content (25228 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at cB_ (/$bunfs/root/claude:906:11975)\n    at async call (/$bunfs/root/claude:915:1005)\n    at async <anonymous> (/$bunfs/root/claude:3372:1507)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T18:23:55.097Z"},{"error":"MaxFileReadTokenExceededError: File content (25228 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at cB_ (/$bunfs/root/claude:906:11975)\n    at async call (/$bunfs/root/claude:915:1005)\n    at async <anonymous> (/$bunfs/root/claude:3372:1507)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T18:23:57.134Z"},{"error":"Error: Web search error: unavailable\n    at CC7 (/$bunfs/root/claude:2737:2427)\n    at call (/$bunfs/root/claude:2737:6458)\n    at async nrD (/$bunfs/root/claude:1806:17437)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T19:01:41.354Z"},{"error":"Error: Web search error: unavailable\n    at CC7 (/$bunfs/root/claude:2737:2427)\n    at call (/$bunfs/root/claude:2737:6458)\n    at async nrD (unknown)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T19:06:13.661Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readFileSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:500)\n    at E3 (/$bunfs/root/claude:11:8454)\n    at readFileSync (/$bunfs/root/claude:12:465)\n    at uB_ (/$bunfs/root/claude:4582:22120)\n    at call (/$bunfs/root/claude:915:945)\n    at call (/$bunfs/root/claude:911:6229)\n    at nrD (/$bunfs/root/claude:1806:17437)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T19:06:27.312Z"},{"error":"Error: Web search error: unavailable\n    at CC7 (/$bunfs/root/claude:2737:2427)\n    at call (/$bunfs/root/claude:2737:6458)\n    at async nrD (/$bunfs/root/claude:1806:17437)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T19:07:03.622Z"},{"error":"Error\n    at ab (/$bunfs/root/claude:59:1143)\n    at <anonymous> (/$bunfs/root/claude:60:10084)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:62:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T19:07:10.809Z"},{"error":"Error\n    at ab (/$bunfs/root/claude:59:1143)\n    at <anonymous> (/$bunfs/root/claude:60:10084)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:62:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T19:07:10.817Z"},{"error":"Error: Web search error: unavailable\n    at CC7 (/$bunfs/root/claude:2737:2427)\n    at call (/$bunfs/root/claude:2737:6458)\n    at async nrD (unknown)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T19:07:31.751Z"},{"error":"Error\n    at ab (/$bunfs/root/claude:59:1143)\n    at <anonymous> (/$bunfs/root/claude:60:10084)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:62:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T19:08:02.501Z"},{"error":"Error: Error: No declarations found for type: ApiProvider\n    at tG_ (/$bunfs/root/claude:

Note: Error logs were truncated.

View original on GitHub ↗

4 Comments

github-actions[bot] · 10 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/14139
  2. https://github.com/anthropics/claude-code/issues/14205
  3. https://github.com/anthropics/claude-code/issues/14197

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

gmmeyer · 10 months ago

closing it bc it's a duplicate of all of those

vectorcrawler · 10 months ago

don't close it, more the better, takes them months/years to fix something like this needs more eyes, or they will just let it ride out cause it makes them more money, loss of context more tokens used to recover or try to, same as the scroll bug they left all year it makes them alot more money with useage. Image a company that sent you a product that never broke you would never have to make them anymore revenue or reoccurring purchases, on replacement etc. It's all part of the bigger play $$

github-actions[bot] · 9 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.