Context size in sidebar not updated after /compact #3651

Open
opened 2026-02-16 17:41:00 -05:00 by yindo · 2 comments
Owner

Originally created by @Nindaleth on GitHub (Dec 18, 2025).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @Nindaleth on GitHub (Dec 18, 2025). Originally assigned to: @rekram1-node on GitHub. ### 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_
yindo added the bug label 2026-02-16 17:41:00 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 18, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #4548: Sidebar not updated immediately after /undo command (same pattern where sidebar shows stale state)

Both issues describe the same underlying root cause: the sidebar is not refreshed immediately after command execution. Feel free to ignore if your specific case differs.

@github-actions[bot] commented on GitHub (Dec 18, 2025): This issue might be a duplicate of existing issues. Please check: - #4548: Sidebar not updated immediately after /undo command (same pattern where sidebar shows stale state) Both issues describe the same underlying root cause: the sidebar is not refreshed immediately after command execution. Feel free to ignore if your specific case differs.
Author
Owner

@flatsponge commented on GitHub (Dec 25, 2025):

i fixed it and it works on linus in #5765 . not sure about other platforms since I do not have a mac...

@flatsponge commented on GitHub (Dec 25, 2025): i fixed it and it works on linus in #5765 . not sure about other platforms since I do not have a mac...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3651