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 <dallinbentley98@gmail.com>
This commit is contained in:
Devin AI 2025-07-22 15:08:55 +00:00
parent dc25cea204
commit 0ff33d8b5c
1 changed files with 4 additions and 6 deletions

View File

@ -352,7 +352,7 @@ export const slackAgentTask: ReturnType<
}); });
// Check if task has started // Check if task has started
if (run.status === 'EXECUTING' || run.status === 'REATTEMPTING') { if (run.status === 'EXECUTING') {
hasStartedRunning = true; hasStartedRunning = true;
logger.log('Analyst task started executing during rapid poll', { logger.log('Analyst task started executing during rapid poll', {
runId: analystHandle.id, runId: analystHandle.id,
@ -438,8 +438,7 @@ export const slackAgentTask: ReturnType<
run.status === 'SYSTEM_FAILURE' || run.status === 'SYSTEM_FAILURE' ||
run.status === 'CRASHED' || run.status === 'CRASHED' ||
run.status === 'CANCELED' || run.status === 'CANCELED' ||
run.status === 'TIMED_OUT' || run.status === 'TIMED_OUT'
run.status === 'INTERRUPTED'
) { ) {
// Task already completed or failed during rapid polling // Task already completed or failed during rapid polling
isComplete = true; isComplete = true;
@ -474,7 +473,7 @@ export const slackAgentTask: ReturnType<
}); });
// Handle transition from queued to executing if we haven't sent progress message yet // 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; hasStartedRunning = true;
logger.log('Analyst task has started executing', { logger.log('Analyst task has started executing', {
runId: analystHandle.id, runId: analystHandle.id,
@ -563,8 +562,7 @@ export const slackAgentTask: ReturnType<
run.status === 'SYSTEM_FAILURE' || run.status === 'SYSTEM_FAILURE' ||
run.status === 'CRASHED' || run.status === 'CRASHED' ||
run.status === 'CANCELED' || run.status === 'CANCELED' ||
run.status === 'TIMED_OUT' || run.status === 'TIMED_OUT'
run.status === 'INTERRUPTED'
) { ) {
isComplete = true; isComplete = true;
analystResult = { ok: false, error: run.error || 'Task failed' }; analystResult = { ok: false, error: run.error || 'Task failed' };