-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
status: Context line shows pre-compaction size instead of current context #72140
Copy link
Copy link
Open
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.staleMarked as stale due to inactivityMarked as stale due to inactivity
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug
After an auto-compaction,
/status(and the post-message status card) shows the pre-compaction context size on the "Context" line, not the current size.Example
then on the next status:
The 76k / 106k figures shown immediately after compaction are stale — they reflect what was in context right before compaction fired, not what's actually there now (which is the summary, ~a few hundred to a few thousand tokens).
This is misleading: users read "Context: 106k/200k (53%)" and think compaction didn't work.
Expected
The "Context" field should reflect the current post-compaction context size.
The pre-compaction peak is useful but belongs on the Compactions line as a delta, e.g.:
Repro
/compactor auto-compact./status— observe Context line still shows pre-compaction figure until the next user turn refreshes it.Notes