Skip to content

Context doesn't match with compaction #441

Description

@buraktamturk

The side bar at the right shows context is 879k, the bottom bar also shows the same when over scrolled. But when I issue /compact command I get the following:

Requesting compaction...

Context Status:
• Messages: 1036 (active), 56181 (total history)
• Token usage: ~396k (estimate ~370k) / 976k (40.6%)
• Has summary: yes
• Compacting: no

📦 Compacting context (manual) — summarizing older messages in the background to stay within the context 
window.
The summary will be applied automatically when ready.

📦 Context compacted (manual) - older messages were summarized to stay within the context window.

Took 36s · before ~396,674 tokens · now ~23,244 tokens (2.4% of window) · saved ~373,430 tokens ·
summarized 1,026 messages · summary 11,371 chars · kept 8 recent messages live

and the stats are not updated (the same), and next prompt brings the stats on both places to "503k" on the next prompt.

I don't know which is broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    autonomous: likelyProbably hands-off: clearly worth fixing, agent can do it, minor judgment needed.bugSomething isn't workingpriority: mediumP2 - normal prioritytriage: fixed-pending-releaseFixed in code/committed; will close automatically on next release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions