Skip to content

menubar: cap unchanged-refresh skips at five minutes and watch the Kimi Code store - #1356

Merged
iamtoruk merged 1 commit into
mainfrom
fix/menubar-change-guard-cap
Sep 13, 2026
Merged

iamtoruk merged 1 commit into
mainfrom
fix/menubar-change-guard-cap

Conversation

@iamtoruk

@iamtoruk iamtoruk commented Sep 13, 2026

Copy link
Copy Markdown
Member

Found by running the app from a shell: it logged "skipping unchanged background usage refresh" on every 30-second tick for the whole time two sessions were writing, so the badge, the dock cards and the live-session rows sat on a payload from 25 minutes earlier. UsageDataChangeGuard stats directories, so appends to an existing transcript never change its snapshot, and it honoured that "unchanged" verdict for 30 minutes. It also watched ~/.kimi/sessions but not the Kimi Code store at ~/.kimi-code.

Two changes: the skip ceiling drops to five minutes, matching the resident serve child's own output-memo cap so the refresh it forces is a memo hit when nothing changed, and ~/.kimi-code/sessions joins the watched roots. 637 Swift tests pass.

@iamtoruk
iamtoruk merged commit 0800471 into main Sep 13, 2026
11 checks passed
@iamtoruk
iamtoruk deleted the fix/menubar-change-guard-cap branch September 13, 2026 20:24
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