Skip to content
Open
Changes from 3 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
13 changes: 13 additions & 0 deletions scripts/aea-monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ info() {
echo -e "${BLUE}[AEA Monitor]${NC} $1"
}

send_notification() {
local title="$1"
local message="$2"

# Optional: Send desktop notification if available
if command -v notify-send &> /dev/null; then
notify-send "$title" "$message" -i dialog-information -t 10000 2>/dev/null || true
fi
}

#===============================================================================
# PID Management
#===============================================================================
Expand Down Expand Up @@ -347,6 +357,9 @@ check_project_messages() {
echo "[$timestamp] Monitor found $unprocessed_count unprocessed messages" >> ".aea/agent.log"
fi

# Send desktop notification
send_notification "AEA Monitor" "New messages in $project_name"
Copy link

Copilot AI Oct 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The notification is sent every time check_project_messages() detects unprocessed messages, which could result in repeated notifications during the same monitoring cycle. Consider adding a condition to only send the notification when messages are first detected, or throttling notifications to avoid spam.

Copilot uses AI. Check for mistakes.

# TODO: In future, this would trigger Claude via API
# For now, just log that messages are waiting
warn "⏳ Messages waiting for Claude processing in $project_name"
Expand Down
Loading