multica/packages
Jiayuan Zhang fbb0b11c6e fix(compaction): fix system prompt token estimation and reduce safety margin
- estimateSystemPromptTokens now uses estimateTokens() (chars/4) instead
  of chars/2, eliminating the 2x overestimate that caused pre-flight
  compaction to fire on every LLM call at small context windows
- ESTIMATION_SAFETY_MARGIN reduced from 1.5 to 1.2, increasing usable
  context from ~53% to ~73% before compaction triggers

At 200k context, effective usable tokens before compaction improved from
~86k to ~120k message tokens (39% increase).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 21:37:09 +08:00
..
core fix(compaction): fix system prompt token estimation and reduce safety margin 2026-02-15 21:37:09 +08:00
hooks feat(utils): unify encrypted Device ID across all platforms 2026-02-13 17:34:23 +08:00
sdk fix(agent): report accurate compaction metrics and add run-log observability 2026-02-15 15:42:04 +08:00
store feat(core): add message source tracking and persistence 2026-02-12 18:45:15 +08:00
types feat(types): add AuthUser type for auth integration 2026-02-13 12:24:43 +08:00
ui fix(ui): remove Cmd+B sidebar toggle shortcut 2026-02-15 14:18:49 +08:00
utils feat(utils): add SMC_DATA_DIR env var to override root data directory 2026-02-15 00:39:13 +08:00