From 0ff33d8b5c56b9d642a13c89f79dc3cb5aaf6c5f Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:08:55 +0000 Subject: [PATCH] fix: resolve TypeScript compilation issues in trigger app - Remove invalid status values 'REATTEMPTING' and 'INTERRUPTED' that don't exist in enum - Fix unintentional comparison errors causing CI build failures - These were pre-existing issues from trigger dependency updates commit Co-Authored-By: Dallin Bentley --- .../src/tasks/slack-agent-task/slack-agent-task.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/trigger/src/tasks/slack-agent-task/slack-agent-task.ts b/apps/trigger/src/tasks/slack-agent-task/slack-agent-task.ts index 252653217..30548fa0c 100644 --- a/apps/trigger/src/tasks/slack-agent-task/slack-agent-task.ts +++ b/apps/trigger/src/tasks/slack-agent-task/slack-agent-task.ts @@ -352,7 +352,7 @@ export const slackAgentTask: ReturnType< }); // Check if task has started - if (run.status === 'EXECUTING' || run.status === 'REATTEMPTING') { + if (run.status === 'EXECUTING') { hasStartedRunning = true; logger.log('Analyst task started executing during rapid poll', { runId: analystHandle.id, @@ -438,8 +438,7 @@ export const slackAgentTask: ReturnType< run.status === 'SYSTEM_FAILURE' || run.status === 'CRASHED' || run.status === 'CANCELED' || - run.status === 'TIMED_OUT' || - run.status === 'INTERRUPTED' + run.status === 'TIMED_OUT' ) { // Task already completed or failed during rapid polling isComplete = true; @@ -474,7 +473,7 @@ export const slackAgentTask: ReturnType< }); // Handle transition from queued to executing if we haven't sent progress message yet - if (!hasStartedRunning && (run.status === 'EXECUTING' || run.status === 'REATTEMPTING')) { + if (!hasStartedRunning && (run.status === 'EXECUTING')) { hasStartedRunning = true; logger.log('Analyst task has started executing', { runId: analystHandle.id, @@ -563,8 +562,7 @@ export const slackAgentTask: ReturnType< run.status === 'SYSTEM_FAILURE' || run.status === 'CRASHED' || run.status === 'CANCELED' || - run.status === 'TIMED_OUT' || - run.status === 'INTERRUPTED' + run.status === 'TIMED_OUT' ) { isComplete = true; analystResult = { ok: false, error: run.error || 'Task failed' };