Fixed
- Critical bug in duration calculation ("Took" time in notifications)
- User text messages were not being detected in transcript parsing
GetLastUserTimestampnow correctly parses string content format- Duration now shows accurate time (e.g., "Took 5m" instead of "Took 2h 30m")
- Tool counting now accurate (prevents showing inflated counts like "Edited 32 files")
- Added custom JSON marshaling/unmarshaling for
MessageContentto handle both string and array content formats
Technical Details
- Fixed
pkg/jsonl/jsonl.go: AddedContentStringfield and customUnmarshalJSON/MarshalJSONmethods - User messages with
"content": "text"format now properly parsed (previously only array format worked) - All existing tests pass + added new tests for string content parsing
Full Changelog: v1.0.2...v1.0.3