From e60acf9a65e91b8b9c6d1b9ceb1f75dc52e4f5f6 Mon Sep 17 00:00:00 2001 From: Justin Lee Date: Mon, 8 Jun 2026 12:30:01 +0800 Subject: [PATCH] fix: replace "server-managed" cache jargon with plain copy (#45) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Codex (server-managed cache) sessions showed engineering jargon that non-technical users couldn't parse: the gap tooltip read "Server cache (retention varies)" and the session-card cache row title read "Server-managed cache · last turn". Neither conveyed what users actually need to know — that the cache is automatic and there's nothing to act on. Replace both with plain "Cached automatically". The ctx bar already visualizes cache hit ratio (cyan cache-read segment + "cache:N%" label) on every turn's visible surface, so the tooltip doesn't need to repeat the numbers — it only needs to drop the jargon. - entry-rendering.js: gap tooltip (non-ephemeral branch) → "Cached automatically" - miller-columns.js: session-card cache row title → "Cached automatically · last turn" Claude (ephemeral-ttl) path is untouched — only the else branch changed. Topbar cache wording (settings.js) is intentionally deferred: it's a global display with no per-session meaning, which has no value in multi-account / multi-provider setups. Refs #45 Co-Authored-By: Claude Opus 4.8 --- public/entry-rendering.js | 2 +- public/miller-columns.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/entry-rendering.js b/public/entry-rendering.js index 27f126f..7a396ff 100644 --- a/public/entry-rendering.js +++ b/public/entry-rendering.js @@ -345,7 +345,7 @@ function addEntry(e) { const cacheMode = typeof getCacheMode === 'function' ? getCacheMode(e.provider || 'anthropic') : 'ephemeral-ttl'; gapTitle = cacheMode === 'ephemeral-ttl' ? (gapMs < 5 * 60000 ? 'Cache likely warm (< 5m)' : gapMs < 60 * 60000 ? 'Default cache expired (5m–1h)' : 'All cache expired (> 1h)') - : 'Server cache (retention varies)'; + : 'Cached automatically'; } } diff --git a/public/miller-columns.js b/public/miller-columns.js index 3b04d0d..9ccb09d 100644 --- a/public/miller-columns.js +++ b/public/miller-columns.js @@ -1481,7 +1481,7 @@ function renderSessionItem(sess, sid) { const tokK = sess.latestCacheReadTokens >= 1000 ? Math.round(sess.latestCacheReadTokens / 1000) + 'K' : String(sess.latestCacheReadTokens); - cacheRowHtml = '
' + + cacheRowHtml = '
' + 'cache ' + pct + '% hit · ' + tokK + ' tok
'; } const isOnline = getStatusClass(sid) !== 'sdot-off';