sync: auto-sync from DESKTOP-0O8A1RL at 2026-05-13 07:59:31
Author: Mike Swanson Machine: DESKTOP-0O8A1RL Timestamp: 2026-05-13 07:59:31
This commit is contained in:
@@ -20,6 +20,12 @@ if [ -n "$result" ]; then
|
||||
echo "============================================================"
|
||||
echo ""
|
||||
|
||||
# Fire a Windows toast so the user sees it even if not watching the terminal
|
||||
toast_body=$(echo "$result" | jq -r '[.messages[] | .from_session + ": " + .subject] | join(", ")' | tr -d '\r')
|
||||
powershell.exe -NonInteractive -NoProfile -Command \
|
||||
"& 'D:/claudetools/.claude/scripts/notify.ps1' -Title 'ClaudeTools: $count new message(s)' -Message '$toast_body'" \
|
||||
>/dev/null 2>&1 &
|
||||
|
||||
# Mark all fetched messages as read immediately
|
||||
echo "$result" | jq -r '.messages[].id' | tr -d '\r' | while read -r id; do
|
||||
curl -s -X PUT "${API}/api/coord/messages/${id}/read" >/dev/null 2>&1
|
||||
|
||||
Reference in New Issue
Block a user