multica/packages
yushen b13d40c6da fix(agent): increase token estimation safety margins
- ESTIMATION_SAFETY_MARGIN: 1.2 → 1.5 (50% buffer covers CJK text)
- estimateSystemPromptTokens: /3 → /2 (conservative for mixed content)

This makes the 80% compaction trigger fire earlier, reducing the gap
between estimated and actual token counts that caused overflow errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 14:43:43 +08:00
..
core fix(agent): increase token estimation safety margins 2026-02-12 14:43:43 +08:00
hooks refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
sdk refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
store refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
types refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
ui merge: integrate origin/main into feat/onboarding-check 2026-02-12 11:16:49 +08:00
utils refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00