Skip to content

feat: implement new compaction bar and content - #31395

Merged
jakehwll merged 1 commit into
mainfrom
jakehwll/compaction-popover-1
Oct 30, 2026
Merged

jakehwll merged 1 commit into
mainfrom
jakehwll/compaction-popover-1

Conversation

@jakehwll

@jakehwll jakehwll commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

🤖 This PR was modified by Coder Agents on behalf of Jake Howell.

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

Before After
Previous context-usage popover Updated context-usage popover with a progress bar and compaction marker

@jakehwll
jakehwll marked this pull request as ready for review October 28, 2026 03:21
@jakehwll
jakehwll requested a review from a team as a code owner October 28, 2026 03:21
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T03:24:00.892458Z 36008c4 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jaaydenh

Copy link
Copy Markdown
Collaborator

@jakehwll do you have any Figma to reference for the design change?

@jakehwll
jakehwll added this pull request to stack #31398 October 28, 2026 05:32
@jakehwll
jakehwll force-pushed the jakehwll/compaction-popover-1 branch 2 times, most recently from 2e24bcd to f466dfe Compare October 29, 2026 06:42
@jakehwll
jakehwll force-pushed the jakehwll/compaction-popover-1 branch from f466dfe to 89b0546 Compare October 30, 2026 00:13
@jakehwll
jakehwll merged commit d85ce55 into main Oct 30, 2026
25 checks passed
@jakehwll
jakehwll deleted the jakehwll/compaction-popover-1 branch October 30, 2026 01:02
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants