Add agent failure tracking in conclusion job with templated footer messages#9541
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot add support for templating the footer messages of the issue description and issue comment in the fronatter "messages" section. |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
@copilot do not suggest a bash cli command. |
|
@copilot move the template of the email in a .md file in actions/setup/md and use the interpolation function to render it. Remove Common Causes Check url to workflow .md file |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Added support for templating agent failure footer messages in the frontmatter "messages" section (commit 9f500df). Users can now customize the footer messages for agent failure tracking issues and comments: safe-outputs:
messages:
agent-failure-issue: "> 🚨 Alert! [{workflow_name}]({run_url}) needs attention!"
agent-failure-comment: "> ⚠️ Another failure detected by [{workflow_name}]({run_url})"The implementation includes:
|
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Removed bash CLI command suggestions (commit 510c070). The templates now only mention using GitHub Copilot Chat with
Moved templates to markdown files and removed Common Causes section (commit 510c070). Changes made:
The templates support placeholders: |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
@copilot the exit code of the check mcp gateway needs to be propagated and fail the step |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Fixed exit code propagation for check_mcp_servers.sh (commit e18df95). Added
Without |
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
@copilot copilot don't show date in comment template, make it much shorter. |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Simplified comment template and removed timestamp (commit da47794). Changed from verbose multi-line format to single line:
|
Implementation Plan for Agent Failure Handling
handle_agent_failure.cjsin actions/setup/jshandle_agent_failure.test.cjsSummary
Successfully implemented agent failure handling in the conclusion job with support for custom templated footer messages, template-based issue/comment generation, proper error propagation for MCP gateway checks, and a simplified comment template.
Changes Made (Latest)
Simplified Comment Template: Removed timestamp and made the comment much shorter (commit latest).
Agent job failed: {run_url}{timestamp}) placeholder from comment templateBefore:
After:
The footer message with workflow name and run URL is still appended via the templated message system.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Changeset
handle_agent_failure.cjsto create/update tracking issues and updates the conclusion job to invoke it when an agent job fails.