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
3 changes: 2 additions & 1 deletion messaging_scripts/send-aimaestro-message.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ fi
TO_ID="$RESOLVED_AGENT_ID"
TO_HOST="$RESOLVED_HOST_ID"
TO_ALIAS="$RESOLVED_ALIAS"
TO_HOST_URL="$RESOLVED_HOST_URL" # Save before it gets overwritten

# Resolve sender's alias for display on remote host
SENDER_ALIAS=""
Expand All @@ -67,7 +68,7 @@ fi
TARGET_API="$API_BASE"
if [ "$TO_HOST" != "local" ] && [ "$TO_HOST" != "$HOST_ID" ]; then
# Message is for a remote host - get its URL
TARGET_API="$RESOLVED_HOST_URL"
TARGET_API="$TO_HOST_URL" # Use saved value, not RESOLVED_HOST_URL (which may be overwritten)
if [ -z "$TARGET_API" ]; then
TARGET_API=$(get_host_url "$TO_HOST" 2>/dev/null)
fi
Expand Down
Loading