Add a compactions row to the /smart-compact overlay counting the
session's persisted compaction entries via ctx.sessionManager, so the
number stays correct across resume and restart. An in-memory
session_compact counter remains as the fallback where sessionManager
is unavailable.