[Bug] Anthropic API Error: Duplicate tool names during compaction
Resolved 💬 5 comments Opened Dec 16, 2025 by znat Closed Feb 14, 2026
Bug Description
cannot compact anymore
⎿ Context low · Run /compact to compact & continue
/compact
⎿ 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_011CWB34zDPohKn5ao5edUJh"}
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 2.0.70
- Feedback ID: 9645db00-480e-42df-9d27-2140ac6e9c05
Errors
[{"error":"Error: EISDIR: illegal operation on a directory, read\n at readSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:724)\n at E3 (/$bunfs/root/claude:11:8454)\n at readSync (/$bunfs/root/claude:12:627)\n at t5 (/$bunfs/root/claude:4585:113)\n at R5 (/$bunfs/root/claude:4587:206)\n at yoD (/$bunfs/root/claude:2019:6496)\n at yoD (/$bunfs/root/claude:2019:7382)\n at h (/$bunfs/root/claude:2019:5701)\n at h (/$bunfs/root/claude:2019:5997)","timestamp":"2025-12-16T19:53:40.943Z"},{"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 R5 (/$bunfs/root/claude:4587:231)\n at yoD (/$bunfs/root/claude:2019:6496)\n at yoD (/$bunfs/root/claude:2019:7382)\n at h (/$bunfs/root/claude:2019:5701)\n at h (/$bunfs/root/claude:2019:5997)\n at <anonymous> (/$bunfs/root/claude:2019:6030)","timestamp":"2025-12-16T19:53:40.946Z"},{"error":"Error: Not connected\n at <anonymous> (/$bunfs/root/claude:925:17537)\n at new Promise (native:1:11)\n at request (/$bunfs/root/claude:925:17484)\n at callTool (/$bunfs/root/claude:925:150961)\n at callTool (/$bunfs/root/claude:925:151527)\n at tG_ (/$bunfs/root/claude:1027:33790)\n at tG_ (/$bunfs/root/claude:1027:34560)\n at dj (/$bunfs/root/claude:1027:30010)\n at dj (/$bunfs/root/claude:1027:30056)\n at y_A (/$bunfs/root/claude:2019:7486)","timestamp":"2025-12-16T19:55:42.412Z"},{"error":"Error: Not connected\n at <anonymous> (/$bunfs/root/claude:925:17537)\n at new Promise (native:1:11)\n at request (/$bunfs/root/claude:925:17484)\n at callTool (/$bunfs/root/claude:925:150961)\n at callTool (/$bunfs/root/claude:925:151527)\n at tG_ (/$bunfs/root/claude:1027:33790)\n at tG_ (/$bunfs/root/claude:1027:34560)\n at dj (/$bunfs/root/claude:1027:30010)\n at dj (/$bunfs/root/claude:1027:30056)\n at yoD (/$bunfs/root/claude:2019:7057)","timestamp":"2025-12-16T19:56:38.221Z"},{"error":"Error: Not connected\n at <anonymous> (/$bunfs/root/claude:925:17537)\n at new Promise (native:1:11)\n at request (/$bunfs/root/claude:925:17484)\n at callTool (/$bunfs/root/claude:925:150961)\n at callTool (/$bunfs/root/claude:925:151527)\n at tG_ (/$bunfs/root/claude:1027:33790)\n at tG_ (/$bunfs/root/claude:1027:34560)\n at dj (/$bunfs/root/claude:1027:30010)\n at dj (/$bunfs/root/claude:1027:30056)\n at yoD (/$bunfs/root/claude:2019:7057)","timestamp":"2025-12-16T19:56:38.221Z"},{"error":"Error: Not connected\n at <anonymous> (/$bunfs/root/claude:925:17537)\n at new Promise (native:1:11)\n at request (/$bunfs/root/claude:925:17484)\n at callTool (/$bunfs/root/claude:925:150961)\n at callTool (/$bunfs/root/claude:925:151527)\n at tG_ (/$bunfs/root/claude:1027:33790)\n at tG_ (/$bunfs/root/claude:1027:34560)\n at dj (/$bunfs/root/claude:1027:30010)\n at dj (/$bunfs/root/claude:1027:30056)\n at y_A (/$bunfs/root/claude:2019:7486)","timestamp":"2025-12-16T19:56:38.221Z"},{"error":"Error: Not connected\n at <anonymous> (/$bunfs/root/claude:925:17537)\n at new Promise (native:1:11)\n at request (/$bunfs/root/claude:925:17484)\n at callTool (/$bunfs/root/claude:925:150961)\n at callTool (/$bunfs/root/claude:925:151527)\n at tG_ (/$bunfs/root/claude:1027:33790)\n at tG_ (/$bunfs/root/claude:1027:34560)\n at dj (/$bunfs/root/claude:1027:30010)\n at dj (/$bunfs/root/claude:1027:30056)\n at y_A (/$bunfs/root/claude:2019:7486)","timestamp":"2025-12-16T19:57:15.146Z"},{"error":"McpError: MCP error -32603: failed to get pull request comments: GET https://api.github.com/repos/conversationHEALTH/Redcrawl/pulls/377/comments?per_page=100: 401 Bad credentials []\n at _onresponse (/$bunfs/root/claude:925:17191)\n at <anonymous> (/$bunfs/root/claude:925:14392)\n at processReadBuffer (/$bunfs/root/claude:927:2121
Note: Error logs were truncated.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗