Skip to content

Context progress bar not resetting after /clear command #5651

@catbilyeu

Description

@catbilyeu

Describe the bug

💡 Before filing, please check common issues:
https://block.github.io/goose/docs/troubleshooting

📦 To help us debug faster, attach your diagnostics zip if possible.
👉 How to capture it: https://block.github.io/goose/docs/troubleshooting/diagnostics-and-reporting/

A clear and concise description of what the bug is.


To Reproduce
Steps to reproduce the behavior:

  1. Start a Goose CLI session
  2. Send several messages to build up context usage (e.g., ask multiple questions)
  3. Observe the context progress bar showing token usage (e.g., Context: ●●●●●●●○○○ 70% (189053/272000 tokens))
  4. Type /clear to clear the chat context
  5. Observe that the context progress bar still shows the old percentage instead of resetting to 0%

Expected behavior
After running /clear, the context progress bar should reset to show 0% usage with all empty circles:
Context: ○○○○○○○○○○ 0% (0/272000 tokens)


Screenshots
Image


Please provide the following information

  • OS & Arch: macOS 26
  • Interface: CLI
  • Version: 1.13.0
  • Extensions enabled: chromedevtools, developer, computercontroller, todo
  • Provider & Model: OpenAI – gpt-5

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersp2Priority 2 - Medium

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions