Skip to content

live-sessions: report Kimi Code context tokens and window - #1358

Merged
iamtoruk merged 1 commit into
mainfrom
feat/kimi-live-context
Sep 13, 2026
Merged

live-sessions: report Kimi Code context tokens and window#1358
iamtoruk merged 1 commit into
mainfrom
feat/kimi-live-context

Conversation

@iamtoruk

@iamtoruk iamtoruk commented Sep 13, 2026

Copy link
Copy Markdown
Member

The Kimi Code live row landed without a context ring because the window size was unknown. Kimi records both numbers itself: every llm.request carries maxTokens (1,048,576 for k3) and every turn ends with a token_counting.measured record holding the current context (664,620 on this machine, which Kimi's own footer shows as 649k/1M). The collector now reads both from the tail it already scans for the model, and nulls both when either is missing so the app never draws a ring without a window.

18 live-session tests pass, tsc clean, verified against the real Kimi session store.

@iamtoruk
iamtoruk merged commit 65beae9 into main Sep 13, 2026
20 checks passed
@iamtoruk
iamtoruk deleted the feat/kimi-live-context branch September 13, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant