Skip to content

Conversation

@ariane-emory
Copy link
Owner

DUMMY PR, IGNORE.

- Add experimental.context_compaction_threshold config option (10-100% range)
- Modify SessionCompaction.isOverflow to be async and use configurable threshold
- Default threshold of 100% maintains current behavior for backward compatibility
- Add debug logging for threshold calculations
- Remove unused PROMPT_COMPACTION import from system.ts

Allows users to configure at what percentage of usable context space
automatic compaction will be triggered via the experimental setting.
@github-actions
Copy link

github-actions bot commented Jan 8, 2026

Hey! Your PR title Feat/global compaction threshold doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@ariane-emory ariane-emory changed the title Feat/global compaction threshold feat: global compaction threshold Jan 8, 2026
@github-actions
Copy link

github-actions bot commented Jan 8, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants