Skip to content

Conversation

@Sanyue0v0
Copy link

Add compactionThreshold config option (default 0.80) to control when context compaction triggers. Previously hardcoded at 80%, now users can adjust via supermemory.jsonc.

  • Add compactionThreshold to SupermemoryConfig interface
  • Add default value 0.80 in DEFAULTS
  • Export compactionThreshold in CONFIG
  • Pass threshold to createCompactionHook
  • Update README with config documentation

Add compactionThreshold config option (default 0.80) to control when
context compaction triggers. Previously hardcoded at 80%, now users
can adjust via supermemory.jsonc.

- Add compactionThreshold to SupermemoryConfig interface
- Add default value 0.80 in DEFAULTS
- Export compactionThreshold in CONFIG
- Pass threshold to createCompactionHook
- Update README with config documentation
Prevents silent failures when users enter invalid values like 80 instead
of 0.80, which would disable compaction and risk context overflow.
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.

1 participant