Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .agents/scripts/session-distill-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ analyze_session() {

# Check for error patterns in recent commits
local error_fixes
error_fixes=$(echo "$recent_commits" | grep -ci "fix\|error\|bug\|issue" || echo "0")
error_fixes=$(echo "$recent_commits" | grep -ci "fix\|error\|bug\|issue" || true)
[[ -z "$error_fixes" ]] && error_fixes=0

# Check TODO.md for completed tasks
local completed_tasks
if [[ -f "TODO.md" ]]; then
completed_tasks=$(grep -c "^\- \[x\]" TODO.md 2>/dev/null || echo "0")
completed_tasks=$(grep -c "^\- \[x\]" TODO.md 2>/dev/null || true)
[[ -z "$completed_tasks" ]] && completed_tasks=0
else
completed_tasks="0"
fi
Expand Down
Loading