Skip to content

feat(site/src/pages/AgentsPage): show model context window in compaction settings - #29445

Merged
jakehwll merged 3 commits into
mainfrom
jakehwll/CODAGT-936-compaction-context-window
Sep 17, 2026
Merged

jakehwll merged 3 commits into
mainfrom
jakehwll/CODAGT-936-compaction-context-window

Conversation

@jakehwll

@jakehwll jakehwll commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

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

Closes CODAGT-936.

Adds a Context column to the compaction settings table showing each model's compaction window (e.g. 128K tokens) and the token count the effective threshold resolves to (Compacts at ~102K). The trigger point follows the typed draft before saving, so the threshold can be set without remembering the limit. Hidden at 100% (never auto-compacts); shows Unknown when no limit is known.

The window mirrors the backend rule in generation_preparer.go: when the organization routes compaction through an override model, the smaller of the chat and override windows is used. The page fetches per-org model overrides (readable by org members) to resolve this; a failed request falls back to the chat model's own window.

image

@linear-code

linear-code Bot commented Sep 17, 2026

Copy link
Copy Markdown

CODAGT-936

@jakehwll
jakehwll marked this pull request as ready for review September 17, 2026 01:57
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 17, 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-09-17T02:01:12.242845Z feb8254 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.

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

Copy link
Copy Markdown

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.

Reviewed commit: feb8254b95

ℹ️ 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".

Comment thread site/src/pages/AgentsPage/components/UserCompactionThresholdSettings.stories.tsx Outdated
Comment thread site/src/pages/AgentsPage/components/UserCompactionThresholdSettings.stories.tsx Outdated
@jakehwll jakehwll changed the title feat(site/src/pages/AgentsPage/components): show model context window in compaction settings feat(site/src/pages/AgentsPage): show model context window in compaction settings Sep 17, 2026

@DanielleMaywood DanielleMaywood left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not a huge fan of the design but I'm not sure what can be done to save it in its current state 💀

@jakehwll
jakehwll merged commit 48f90dd into main Sep 17, 2026
30 checks passed
@jakehwll
jakehwll deleted the jakehwll/CODAGT-936-compaction-context-window branch September 17, 2026 09:23
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 17, 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