[Bug] Context usage percentage displays 0% despite non-zero token consumption

Resolved 💬 3 comments Opened May 13, 2026 by cloudman6 Closed May 17, 2026

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.

View original on GitHub ↗

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