github mksglu/context-mode v1.0.153

3 hours ago

v1.0.153 — ctx_stats UX cleanup

Hotfix following v1.0.152 (~1 hour ago).

Removed

## Observability machine-readable block in ctx_stats output. The cache.hit_rate / index.total_chunks / index.total_sources / index.last_indexed_at footer was bleeding low-level diagnostics into the curated 5-section narrative report. Users saw an ungrouped block after the storytelling sections and asked "what is this?" — clear signal it didn't belong in the human-facing report.

The underlying state is still available:

  • ContentStore.getIndexState() API unchanged — useful for /ctx-doctor or future targeted surfaces.
  • report.cache.hit_rate still computed on the AnalyticsEngine report — just not rendered.

Verification

  • renderObservabilityBlock helper deleted + both call sites removed in src/session/analytics.ts.
  • Regression guard added: formatReport asserted to NEVER emit ## Observability on either path (narrative or legacy), regardless of indexState.
  • Grep across src/ hooks/ scripts/ for any Observability artifact → 0 matches.
  • Typecheck clean, full tests/core/ suite 920/922 (2 pre-existing unrelated env-cascade flakes).

Upgrade

/context-mode:ctx-upgrade
# then restart your session

ctx_stats output now ends cleanly at the v{VERSION} footer line — no machine-readable trailer.

Full changelog

v1.0.152...v1.0.153

Don't miss a new context-mode release

NewReleases is sending notifications on new releases.