[Bug] Anthropic API Error: Duplicate tool names in compaction request
Resolved 💬 4 comments Opened Dec 16, 2025 by erraggy Closed Dec 16, 2025
Bug Description
Since updating to this release (2.0.70), it fails to auto-compact, and if I try to manually with /compact, it fails with this error:
/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_011CW9wy4vQuX7PjyFxc4Mga"}
Environment Info
- Platform: darwin
- Terminal: WarpTerminal
- Version: 2.0.70
- Feedback ID: 0f1eaadd-5234-40cd-8af0-c5663b9f0e63
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-16T06:46:16.621Z"},{"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-16T06:46:16.799Z"},{"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-16T06:46:17.186Z"},{"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-16T06:46:18.262Z"},{"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 <anonymous> (/$bunfs/root/claude:3372:1507)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T06:48:28.344Z"},{"error":"MaxFileReadTokenExceededError: File content (27404 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-16T06:48:53.960Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools: Tool names must be unique.\"},\"request_id\":\"req_011CW9wq9ewx1a1rDRwh3med\"}\n at generate (/$bunfs/root/claude:413:10836)\n at makeRequest (/$bunfs/root/claude:750:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T07:09:03.478Z"},{"error":"Error: API Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools: Tool names must be unique.\"},\"request_id\":\"req_011CW9wq9ewx1a1rDRwh3med\"}\n at K1R (/$bunfs/root/claude:1596:1563)\n at async cb_ (/$bunfs/root/claude:1670:3266)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T07:09:03.491Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools: Tool names must be unique.\"},\"request_id\":\"req_011CW9wr5XvqqXfyT49FRk23\"}\n at generate (/$bunfs/root/claude:413:10836)\n at makeRequest (/$bunfs/root/claude:750:5434)\n a
Note: Error logs were truncated.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗