-
Notifications
You must be signed in to change notification settings - Fork 66
Excessive CPU Usage in v2 / Repeatedly failing to parse Claude transcripts #1288
Copy link
Copy link
Open
Labels
Description
Since the v2 upgrade, wakatime has been using ~8% CPU on my 9950X. There is an instance of wakatime running every time I open or edit a file, and it seems it will attempt to parse claude transcripts repeatedly, but fail to do so. With 2 claude instances and vscode running, this spawns 3 wakatime instances, each trying to parse this data.
Environment:
- OS: Arch Linux
- Platform: x86_64
Logs:
This is spammed in the log a few thousand times:
{"level":"warn","now":"2026-03-29T01:18:51-04:00","caller":"ai/claude.go:176","func":"github.com/wakatime/wakatime-cli/pkg/ai.Claude.parseTranscript","message":"failed parsing claude transcript line from: "[claude file]": json: cannot unmarshal string into Go struct field claudeLogLine.toolUseResult of type ai.toolUseResult","version":"v2.0.0","os/arch":"linux/amd64","file":"[editor file]","time":1774761416.714,"plugin":"vscode/1.113.0 vscode-wakatime/30.0.0","lineno":5,"is_write":true}
Reactions are currently unavailable