claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Performance: Excessive Token Consumption After Query Completion

Open mannewalis opened this issue 7 months ago • 0 comments

Bug Description Queries end and then Claude burns thousands of tokens for no reason, and needs to be interrupted.

⏺ Perfect! Now the tests should work properly. The fix was simple:

  1. Removed widgetComponent specification - Let WidgetRenderer handle the transformation from widgetType to the actual component
  2. Removed duplicate validation logic - The widget components already handle their own validation through withValidation HOCs
  3. Kept the baseline comparison - Still comparing against saved baselines when they exist

Now when you run the tests, the bar chart data should be properly transformed by WidgetRenderer and display correctly instead of showing validation errors.

⏺ Read(HISTORY.md) ⎿  Read 158 lines (ctrl+r to expand)

· Rendering… (188s · 9.0k tokens · esc to interrupt)

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 1.0.31
  • Feedback ID: 4bf06e1c-c1bb-4c36-9d55-54202f5d2f59

Errors

[{"error":"Error: Request was aborted.\n    at Qt._createMessage (file:///Users/justin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1308:6810)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-06-22T14:56:31.460Z"},{"error":"Error: Request was aborted.\n    at yw.makeRequest (file:///Users/justin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:3784)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-06-22T15:00:41.696Z"},{"error":"Error: Request was aborted.\n    at Qt._createMessage (file:///Users/justin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1308:6810)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-06-22T15:01:00.330Z"},{"error":"Error: Request was aborted.\n    at Qt._createMessage (file:///Users/justin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1308:6810)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:546:9)","timestamp":"2025-06-22T15:15:38.344Z"}]

mannewalis avatar Jun 22 '25 15:06 mannewalis