Can we add a short summary to the notification message?
Let me look at how notifications are currently sent.
Now I understand the notification flow. The notifications are sent from ralph.sh at various points (start, progress, complete, error, etc.) but they don't include any summary of what was accomplished. I'll add a function to extract a short summary from the progress file and include it in the relevant notifications.
Let me check what the progress file typically looks like.
Good, now I can see the progress file format. The progress file has a task list with [x] for completed and [ ] for pending tasks. I'll add a function to extract a brief summary (last completed task or task counts) and include it in the notification messages.
Now I'll add the summary function and update the notification messages.
Now update the notification messages to include the summary. Let me update the completion, max-iterations, progress, and error notifications.
Now let me verify the changes look correct.
Let me also quickly verify the notification call sites look right.
Let me also do a quick syntax check.
Syntax is clean. Here's what I added:
get_progress_summary() - parses the progress file and returns a compact summary like:
Tasks: 3/7 Last: Add input validation to API endpoints
This summary is now appended to all four notification types:
The summary is omitted if there's no task list yet (e.g., the start notification stays unchanged). Task names longer than 60 chars get truncated with ....