Skip to content

v1.0.3 - Duration Calculation Fix

Choose a tag to compare

@github-actions github-actions released this 23 Oct 21:04
· 438 commits to main since this release

Fixed

  • Critical bug in duration calculation ("Took" time in notifications)
    • User text messages were not being detected in transcript parsing
    • GetLastUserTimestamp now 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 MessageContent to handle both string and array content formats

Technical Details

  • Fixed pkg/jsonl/jsonl.go: Added ContentString field and custom UnmarshalJSON/MarshalJSON methods
  • 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