Skip to content

Conversation

@guidedways
Copy link

Summary

  • keep ConversationHistory totals when we rebuild history during /compact
  • reset only the last-turn usage and emit a fresh TokenCount so the footer reflects the cleared context
  • add a unit test guarding token-info preservation

Testing

  • just fmt
  • cargo test -p codex-tui

Fixes #4648

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@guidedways guidedways force-pushed the fix/compact-token-totals branch from fa2502d to 790c9a6 Compare October 24, 2025 09:52
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.

/compact doesn't update the UI's context value, unless you run it twice

1 participant