Skip to content

fix(pinned): restore latest context usage#185

Open
H-TTTTT wants to merge 1 commit into
grinev:mainfrom
H-TTTTT:fix/latest-context-usage
Open

fix(pinned): restore latest context usage#185
H-TTTTT wants to merge 1 commit into
grinev:mainfrom
H-TTTTT:fix/latest-context-usage

Conversation

@H-TTTTT

@H-TTTTT H-TTTTT commented Jul 11, 2026

Copy link
Copy Markdown

Summary

  • restore pinned context usage from the latest non-summary, non-zero assistant measurement by creation time
  • prevent stale pre-compaction peaks from being shown after session restore while preserving total session cost
  • add regression coverage for out-of-order history, summary messages, and trailing zero-token messages

Testing

  • npm run lint
  • npm run build
  • BOT_LOCALE=en npm test (122 test files, 1089 tests)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant