This release includes 4 breaking changes for platform teams planning a safe upgrade.
✓ No known CVEs patched in this version
Topics
+14 more
Affected surfaces
Summary
AI summaryRemoved client‑side context truncation from OpenAICompatibleProvider.
Full changelog
Bug Fix
Removed client-side context truncation from the provider layer.
The OpenAICompatibleProvider applied a sliding-window truncation to conversation history — a hardcoded 20-message cap and a 100k-token "safety" limit layered on top of the model's own context window. In practice it fired on message count alone, dropping conversation messages at ~12k tokens (nowhere near the token limit) and silently corrupting history, mislabeled as "runaway cost" prevention. This broke setups whose real model context window bore no relation to those hardcoded assumptions.
The full conversation history is now sent to the provider, which owns its own context window.
Removed
OpenAICompatibleProvider.truncateHistory()and therequireNonEmptyToTruncateflagtruncateHistoryForOpenRouter/truncateHistoryForGeminiwrappers and their message/token constantsCLAUDE_MEM_{GEMINI,OPENROUTER}_MAX_CONTEXT_MESSAGES/_MAX_TOKENSsettings, defaults, and validation- Related tests, docs, and installer references
Merged in #3096. Verified: tsc clean, 2248 tests passing, build-and-sync clean.
Breaking Changes
- Removed `OpenAICompatibleProvider.truncateHistory()` method and the `requireNonEmptyToTruncate` flag
- Removed `truncateHistoryForOpenRouter` and `truncateHistoryForGemini` wrappers along with their message/token constants
- Removed environment/config settings `CLAUDE_MEM_{GEMINI,OPENROUTER}_MAX_CONTEXT_MESSAGES` and `_MAX_TOKENS` (defaults, validation)
- Related tests, documentation entries, and installer references have been deleted
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About claude-mem
A Claude Code plugin that automatically captures everything Claude does during your coding sessions, compresses it with AI (using Claude's agent-sdk), and injects relevant context back into future sessions.
Related context
Related tools
Earlier breaking changes
- v13.11.0 Retires the standalone `cloud-sync.mjs` daemon.
Beta — feedback welcome: [email protected]