Skip to content

Context size in sidebar not updated after /compact #5760

@Nindaleth

Description

@Nindaleth

Description

There's a cosmetic issue with manual session compaction. Might be similar underlying cause like in #4548 (in both the sidebar is not updated immediately to match results of the just finished user command).

On the following user message the context in sidebar is refreshed and again matches reality/expectations.

OpenCode version

1.0.166

Steps to reproduce

  1. Hit context limit where automatic compaction will not happen... or just stop even before the context is exhausted
  2. Run the /compact command
  3. Sidebar context size is stale, shows pre-compaction number
  4. Send the next user message
  5. Sidebar context size is eventually refreshed and reflects the current state

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions