[Feature Request] Implement token consumption monitoring and logging

Resolved 💬 3 comments Opened Apr 6, 2026 by hubeiqiao Closed Apr 10, 2026

Bug Description
token consumption quickly

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.92
  • Feedback ID: 2178da15-3fe0-4828-8ef5-3fb14fe71517

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/joehu/.local/share/claude/versions/2.1.92 (expected in multi-process scenarios)\n    at im_ (/$bunfs/root/src/entrypoints/cli.js:1884:2153)\n    at An6 (/$bunfs/root/src/entrypoints/cli.js:1884:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T15:27:59.234Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:13351)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:112:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async mO5 (/$bunfs/root/src/entrypoints/cli.js:5946:8103)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5946:9405)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T15:28:07.353Z"},{"error":"MaxFileReadTokenExceededError: File content (30827 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at d$7 (/$bunfs/root/src/entrypoints/cli.js:4294:13161)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T15:30:34.503Z"},{"error":"McpToolCallError: Element with uid 3_46 no longer exists on the page.\nCause: Protocol error (DOM.resolveNode): No node with given id found\n    at Ov9 (/$bunfs/root/src/entrypoints/cli.js:1566:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T15:56:11.266Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3447)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T17:13:24.521Z"}]

View original on GitHub ↗

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