From 378e29308ed72b987be3a5ece3cc86c1d4ed51f3 Mon Sep 17 00:00:00 2001 From: indifferentketchup Date: Mon, 8 Jun 2026 01:27:31 +0000 Subject: [PATCH] fix: add cache_tokens/reasoning_tokens to Message constructors in useSessionStream --- apps/web/src/hooks/useSessionStream.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/src/hooks/useSessionStream.ts b/apps/web/src/hooks/useSessionStream.ts index 32ab9d3..cb52cf8 100644 --- a/apps/web/src/hooks/useSessionStream.ts +++ b/apps/web/src/hooks/useSessionStream.ts @@ -40,6 +40,8 @@ function applyFrame(state: State, frame: WsFrame): State { tokens_used: null, ctx_used: null, ctx_max: null, + cache_tokens: null, + reasoning_tokens: null, model: null, started_at: null, finished_at: null, @@ -106,6 +108,8 @@ function applyFrame(state: State, frame: WsFrame): State { tokens_used: null, ctx_used: null, ctx_max: null, + cache_tokens: null, + reasoning_tokens: null, model: null, started_at: null, finished_at: null,