Skip to content

Commit c25261d

Browse files
committed
Improve: Reduce notification interval from 2 hours to 10 minutes
- Changed notification interval from 2h to 10min for more responsive feedback - Updated time calculation from hours to minutes - High activity notifications now show every 10 minutes instead of 2 hours - More suitable for active development sessions - Users get timely reminders without waiting 2 hours Testing: - Verified notification shows after 11 minutes - Confirmed suppression works within 10 minutes - 174 operations tracked correctly
1 parent 1313bef commit c25261d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.claude/hooks/conversation-capture-user-prompt.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,22 +85,22 @@ if [ "$activity_count" -gt 50 ]; then
8585

8686
if [ -f "$last_sync_file" ]; then
8787
last_sync_time=$(cat "$last_sync_file" 2>/dev/null || echo "0")
88-
hours_since_sync=$(( (current_time - last_sync_time) / 3600 ))
88+
minutes_since_sync=$(( (current_time - last_sync_time) / 60 ))
8989

90-
# High activity + no sync for 2+ hours
91-
if [ "$hours_since_sync" -gt 2 ]; then
92-
notifications="${notifications}🔄 High activity ($activity_count ops) + ${hours_since_sync}h since last sync. Run /memory-sync --full. "
90+
# High activity + no sync for 10+ minutes
91+
if [ "$minutes_since_sync" -gt 10 ]; then
92+
notifications="${notifications}🔄 High activity ($activity_count ops) + ${minutes_since_sync}m since last sync. Run /memory-sync --full. "
9393
fi
9494
else
9595
# No sync record exists - check when we last notified
9696
last_notification_file="$CLAUDE_TMP/last-sync-notification"
9797

9898
if [ -f "$last_notification_file" ]; then
9999
last_notification=$(cat "$last_notification_file" 2>/dev/null || echo "0")
100-
hours_since_notification=$(( (current_time - last_notification) / 3600 ))
100+
minutes_since_notification=$(( (current_time - last_notification) / 60 ))
101101

102-
# Show reminder every 2 hours during high activity
103-
if [ "$hours_since_notification" -gt 2 ]; then
102+
# Show reminder every 10 minutes during high activity
103+
if [ "$minutes_since_notification" -gt 10 ]; then
104104
notifications="${notifications}🔄 High activity ($activity_count ops) - no sync record. Consider /memory-sync --full. "
105105
echo "$current_time" > "$last_notification_file"
106106
fi

0 commit comments

Comments
 (0)