claude-code - 💡(How to fix) Fix [Bug] Excessive token consumption increase with Claude 3.5 Sonnet [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49188Fetched 2026-04-17 08:48:23
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

[{"error":"Error: File does not exist. Note: your current working directory is /Users/edercnj/workspaces/ia-dev-environment/java.\n at call (/$bunfs/root/src/entrypoints/cli.js:4544:7630)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T20:08:17.047Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/edercnj/workspaces/ia-dev-environment/.claude/worktrees/story-0039-0002/java/src/main/java/dev/iadev/domain/schemaversion'\n at C1H (/$bunfs/root/src/entrypoints/cli.js:4438:15399)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T21:26:21.415Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: Request failed with status code 429\n at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T22:22:36.621Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: Request failed with status code 429\n at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T22:22:36.621Z"},{"error":"Error: ensureToolResultPairing: repaired missing tool_result blocks (139 -> 139 messages). Message structure: [0] user; [1] assistant(id=msg_01Hk3YfnUg5VMQaUBYeTJSPV, tool_uses=[toolu_019aGQkWfHX2z25MP6LgZ5R7,toolu_01RCPywaEbnXQApmXW3EnykC]); [2] user(tool_results=[toolu_019aGQkWfHX2z25MP6LgZ5R7,toolu_01RCPywaEbnXQApmXW3EnykC]); [3] assistant(id=msg_017Aufj5P2ncv2R82iuEiGXp, tool_uses=[toolu_01VyhzYsweU3ckvQ8CiNWijF]); [4] user(tool_results=[toolu_01VyhzYsweU3ckvQ8CiNWijF]); [5] assistant(id=msg_01VkMkQvwvRJMo8nWJJQwJy8, tool_uses=[toolu_01WPnkTN6RKZjAVuVtKJkRUw,toolu_01B7f7RHUkxEvvUAZrkrxeEi]); [6] user(tool_results=[toolu_01WPnkTN6RKZjAVuVtKJkRUw,toolu_01B7f7RHUkxEvvUAZrkrxeEi]); [7] assistant(id=msg_01QKdRh4MBt5Lj9Bo9C6DDY1, tool_uses=[toolu_01PFGHZCDG2tsnTZHDzyC2qz,toolu_017MFmnZyiiCnojhTAvtVVXt]); [8] user(tool_results=[toolu_01PFGHZCDG2tsnTZHDzyC2qz,toolu_017MFmnZyiiCnojhTAvtVVXt]); [9] assistant(id=msg_01KWb2R7HMnsRfpD79JVgDh9, tool_uses=[]); [10] user; [11] assistant(id=msg_014dhextPqtRnLhgmBWWutq1, tool_uses=[toolu_0153RAY5Twgyje1ngjSg31tF]); [12] user(tool_results=[toolu_0153RAY5Twgyje1ngjSg31tF]); [13] assistant(id=msg_01W14toE7i85FkuXQDjmHCnx, tool_uses=[toolu_018AzpvkM922HMArD8sAgaBQ,toolu_019f78qQxEBvR7ZKoHispKtm]); [14] user(tool_results=[toolu_018AzpvkM922HMArD8sAgaBQ,toolu_019f78qQxEBvR7ZKoHispKtm]); [15] assistant(id=msg_01SsREpxiWxbsPrtNcMsnakg, tool_uses=[toolu_01WSE9To3UMneAsaH7kNHgnH,toolu_01WXfmJwW8H7nmAacnTK2BAf]); [16] user(tool_results=[toolu_01WSE9To3UMneAsaH7kNHgnH,toolu_01WXfmJwW8H7nmAacnTK2BAf]); [17] assistant(id=msg_01RE2j6A26MxuKAseQLUaqDR, tool_uses=[toolu_01CHQMk7soAxCf8T9YgvULro,toolu_01GezRS5pD4k5HjaHJKjkBN4,toolu_01FDCMDp5TYYr6nwTMd9LYUX]); [18] user(tool_results=[toolu_01CHQMk7soAxCf8T9YgvULro,toolu_01GezRS5pD4k5HjaHJKjkBN4,toolu_01FDCMDp5TYYr6nwTMd9LYUX]); [19] assistant(id=msg_01HheK6YoHQ9Scb4UnMsNjkQ, tool_uses=[]); [20] user; [21] assistant(id=msg_01DjvnJ97uKoeEPihjGfWA11, tool_uses=[toolu_014qrfn8to3XcNYu9bbDiuH3,toolu_01PLAUAteDBgnzfyjqMQJn7Z]); [22] user(tool_results=[toolu_014qrfn8to3XcNYu9bbDiuH3,toolu_01PLAUAteDBgnzfyjqMQJn7Z]); [23] assistant(id=msg_01W3WCnCqn1H9amdyz6oaCBJ, tool_uses=[toolu_01LBrDopGGmhiE1y46X3fzKX,toolu_0164obXvEAvtEZidbyp8oKXj,toolu_01Cf5DNN7REX3wmc92Lf5ZMW]); [24] user(tool_results=[toolu_01LBrDopGGmhiE1y46X3fzKX,toolu_0164obXvEAvtEZidbyp8oKXj,toolu_01Cf5DNN7REX3wmc92Lf5ZMW]); [25] assistant(id=msg_01CXZ45Neme3AsWqBsXBxdFV, tool_uses=[toolu_01RNvciyWsZjYxQFQd1Cm1xc,toolu_01PMxmWem73ebhvbHWdbNA9Q]); [26] user(tool_results=[toolu_01RNvciyWsZjYxQFQd1Cm1xc,toolu_01PMxmWem73ebhvbHWdbNA9Q]); [27] assistant(id=msg_01Q8yoVCwUe9KhUaZEkJTR7T, tool_uses=[toolu_01YKAMfifV3xtEbE2yQs9k5D]); [28] user(tool_results=[toolu_01YKAMfifV3xtEbE2yQs9k5D]); [29] assistant(id=msg_01AXvRLCacV5zMUqHnr1sLDK, tool_uses=[]); [30] user; [31] assistant(id=msg_01UJWDDuqQ9U7VuXxby98nLU, tool_uses=[toolu_01VCxPECcExDgfHF8oLjp7jA,toolu_011WqkR37kwvyyf59vd9soso,toolu_014zLfBY3knvNeafh1UqMNGb]); [32] user(tool_results=[toolu_011WqkR37kwvyyf59vd9soso,toolu_014zLfBY3knvNeafh1UqMNGb,toolu_01VCxPECcExDgfHF8oLjp7jA]); [33] assistant(id=msg_01MvDZk8t7qrAe1kiZpq6Gxh, tool_uses=[toolu_01VfN742uyULWawXmKhEcDd4,toolu_01JzobFJ9n8na6MiBCDLRv79,toolu_015QyBonu53zNATbSHah4J1S,toolu_01FqvjT11Zcm6ZnhLy3b9ijV]); [34] user(tool_results=[toolu_01VfN742uyULWawXmKhEcDd4,toolu_01FqvjT11Zcm6ZnhLy3b9ijV,toolu_01JzobFJ9n8na6MiBCDLRv79,toolu_015QyBonu53zNATbSHah4J1S]); [35] assistant(id=msg_01W7Uaffjaujco3CRVB8aFz6, tool_uses=[toolu_01CrGJe4nCuLsxFKeZuL6HhB,toolu_01Y4XkDTeg1knmJ1GZTn3v9D,toolu_0124j3FvmhuBe1tZK3xb4yvZ,toolu_01X7E4J4b7LitPKftyEshcVH]); [36] user(tool_results=[toolu_01CrGJe4nCuLsxFKeZuL6HhB,toolu_01X7E4J4b7LitPKftyEshcVH,toolu_0124j3FvmhuBe1tZK3xb4yvZ,toolu_01Y4XkDTeg1knmJ1GZTn3v9D]); [37] assistant(id=msg_011Nu7gCv2o59KggY9j7bX3z, tool_uses=[toolu_01PYnK5PEW7mbDJK4qFtJAuh,toolu_01G771iZuwvTBzvmXwdsZQ2v,toolu_014LtGtTWEVsCfpkVAAcQosr,toolu_01J64YywQKF5vHM1sdCcT6x4…

Code Example

[{"error":"Error: File does not exist. Note: your current working directory is /Users/edercnj/workspaces/ia-dev-environment/java.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4544:7630)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T20:08:17.047Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/edercnj/workspaces/ia-dev-environment/.claude/worktrees/story-0039-0002/java/src/main/java/dev/iadev/domain/schemaversion'\n    at C1H (/$bunfs/root/src/entrypoints/cli.js:4438:15399)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T21:26:21.415Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: Request failed with status code 429\n    at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T22:22:36.621Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: Request failed with status code 429\n    at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T22:22:36.621Z"},{"error":"Error: ensureToolResultPairing: repaired missing tool_result blocks (139 -> 139 messages). Message structure: [0] user; [1] assistant(id=msg_01Hk3YfnUg5VMQaUBYeTJSPV, tool_uses=[toolu_019aGQkWfHX2z25MP6LgZ5R7,toolu_01RCPywaEbnXQApmXW3EnykC]); [2] user(tool_results=[toolu_019aGQkWfHX2z25MP6LgZ5R7,toolu_01RCPywaEbnXQApmXW3EnykC]); [3] assistant(id=msg_017Aufj5P2ncv2R82iuEiGXp, tool_uses=[toolu_01VyhzYsweU3ckvQ8CiNWijF]); [4] user(tool_results=[toolu_01VyhzYsweU3ckvQ8CiNWijF]); [5] assistant(id=msg_01VkMkQvwvRJMo8nWJJQwJy8, tool_uses=[toolu_01WPnkTN6RKZjAVuVtKJkRUw,toolu_01B7f7RHUkxEvvUAZrkrxeEi]); [6] user(tool_results=[toolu_01WPnkTN6RKZjAVuVtKJkRUw,toolu_01B7f7RHUkxEvvUAZrkrxeEi]); [7] assistant(id=msg_01QKdRh4MBt5Lj9Bo9C6DDY1, tool_uses=[toolu_01PFGHZCDG2tsnTZHDzyC2qz,toolu_017MFmnZyiiCnojhTAvtVVXt]); [8] user(tool_results=[toolu_01PFGHZCDG2tsnTZHDzyC2qz,toolu_017MFmnZyiiCnojhTAvtVVXt]); [9] assistant(id=msg_01KWb2R7HMnsRfpD79JVgDh9, tool_uses=[]); [10] user; [11] assistant(id=msg_014dhextPqtRnLhgmBWWutq1, tool_uses=[toolu_0153RAY5Twgyje1ngjSg31tF]); [12] user(tool_results=[toolu_0153RAY5Twgyje1ngjSg31tF]); [13] assistant(id=msg_01W14toE7i85FkuXQDjmHCnx, tool_uses=[toolu_018AzpvkM922HMArD8sAgaBQ,toolu_019f78qQxEBvR7ZKoHispKtm]); [14] user(tool_results=[toolu_018AzpvkM922HMArD8sAgaBQ,toolu_019f78qQxEBvR7ZKoHispKtm]); [15] assistant(id=msg_01SsREpxiWxbsPrtNcMsnakg, tool_uses=[toolu_01WSE9To3UMneAsaH7kNHgnH,toolu_01WXfmJwW8H7nmAacnTK2BAf]); [16] user(tool_results=[toolu_01WSE9To3UMneAsaH7kNHgnH,toolu_01WXfmJwW8H7nmAacnTK2BAf]); [17] assistant(id=msg_01RE2j6A26MxuKAseQLUaqDR, tool_uses=[toolu_01CHQMk7soAxCf8T9YgvULro,toolu_01GezRS5pD4k5HjaHJKjkBN4,toolu_01FDCMDp5TYYr6nwTMd9LYUX]); [18] user(tool_results=[toolu_01CHQMk7soAxCf8T9YgvULro,toolu_01GezRS5pD4k5HjaHJKjkBN4,toolu_01FDCMDp5TYYr6nwTMd9LYUX]); [19] assistant(id=msg_01HheK6YoHQ9Scb4UnMsNjkQ, tool_uses=[]); [20] user; [21] assistant(id=msg_01DjvnJ97uKoeEPihjGfWA11, tool_uses=[toolu_014qrfn8to3XcNYu9bbDiuH3,toolu_01PLAUAteDBgnzfyjqMQJn7Z]); [22] user(tool_results=[toolu_014qrfn8to3XcNYu9bbDiuH3,toolu_01PLAUAteDBgnzfyjqMQJn7Z]); [23] assistant(id=msg_01W3WCnCqn1H9amdyz6oaCBJ, tool_uses=[toolu_01LBrDopGGmhiE1y46X3fzKX,toolu_0164obXvEAvtEZidbyp8oKXj,toolu_01Cf5DNN7REX3wmc92Lf5ZMW]); [24] user(tool_results=[toolu_01LBrDopGGmhiE1y46X3fzKX,toolu_0164obXvEAvtEZidbyp8oKXj,toolu_01Cf5DNN7REX3wmc92Lf5ZMW]); [25] assistant(id=msg_01CXZ45Neme3AsWqBsXBxdFV, tool_uses=[toolu_01RNvciyWsZjYxQFQd1Cm1xc,toolu_01PMxmWem73ebhvbHWdbNA9Q]); [26] user(tool_results=[toolu_01RNvciyWsZjYxQFQd1Cm1xc,toolu_01PMxmWem73ebhvbHWdbNA9Q]); [27] assistant(id=msg_01Q8yoVCwUe9KhUaZEkJTR7T, tool_uses=[toolu_01YKAMfifV3xtEbE2yQs9k5D]); [28] user(tool_results=[toolu_01YKAMfifV3xtEbE2yQs9k5D]); [29] assistant(id=msg_01AXvRLCacV5zMUqHnr1sLDK, tool_uses=[]); [30] user; [31] assistant(id=msg_01UJWDDuqQ9U7VuXxby98nLU, tool_uses=[toolu_01VCxPECcExDgfHF8oLjp7jA,toolu_011WqkR37kwvyyf59vd9soso,toolu_014zLfBY3knvNeafh1UqMNGb]); [32] user(tool_results=[toolu_011WqkR37kwvyyf59vd9soso,toolu_014zLfBY3knvNeafh1UqMNGb,toolu_01VCxPECcExDgfHF8oLjp7jA]); [33] assistant(id=msg_01MvDZk8t7qrAe1kiZpq6Gxh, tool_uses=[toolu_01VfN742uyULWawXmKhEcDd4,toolu_01JzobFJ9n8na6MiBCDLRv79,toolu_015QyBonu53zNATbSHah4J1S,toolu_01FqvjT11Zcm6ZnhLy3b9ijV]); [34] user(tool_results=[toolu_01VfN742uyULWawXmKhEcDd4,toolu_01FqvjT11Zcm6ZnhLy3b9ijV,toolu_01JzobFJ9n8na6MiBCDLRv79,toolu_015QyBonu53zNATbSHah4J1S]); [35] assistant(id=msg_01W7Uaffjaujco3CRVB8aFz6, tool_uses=[toolu_01CrGJe4nCuLsxFKeZuL6HhB,toolu_01Y4XkDTeg1knmJ1GZTn3v9D,toolu_0124j3FvmhuBe1tZK3xb4yvZ,toolu_01X7E4J4b7LitPKftyEshcVH]); [36] user(tool_results=[toolu_01CrGJe4nCuLsxFKeZuL6HhB,toolu_01X7E4J4b7LitPKftyEshcVH,toolu_0124j3FvmhuBe1tZK3xb4yvZ,toolu_01Y4XkDTeg1knmJ1GZTn3v9D]); [37] assistant(id=msg_011Nu7gCv2o59KggY9j7bX3z, tool_uses=[toolu_01PYnK5PEW7mbDJK4qFtJAuh,toolu_01G771iZuwvTBzvmXwdsZQ2v,toolu_014LtGtTWEVsCfpkVAAcQosr,toolu_01J64YywQKF5vHM1sdCcT6x4…
RAW_BUFFERClick to expand / collapse

Bug Description Notei que o consumo de tokens aumentou absurdamente nas ultimas semanas. Mesmos com o Plano Max 20x.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.109
  • Feedback ID: b0a6430b-d0d5-403f-a560-80616136e362

Errors

[{"error":"Error: File does not exist. Note: your current working directory is /Users/edercnj/workspaces/ia-dev-environment/java.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4544:7630)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T20:08:17.047Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/edercnj/workspaces/ia-dev-environment/.claude/worktrees/story-0039-0002/java/src/main/java/dev/iadev/domain/schemaversion'\n    at C1H (/$bunfs/root/src/entrypoints/cli.js:4438:15399)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T21:26:21.415Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: Request failed with status code 429\n    at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T22:22:36.621Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: Request failed with status code 429\n    at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T22:22:36.621Z"},{"error":"Error: ensureToolResultPairing: repaired missing tool_result blocks (139 -> 139 messages). Message structure: [0] user; [1] assistant(id=msg_01Hk3YfnUg5VMQaUBYeTJSPV, tool_uses=[toolu_019aGQkWfHX2z25MP6LgZ5R7,toolu_01RCPywaEbnXQApmXW3EnykC]); [2] user(tool_results=[toolu_019aGQkWfHX2z25MP6LgZ5R7,toolu_01RCPywaEbnXQApmXW3EnykC]); [3] assistant(id=msg_017Aufj5P2ncv2R82iuEiGXp, tool_uses=[toolu_01VyhzYsweU3ckvQ8CiNWijF]); [4] user(tool_results=[toolu_01VyhzYsweU3ckvQ8CiNWijF]); [5] assistant(id=msg_01VkMkQvwvRJMo8nWJJQwJy8, tool_uses=[toolu_01WPnkTN6RKZjAVuVtKJkRUw,toolu_01B7f7RHUkxEvvUAZrkrxeEi]); [6] user(tool_results=[toolu_01WPnkTN6RKZjAVuVtKJkRUw,toolu_01B7f7RHUkxEvvUAZrkrxeEi]); [7] assistant(id=msg_01QKdRh4MBt5Lj9Bo9C6DDY1, tool_uses=[toolu_01PFGHZCDG2tsnTZHDzyC2qz,toolu_017MFmnZyiiCnojhTAvtVVXt]); [8] user(tool_results=[toolu_01PFGHZCDG2tsnTZHDzyC2qz,toolu_017MFmnZyiiCnojhTAvtVVXt]); [9] assistant(id=msg_01KWb2R7HMnsRfpD79JVgDh9, tool_uses=[]); [10] user; [11] assistant(id=msg_014dhextPqtRnLhgmBWWutq1, tool_uses=[toolu_0153RAY5Twgyje1ngjSg31tF]); [12] user(tool_results=[toolu_0153RAY5Twgyje1ngjSg31tF]); [13] assistant(id=msg_01W14toE7i85FkuXQDjmHCnx, tool_uses=[toolu_018AzpvkM922HMArD8sAgaBQ,toolu_019f78qQxEBvR7ZKoHispKtm]); [14] user(tool_results=[toolu_018AzpvkM922HMArD8sAgaBQ,toolu_019f78qQxEBvR7ZKoHispKtm]); [15] assistant(id=msg_01SsREpxiWxbsPrtNcMsnakg, tool_uses=[toolu_01WSE9To3UMneAsaH7kNHgnH,toolu_01WXfmJwW8H7nmAacnTK2BAf]); [16] user(tool_results=[toolu_01WSE9To3UMneAsaH7kNHgnH,toolu_01WXfmJwW8H7nmAacnTK2BAf]); [17] assistant(id=msg_01RE2j6A26MxuKAseQLUaqDR, tool_uses=[toolu_01CHQMk7soAxCf8T9YgvULro,toolu_01GezRS5pD4k5HjaHJKjkBN4,toolu_01FDCMDp5TYYr6nwTMd9LYUX]); [18] user(tool_results=[toolu_01CHQMk7soAxCf8T9YgvULro,toolu_01GezRS5pD4k5HjaHJKjkBN4,toolu_01FDCMDp5TYYr6nwTMd9LYUX]); [19] assistant(id=msg_01HheK6YoHQ9Scb4UnMsNjkQ, tool_uses=[]); [20] user; [21] assistant(id=msg_01DjvnJ97uKoeEPihjGfWA11, tool_uses=[toolu_014qrfn8to3XcNYu9bbDiuH3,toolu_01PLAUAteDBgnzfyjqMQJn7Z]); [22] user(tool_results=[toolu_014qrfn8to3XcNYu9bbDiuH3,toolu_01PLAUAteDBgnzfyjqMQJn7Z]); [23] assistant(id=msg_01W3WCnCqn1H9amdyz6oaCBJ, tool_uses=[toolu_01LBrDopGGmhiE1y46X3fzKX,toolu_0164obXvEAvtEZidbyp8oKXj,toolu_01Cf5DNN7REX3wmc92Lf5ZMW]); [24] user(tool_results=[toolu_01LBrDopGGmhiE1y46X3fzKX,toolu_0164obXvEAvtEZidbyp8oKXj,toolu_01Cf5DNN7REX3wmc92Lf5ZMW]); [25] assistant(id=msg_01CXZ45Neme3AsWqBsXBxdFV, tool_uses=[toolu_01RNvciyWsZjYxQFQd1Cm1xc,toolu_01PMxmWem73ebhvbHWdbNA9Q]); [26] user(tool_results=[toolu_01RNvciyWsZjYxQFQd1Cm1xc,toolu_01PMxmWem73ebhvbHWdbNA9Q]); [27] assistant(id=msg_01Q8yoVCwUe9KhUaZEkJTR7T, tool_uses=[toolu_01YKAMfifV3xtEbE2yQs9k5D]); [28] user(tool_results=[toolu_01YKAMfifV3xtEbE2yQs9k5D]); [29] assistant(id=msg_01AXvRLCacV5zMUqHnr1sLDK, tool_uses=[]); [30] user; [31] assistant(id=msg_01UJWDDuqQ9U7VuXxby98nLU, tool_uses=[toolu_01VCxPECcExDgfHF8oLjp7jA,toolu_011WqkR37kwvyyf59vd9soso,toolu_014zLfBY3knvNeafh1UqMNGb]); [32] user(tool_results=[toolu_011WqkR37kwvyyf59vd9soso,toolu_014zLfBY3knvNeafh1UqMNGb,toolu_01VCxPECcExDgfHF8oLjp7jA]); [33] assistant(id=msg_01MvDZk8t7qrAe1kiZpq6Gxh, tool_uses=[toolu_01VfN742uyULWawXmKhEcDd4,toolu_01JzobFJ9n8na6MiBCDLRv79,toolu_015QyBonu53zNATbSHah4J1S,toolu_01FqvjT11Zcm6ZnhLy3b9ijV]); [34] user(tool_results=[toolu_01VfN742uyULWawXmKhEcDd4,toolu_01FqvjT11Zcm6ZnhLy3b9ijV,toolu_01JzobFJ9n8na6MiBCDLRv79,toolu_015QyBonu53zNATbSHah4J1S]); [35] assistant(id=msg_01W7Uaffjaujco3CRVB8aFz6, tool_uses=[toolu_01CrGJe4nCuLsxFKeZuL6HhB,toolu_01Y4XkDTeg1knmJ1GZTn3v9D,toolu_0124j3FvmhuBe1tZK3xb4yvZ,toolu_01X7E4J4b7LitPKftyEshcVH]); [36] user(tool_results=[toolu_01CrGJe4nCuLsxFKeZuL6HhB,toolu_01X7E4J4b7LitPKftyEshcVH,toolu_0124j3FvmhuBe1tZK3xb4yvZ,toolu_01Y4XkDTeg1knmJ1GZTn3v9D]); [37] assistant(id=msg_011Nu7gCv2o59KggY9j7bX3z, tool_uses=[toolu_01PYnK5PEW7mbDJK4qFtJAuh,toolu_01G771iZuwvTBzvmXwdsZQ2v,toolu_014LtGtTWEVsCfpkVAAcQosr,toolu_01J64YywQKF5vHM1sdCcT6x4…

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely related to excessive token consumption, and a potential fix could involve optimizing the code to reduce the number of requests made to the Claude API.

Guidance

  • Review the code to identify areas where unnecessary requests are being made to the Claude API, and optimize the code to reduce the number of requests.
  • Check the error messages for any clues about what might be causing the excessive token consumption, such as the EISDIR error which could indicate an issue with file system operations.
  • Investigate the ensureToolResultPairing function to see if it's contributing to the excessive token consumption.
  • Consider implementing rate limiting or caching to reduce the number of requests made to the Claude API.

Example

No specific code example can be provided without more context, but optimizing the code to reduce the number of requests made to the Claude API could involve using techniques such as batching or caching.

Notes

The provided error messages and code snippet are truncated, which makes it difficult to provide a more specific solution. Additionally, the issue may be related to a specific configuration or environment setting that is not provided.

Recommendation

Apply a workaround by optimizing the code to reduce the number of requests made to the Claude API, as the root cause of the issue is likely related to excessive token consumption.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Excessive token consumption increase with Claude 3.5 Sonnet [1 participants]