github 777genius/claude-notifications-go v1.0.3
v1.0.3 - Duration Calculation Fix

latest releases: v1.40.1, v1.40.0, v1.39.4...
10 months ago

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

Don't miss a new claude-notifications-go release

NewReleases is sending notifications on new releases.