claude-code - 💡(How to fix) Fix [Bug] Context usage percentage displays 0% despite non-zero token consumption [1 comments, 2 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#58861Fetched 2026-05-14 03:37:39
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/wanglei/.local/share/claude/versions/2.1.140 (expected in multi-process scenarios)\n at g16 (/$bunfs/root/src/entrypoints/cli.js:2672:2257)\n at RLH (/$bunfs/root/src/entrypoints/cli.js:2672:1337)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-13T12:56:40.267Z"},{"error":"SyntaxError: JSON Parse error: Unrecognized token '。'\n at <parse> (:0)\n at parse (unknown)\n at $$q (/$bunfs/root/src/entrypoints/cli.js:175:10088)\n at O (/$bunfs/root/src/entrypoints/cli.js:131:18457)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:177:1430)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5234:741)\n at map (native:1:11)\n at WP_ (/$bunfs/root/src/entrypoints/cli.js:5234:559)\n at pVK (/$bunfs/root/src/entrypoints/cli.js:9032:10590)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-13T13:08:51.728Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:121:13313)\n at emit (node:events:92:22)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:3321)\n at request (/$bunfs/root/src/entrypoints/cli.js:123:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-13T13:14:35.850Z"},{"error":"Error: VirtualMessageList: duplicate sibling keys (leaks DOM nodes via mapRemainingChildren overwrite): c306b5c4-bd72-4ec1-b139-000000000000-85b71c15-800e-4532-a9c7-eff84b7d8c01 ×2, 9b7ae11b-ff61-4d1d-9bc0-000000000000-85b71c15-800e-4532-a9c7-eff84b7d8c01 ×2, 94071351-b283-4b09-acbf-64a432b4f854-85b71c15-800e-4532-a9c7-eff84b7d8c01 ×2\n at VP3 (/$bunfs/root/src/entrypoints/cli.js:6581:9414)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:6581:860)\n at OM (/$bunfs/root/src/entrypoints/cli.js:491:30356)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:479:9137)\n at s$K (/$bunfs/root/src/entrypoints/cli.js:6581:852)\n at V$ (/$bunfs/root/src/entrypoints/cli.js:491:21159)\n at o3 (/$bunfs/root/src/entrypoints/cli.js:491:39937)\n at K2 (/$bunfs/root/src/entrypoints/cli.js:491:50753)\n at tsH (/$bunfs/root/src/entrypoints/cli.js:491:87821)\n at GyH (/$bunfs/root/src/entrypoints/cli.js:491:86782)","timestamp":"2026-05-13T23:44:51.739Z"},{"error":"Error: VirtualMe…

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/wanglei/.local/share/claude/versions/2.1.140 (expected in multi-process scenarios)\n    at g16 (/$bunfs/root/src/entrypoints/cli.js:2672:2257)\n    at RLH (/$bunfs/root/src/entrypoints/cli.js:2672:1337)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-13T12:56:40.267Z"},{"error":"SyntaxError: JSON Parse error: Unrecognized token '。'\n    at <parse> (:0)\n    at parse (unknown)\n    at $$q (/$bunfs/root/src/entrypoints/cli.js:175:10088)\n    at O (/$bunfs/root/src/entrypoints/cli.js:131:18457)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:177:1430)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5234:741)\n    at map (native:1:11)\n    at WP_ (/$bunfs/root/src/entrypoints/cli.js:5234:559)\n    at pVK (/$bunfs/root/src/entrypoints/cli.js:9032:10590)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-13T13:08:51.728Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:121:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:123:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-13T13:14:35.850Z"},{"error":"Error: VirtualMessageList: duplicate sibling keys (leaks DOM nodes via mapRemainingChildren overwrite): c306b5c4-bd72-4ec1-b139-000000000000-85b71c15-800e-4532-a9c7-eff84b7d8c01 ×2, 9b7ae11b-ff61-4d1d-9bc0-000000000000-85b71c15-800e-4532-a9c7-eff84b7d8c01 ×2, 94071351-b283-4b09-acbf-64a432b4f854-85b71c15-800e-4532-a9c7-eff84b7d8c01 ×2\n    at VP3 (/$bunfs/root/src/entrypoints/cli.js:6581:9414)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:6581:860)\n    at OM (/$bunfs/root/src/entrypoints/cli.js:491:30356)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:479:9137)\n    at s$K (/$bunfs/root/src/entrypoints/cli.js:6581:852)\n    at V$ (/$bunfs/root/src/entrypoints/cli.js:491:21159)\n    at o3 (/$bunfs/root/src/entrypoints/cli.js:491:39937)\n    at K2 (/$bunfs/root/src/entrypoints/cli.js:491:50753)\n    at tsH (/$bunfs/root/src/entrypoints/cli.js:491:87821)\n    at GyH (/$bunfs/root/src/entrypoints/cli.js:491:86782)","timestamp":"2026-05-13T23:44:51.739Z"},{"error":"Error: VirtualMe…
RAW_BUFFERClick to expand / collapse

Bug Description 0% 不合理吧? /context ⎿ Context Usage ⛁ ⛁ ⛁ ⛁ ⛁ ⛀ ⛀ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ Opus 4.7 (1M context) ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ claude-opus-4-7[1m] ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ 0/1m tokens (0%) ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ Estimated usage by category ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ System prompt: 9.3k tokens (0.9%) ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ System tools: 11.8k tokens (1.2%) ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Memory files: 8.5k tokens (0.8%) ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Skills: 2.8k tokens (0.3%) ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Messages: 37.3k tokens (3.7%) ⛶ Free space: 930.3k (93.0%)

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.140
  • Feedback ID: 1a068104-70f0-45d8-9597-4ec316bc3ba9

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/wanglei/.local/share/claude/versions/2.1.140 (expected in multi-process scenarios)\n    at g16 (/$bunfs/root/src/entrypoints/cli.js:2672:2257)\n    at RLH (/$bunfs/root/src/entrypoints/cli.js:2672:1337)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-13T12:56:40.267Z"},{"error":"SyntaxError: JSON Parse error: Unrecognized token '。'\n    at <parse> (:0)\n    at parse (unknown)\n    at $$q (/$bunfs/root/src/entrypoints/cli.js:175:10088)\n    at O (/$bunfs/root/src/entrypoints/cli.js:131:18457)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:177:1430)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5234:741)\n    at map (native:1:11)\n    at WP_ (/$bunfs/root/src/entrypoints/cli.js:5234:559)\n    at pVK (/$bunfs/root/src/entrypoints/cli.js:9032:10590)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-13T13:08:51.728Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:121:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:123:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-13T13:14:35.850Z"},{"error":"Error: VirtualMessageList: duplicate sibling keys (leaks DOM nodes via mapRemainingChildren overwrite): c306b5c4-bd72-4ec1-b139-000000000000-85b71c15-800e-4532-a9c7-eff84b7d8c01 ×2, 9b7ae11b-ff61-4d1d-9bc0-000000000000-85b71c15-800e-4532-a9c7-eff84b7d8c01 ×2, 94071351-b283-4b09-acbf-64a432b4f854-85b71c15-800e-4532-a9c7-eff84b7d8c01 ×2\n    at VP3 (/$bunfs/root/src/entrypoints/cli.js:6581:9414)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:6581:860)\n    at OM (/$bunfs/root/src/entrypoints/cli.js:491:30356)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:479:9137)\n    at s$K (/$bunfs/root/src/entrypoints/cli.js:6581:852)\n    at V$ (/$bunfs/root/src/entrypoints/cli.js:491:21159)\n    at o3 (/$bunfs/root/src/entrypoints/cli.js:491:39937)\n    at K2 (/$bunfs/root/src/entrypoints/cli.js:491:50753)\n    at tsH (/$bunfs/root/src/entrypoints/cli.js:491:87821)\n    at GyH (/$bunfs/root/src/entrypoints/cli.js:491:86782)","timestamp":"2026-05-13T23:44:51.739Z"},{"error":"Error: VirtualMe…

Note: Content was truncated.

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] Context usage percentage displays 0% despite non-zero token consumption [1 comments, 2 participants]