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

Resolved 💬 4 comments Opened Dec 16, 2025 by gmmeyer 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 ↗

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