[Bug] Status line displays autocompact buffer percentage instead of actual context usage

Resolved 💬 4 comments Opened Dec 11, 2025 by james-wang-sage Closed Feb 14, 2026

Bug Description
Title: Status line context percentage doesn't match /context command

Description:
After running /new to start a fresh conversation, the status line shows a context usage
percentage that doesn't match what /context reports.

Expected behavior:
Status line context percentage should match /context total usage (both should show ~48%).

Actual behavior:

  • /context reports: 48% (96k/200k tokens)
  • Status line shows: 23% 🧠

Root cause hypothesis:
The status line value (23%) closely matches the "Autocompact buffer" value (22.5%) shown in
/context. The status line may be accidentally displaying the autocompact buffer percentage
instead of actual context usage.

Steps to reproduce:

  1. Start Claude Code in a project with CLAUDE.md files and MCP servers configured
  2. Run /new to start fresh conversation
  3. Compare status line percentage with /context output

Environment:

  • Claude Code version: 2.0.64+ (when status line context was added)
  • Model: claude-opus-4-5-20251101
  • OS: macOS (Darwin 24.6.0)

Evidence from /context:
Total: 96k/200k tokens (48%)
Autocompact buffer: 45.0k tokens (22.5%) ← matches status line
Status line shows: 23% ← should show 48%

Environment Info

  • Platform: darwin
  • Terminal: intellij
  • Version: 2.0.65
  • Feedback ID: b496dcc6-fc1e-4116-becd-5b117b158640

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jameswang/.local/share/claude/versions/2.0.65 (expected in multi-process scenarios)\n    at fjB (/$bunfs/root/claude:2597:1618)\n    at ZAA (/$bunfs/root/claude:2597:1296)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-11T07:05:05.545Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jameswang/.local/share/claude/versions/2.0.62 (expected in multi-process scenarios)\n    at fjB (/$bunfs/root/claude:2597:1618)\n    at XAA (/$bunfs/root/claude:2595:35624)\n    at async LAA (/$bunfs/root/claude:2597:3428)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-11T07:05:05.545Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jameswang/.local/share/claude/versions/2.0.53 (expected in multi-process scenarios)\n    at fjB (/$bunfs/root/claude:2597:1618)\n    at XAA (/$bunfs/root/claude:2595:35624)\n    at async LAA (/$bunfs/root/claude:2597:3428)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-11T07:05:05.583Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jameswang/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at fjB (/$bunfs/root/claude:2597:1618)\n    at XAA (/$bunfs/root/claude:2595:35624)\n    at async LAA (/$bunfs/root/claude:2597:3428)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-11T07:05:05.646Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jameswang/.local/share/claude/versions/2.0.64 (expected in multi-process scenarios)\n    at fjB (/$bunfs/root/claude:2597:1618)\n    at XAA (/$bunfs/root/claude:2595:35624)\n    at async LAA (/$bunfs/root/claude:2597:3428)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-11T07:05:05.652Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jameswang/.local/share/claude/versions/2.0.61 (expected in multi-process scenarios)\n    at fjB (/$bunfs/root/claude:2597:1618)\n    at XAA (/$bunfs/root/claude:2595:35624)\n    at async LAA (/$bunfs/root/claude:2597:3428)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-11T07:05:05.656Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jameswang/.local/share/claude/versions/2.0.59 (expected in multi-process scenarios)\n    at fjB (/$bunfs/root/claude:2597:1618)\n    at XAA (/$bunfs/root/claude:2595:35624)\n    at async LAA (/$bunfs/root/claude:2597:3428)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-11T07:05:05.663Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jameswang/.local/share/claude/versions/2.0.50 (expected in multi-process scenarios)\n    at fjB (/$bunfs/root/claude:2597:1618)\n    at XAA (/$bunfs/root/claude:2595:35624)\n    at async LAA (/$bunfs/root/claude:2597:3428)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-11T07:05:05.672Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jameswang/.local/share/claude/versions/2.0.56 (expected in multi-process scenarios)\n    at fjB (/$bunfs/root/claude:2597:1618)\n    at XAA (/$bunfs/root/claude:2595:35624)\n    at async LAA (/$bunfs/root/claude:2597:3428)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-11T07:05:05.693Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jameswang/.local/share/claude/versions/2.0.58 (expec

Note: Error logs were truncated.

View original on GitHub ↗

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