[Bug] /clear command fails to reset session token buffer

Resolved 💬 9 comments Opened Oct 10, 2025 by JeffeSouza Closed Jan 12, 2026

Bug Description
command /clear not clear full session
the new chat start with 45k tokens in buffer and not possible clear he

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.0.13
  • Feedback ID: 5ac59957-0d13-4c92-bee3-6f254e1b3b12
/clear

⎿ (no content)

/context

⎿ Context Usage
⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛀ ⛁ ⛀ claude-sonnet-4-5-20250929 · 62k/200k tokens (31%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ System prompt: 2.2k tokens (1.1%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ System tools: 12.1k tokens (6.0%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Custom agents: 125 tokens (0.1%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Memory files: 2.5k tokens (1.2%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Messages: 91 tokens (0.0%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛝ ⛝ ⛝ ⛶ Free space: 138k (69.0%)
⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ Autocompact buffer: 45.0k tokens (22.5%)
⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝

Custom agents · /agents
└ gemini (User): 125 tokens

Memory files · /memory
└ Project 2.5k tokens
(C:\Users\jd-co\OneDrive\Documentos\Projetos\NewDub\CLAUDE.md):

SlashCommand Tool · 0 commands
└ Total: 998 tokens

View original on GitHub ↗

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