Make compaction threshold an optional runtime override - #844
Merged
Merged
Conversation
Default omits trigger so the runtime derives 80% of the model context window; toggling on writes a 50000-token input_tokens trigger and shows the editable input. Co-authored-by: Cursor <cursoragent@cursor.com>
govindavashishtha
requested review from
kumarsks619,
qaifi-tf,
sajal-truefoundry,
sayan-truefoundry and
vinit-truefoundry
as code owners
September 22, 2026 11:25
🦋 Changeset detectedLatest commit: 3c09e99 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…. The default mode is now Auto, which derives the threshold from the model context window, while Custom allows manual input with a default of 50,000 tokens. Update related tests to reflect these changes.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 3d98bfe. Configure here.
harshil-2096
approved these changes
Sep 23, 2026
govindavashishtha
enabled auto-merge (squash)
September 23, 2026 04:25
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
triggerso the runtime derives ~80% of the model context window).trigger: { type: 'input_tokens', value: 50000 }and shows an editable number input to the left of the switch; turning it off dropstriggerentirely.Test plan
triggertriggeris removed from configpnpm --filter @truefoundry/trueforge-ui exec vitest run test/atoms/draft/AgentConfigEditors.test.tsxMade with Cursor