Repository navigation
feat: implement new compaction bar and content - #31395
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Collaborator
|
@jakehwll do you have any Figma to reference for the design change? |
jaaydenh
approved these changes
Oct 28, 2026
jakehwll
force-pushed
the
jakehwll/compaction-popover-1
branch
2 times, most recently
from
October 29, 2026 06:42
2e24bcd to
f466dfe
Compare
jakehwll
force-pushed
the
jakehwll/compaction-popover-1
branch
from
October 30, 2026 00:13
f466dfe to
89b0546
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First of a few PRs whilst we iterate on this design.
Makes context usage and the compaction threshold easier to read at a glance in the Agents context popover. Replaces the text-only usage summary with a progress bar, a compaction-threshold marker, and inline percentage and token counts, while retaining estimated-usage and unavailable states.
Warning colors now reflect proximity to compaction: the indicator and bar turn amber at 90% of the compaction threshold, or 90% of the context window when no threshold is available. The critical state remains at 95% of the context window. Adds Storybook coverage for usage states and warning boundaries, plus unit coverage for the shared threshold calculation.
Relevant Figma