SplashGUI

Status: cache lookups read the schema-8 name (probe_hashed_blocks), old path kept as fallback

Engine 1.6.0 /status is schema 8; cache.lookups was removed (the release notes'
'two fields removed' — the other removed field is read nowhere). One-line decode
fix; harness NOT re-run (app mid-UAT, change is a decoder fallback with no
harness coverage — run with the next batch).

eb2fdefa615b2cbae922ddf727fa699113d89a42
cjosie <administrator@josie-c.com> · 2026-11-10T17:32 · browse files at this commit

parents: 7a0231e

diff --git a/Sources/SplashGUI/Core/SplashClient.swift b/Sources/SplashGUI/Core/SplashClient.swift
index 0223822..851c473 100644
--- a/Sources/SplashGUI/Core/SplashClient.swift
+++ b/Sources/SplashGUI/Core/SplashClient.swift
@@ -47,7 +47,9 @@ struct StatusSnapshot {
     var itlP50: Double? { number("metrics", "itl_ms", "p50") }
     var itlP95: Double? { number("metrics", "itl_ms", "p95") }
     var cacheHitRate: Double? { number("cache", "hit_rate") }
-    var cacheLookups: Int? { int("cache", "lookups") }
+    // Schema 8 (engine 1.6.0) renamed the lookup counter to probe_hashed_blocks; the old
+    // path stays as the fallback for engines that still emit it.
+    var cacheLookups: Int? { int("cache", "probe_hashed_blocks") ?? int("cache", "lookups") }
     var reusedTokens: Int? { int("cache", "reused_tokens") }
     var kvPagesActive: Int? { int("kv", "pages_active") }
     var kvBlockTokens: Int? { int("kv", "block_tokens") }