multica/packages
Jiayuan Zhang 239dc5a7c6 fix(agent): report accurate compaction metrics and add run-log observability
Compaction was reporting only 189 tokens removed for 6 messages because
Phase 1 (tool result pruning) hollowed out messages before Phase 2
(summary compaction) measured them. Now captures pre-pruning token count
and reports combined savings from both phases.

Also threads RunLog through SessionManager to emit tool_result_pruning
and compaction_detail events, and adds preflight pruning stats logging.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 15:42:04 +08:00
..
core fix(agent): report accurate compaction metrics and add run-log observability 2026-02-15 15:42:04 +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