Update working comment on error or non responsive agent

This commit is contained in:
Shawn Morreau
2025-12-04 15:33:16 -05:00
3 changed files with 41 additions and 2 deletions
+8 -2
View File
@@ -245,9 +245,15 @@ export async function ensureProgressCommentUpdated(): Promise<void> {
// check if MCP context is initialized (MCP server started)
try {
const ctx = getMcpContext();
const errorMessage = `🐸 this run croaked
const repoContext = parseRepoContext();
const runId = process.env.GITHUB_RUN_ID;
const workflowRunLink = runId
? `[workflow](https://github.com/${repoContext.owner}/${repoContext.name}/actions/runs/${runId})`
: "workflow";
The workflow encountered an error before any progress could be reported. Please check the workflow run logs for details.`;
const errorMessage = `❌ this run croaked
The workflow encountered an error before any progress could be reported. Please check the ${workflowRunLink} for details.`;
const bodyWithFooter = addFooter(errorMessage, ctx.payload);