codeburn
codeburn copied to clipboard
Kimi Code usage is missing for managed workspaces (`wm_*`)
What happened
CodeBurn skips Kimi Code sessions under sessions/wm_*/, so valid usage records in those sessions are missing from reports. In a synthetic reproduction, the CLI reports 0 calls from a wm_* workspace and 1 call from a wd_* workspace containing the same wire events.
Kimi Code documents wm_<uuid> for managed workspaces and wd_<slug>_<hash> for implicit workspaces. The CodeBurn discovery filter currently accepts only wd_. See Kimi Code's session storage documentation.
What I expected
CodeBurn should discover both workspace layouts and count the same usage fields for either one.
Environment
- CodeBurn:
0.9.28, reproduced onmainat40d5880 - Provider: Kimi Code (
kimicode) - OS: the workspace filter is platform-independent
Steps to reproduce
- Set
KIMI_CODE_HOMEto an empty temporary directory. - Save the synthetic JSONL below to
sessions/wm_00000000-0000-4000-8000-000000000001/session_fixture/agents/main/wire.jsonlunder that directory. - Run
codeburn --timezone UTC status --provider kimicode --day 2026-01-01 --format menubar-json --no-optimize --no-timeline.current.callsis0. Rename the fixture's workspace directory towd_example_0123456789aband rerun.current.callsis1, with 100 input, 20 output, and 30 cache-read tokens.
{"type":"llm.request","model":"kimi-k3","modelAlias":"fixture","turnStep":"0.1","time":"2026-01-01T12:00:00Z"}
{"type":"usage.record","model":"fixture","usage":{"inputOther":100,"output":20,"inputCacheRead":30,"inputCacheCreation":0},"time":"2026-01-01T12:00:01Z"}