[Bug] Incorrect base filepath resolution causing repeated token waste on failed operations

Resolved 💬 3 comments Opened Dec 1, 2025 by yaleman Closed Jan 31, 2026

Bug Description
Claude consistently misspells the base filepath for all my projects and wastes incredible amounts of tokens retrying impossible things. This happens across many different projects, changing

  • /Users/yaleman/Projects/<projectname>/blah blah to
  • /Users/yaelman/Projects/<projectname>/blah blah (note the yael instead of yale)

from there it'll just keep spinning, attempting to access impossible paths over and over wasting my credits and hitting limits to the point where I lose access to my paid subscription.

The only workaround is hope to spot it while using the agent and reset the session and wait until next time it happens. I've even added a pretooluse hook that should check for it, but somehow it's bypassing that too today.

Surely there's some system-level things that can go "hey, that tool you keep trying to use is completely invalid, reconsider your life choices?" or something similar.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.55
  • Feedback ID: df413896-9b41-4a8e-9cee-5066196e6581

Errors

[{"error":"AggregateError\n    at aBA.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:11:14602)\n    at Pz.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:29:10028)\n    at Pz.emit (node:events:520:35)\n    at Pz.emit (node:domain:489:12)\n    at zX1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:28:1117)\n    at ClientRequest.emit (node:events:520:35)\n    at ClientRequest.emit (node:domain:489:12)\n    at emitErrorEvent (node:_http_client:108:11)\n    at TLSSocket.socketErrorListener (node:_http_client:575:5)\n    at TLSSocket.emit (node:events:508:28)\n    at EVA.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:31:2130)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n    at async QV0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4249:8674)","timestamp":"2025-12-01T09:39:08.962Z"},{"error":"AggregateError\n    at aBA.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:11:14602)\n    at Pz.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:29:10028)\n    at Pz.emit (node:events:520:35)\n    at Pz.emit (node:domain:489:12)\n    at zX1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:28:1117)\n    at ClientRequest.emit (node:events:520:35)\n    at ClientRequest.emit (node:domain:489:12)\n    at emitErrorEvent (node:_http_client:108:11)\n    at TLSSocket.socketErrorListener (node:_http_client:575:5)\n    at TLSSocket.emit (node:events:508:28)\n    at EVA.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:31:2130)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n    at async QV0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4249:8674)","timestamp":"2025-12-01T10:16:38.922Z"},{"error":"AggregateError\n    at aBA.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:11:14602)\n    at Pz.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:29:10028)\n    at Pz.emit (node:events:520:35)\n    at Pz.emit (node:domain:489:12)\n    at zX1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:28:1117)\n    at ClientRequest.emit (node:events:520:35)\n    at ClientRequest.emit (node:domain:489:12)\n    at emitErrorEvent (node:_http_client:108:11)\n    at TLSSocket.socketErrorListener (node:_http_client:575:5)\n    at TLSSocket.emit (node:events:508:28)\n    at EVA.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:31:2130)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n    at async QV0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4249:8674)","timestamp":"2025-12-01T10:17:07.697Z"},{"error":"AggregateError\n    at aBA.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:11:14602)\n    at Pz.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:29:10028)\n    at Pz.emit (node:events:520:35)\n    at Pz.emit (node:domain:489:12)\n    at zX1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:28:1117)\n    at ClientRequest.emit (node:events:520:35)\n    at ClientRequest.emit (node:domain:489:12)\n    at emitErrorEvent (node:_http_client:108:11)\n    at TLSSocket.socketErrorListener (node:_http_client:575:5)\n    at TLSSocket.emit (node:events:508:28)\n    at EVA.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:31:2130)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n    at async QV0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4249:8674)","timestamp":"2025-12-01T10:17:24.620Z"},{"error":"AggregateError\n    at aBA.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:11:14602)\n    at Pz.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:29:10028)\n    at Pz.emit (node:events:520:35)\n    at Pz.emit (node:domain:489:12)\n    at zX1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:28:1117)\n    at ClientRequest.emit (node:events:520:35)\n    at ClientRequest.emit (node:domain:489:12)\n    at emitErrorEvent (node:_http_client:108:11)\n    at TLSSocket.socketErrorListener (node:_http_client:575:5)\n    at TLSSocket.emit (node:events:508:28)\n    at EVA.request (file:///opt/homebrew/

Note: Error logs were truncated.

View original on GitHub ↗

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