Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 9 additions & 4 deletions .github/workflows/build-and-push-tutorial-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,15 @@ jobs:

echo "### 🔄 Rebuilding All Tutorial Agents" >> $GITHUB_STEP_SUMMARY
else
# Always compare against main branch
BASE_BRANCH="origin/main"
echo "Comparing against main branch: $BASE_BRANCH"

# Determine the base branch for comparison
if [ "${{ github.event_name }}" = "pull_request" ]; then
BASE_BRANCH="origin/${{ github.base_ref }}"
echo "Comparing against PR base branch: $BASE_BRANCH"
else
# For pushes to main, compare against the first parent (pre-merge state)
BASE_BRANCH="HEAD^1"
echo "Comparing against previous commit: $BASE_BRANCH"
fi
# Check each agent directory for changes
for agent_dir in $all_agents; do
echo "Checking $agent_dir for changes..."
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/00_sync/000_hello_acp/project/acp.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async def handle_message_send(
) -> Union[TaskMessageContent, AsyncGenerator[TaskMessageUpdate, None]]:
"""Default message handler with streaming support"""
# Extract content safely from the message
logger.info("msg 2", params)

message_text = ""
if hasattr(params.content, "content"):
content_val = getattr(params.content, "content", "")
Expand Down