Skip to content

Change default compression threshold#12306

Merged
scidomino merged 1 commit intomainfrom
tomm_token_limit
Oct 30, 2025
Merged

Change default compression threshold#12306
scidomino merged 1 commit intomainfrom
tomm_token_limit

Conversation

@scidomino
Copy link
Copy Markdown
Collaborator

@scidomino scidomino commented Oct 30, 2025

Summary

Reduce default compression threshold from 0.7 to 0.2.

Details

This is being done to reduce resource usage and avoid the performance drops associated with larger context sizes.

Related Issues

For https://github.com/google-gemini/maintainers-gemini-cli/issues/973

How to Validate

try to at-include @packages/core/ and verify that it compresses after the next message.

Pre-Merge Checklist

  • Updated relevant documentation and README (if needed)
  • Added/updated tests (if needed)
  • Noted breaking changes (if any)
  • Validated on required platforms/methods:
    • MacOS
      • npm run
      • npx
      • Docker
      • Podman
      • Seatbelt
    • Windows
      • npm run
      • npx
      • Docker
    • Linux
      • npm run
      • npx
      • Docker

@scidomino scidomino changed the title Reduce max token limit to 200k. Reduce max token limit to 200k Oct 30, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 30, 2025

Size Change: -49 B (0%)

Total Size: 20.3 MB

ℹ️ View Unchanged
Filename Size Change
./bundle/gemini.js 20.3 MB -49 B (0%)
./bundle/sandbox-macos-permissive-closed.sb 1.03 kB 0 B
./bundle/sandbox-macos-permissive-open.sb 890 B 0 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB 0 B
./bundle/sandbox-macos-restrictive-closed.sb 3.29 kB 0 B
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB 0 B
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB 0 B

compressed-size-action

@scidomino scidomino marked this pull request as ready for review October 30, 2025 19:14
@scidomino scidomino requested a review from a team as a code owner October 30, 2025 19:14
@scidomino scidomino closed this Oct 30, 2025
@scidomino scidomino reopened this Oct 30, 2025
@scidomino scidomino changed the title Reduce max token limit to 200k Change default compression threshold Oct 30, 2025
Copy link
Copy Markdown
Contributor

@abhipatel12 abhipatel12 left a comment

Choose a reason for hiding this comment

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

LGTM

@scidomino scidomino added this pull request to the merge queue Oct 30, 2025
Merged via the queue into main with commit 68afb72 Oct 30, 2025
27 of 28 checks passed
@scidomino scidomino deleted the tomm_token_limit branch October 30, 2025 20:52
@mattKorwel
Copy link
Copy Markdown
Collaborator

/patch preview

@github-actions
Copy link
Copy Markdown

Patch workflow(s) dispatched successfully!

📋 Details:

  • Channels: preview
  • Commit: 68afb7200e06507056b3321f9f1d9056ba95da45
  • Workflows Created: 1

🔗 Track Progress:

github-actions Bot pushed a commit that referenced this pull request Oct 30, 2025
@github-actions
Copy link
Copy Markdown

🚀 Patch PR Created!

📋 Patch Details:

📝 Next Steps:

  1. Review and approve the hotfix PR: #12327
  2. Once merged, the patch release will automatically trigger
  3. You'll receive updates here when the release completes

🔗 Track Progress:

@github-actions
Copy link
Copy Markdown

🚀 Patch Release Started!

📋 Release Details:

  • Environment: prod
  • Channel: preview → publishing to npm tag preview
  • Version: v0.12.0-preview.3
  • Hotfix PR: Merged ✅
  • Release Branch: release/v0.12.0-preview.3-pr-12306

⏳ Status: The patch release is now running. You'll receive another update when it completes.

🔗 Track Progress:

@github-actions
Copy link
Copy Markdown

Patch Release Complete!

📦 Release Details:

🎉 Status: Your patch has been successfully released and published to npm!

📝 What's Available:

🔗 Links:

@scidomino
Copy link
Copy Markdown
Collaborator Author

/patch stable

@github-actions
Copy link
Copy Markdown

Patch workflow(s) dispatched successfully!

📋 Details:

  • Channels: stable
  • Commit: 68afb7200e06507056b3321f9f1d9056ba95da45
  • Workflows Created: 1

🔗 Track Progress:

github-actions Bot pushed a commit that referenced this pull request Oct 31, 2025
# Conflicts:
#	packages/core/src/services/chatCompressionService.ts
@github-actions
Copy link
Copy Markdown

🚀 Patch PR Created!

📋 Patch Details:

📝 Next Steps:

  1. ⚠️ Resolve conflicts in the hotfix PR first: #12328
  2. Test your changes after resolving conflicts
  3. Once merged, the patch release will automatically trigger
  4. You'll receive updates here when the release completes

🔗 Track Progress:

cocosheng-g pushed a commit that referenced this pull request May 6, 2026
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.

3 participants