Skip to content

Commit b9eaa95

Browse files
fix(copilot): align workflow lifetime expectation
1 parent 1338950 commit b9eaa95

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/sim/lib/copilot/application/execute-workflow-use-case.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
executeCopilotWorkflowUseCase,
1515
messageForCopilotWorkflowError,
1616
} from '@/lib/copilot/application/execute-workflow-use-case'
17+
import { ORCHESTRATION_TIMEOUT_MS } from '@/lib/copilot/constants'
1718
import { OrchestrationError } from '@/lib/core/orchestration/types'
1819
import { workflowOperations } from '@/lib/workflows/application/operations'
1920

@@ -57,7 +58,7 @@ describe('Copilot Workflow application adapter', () => {
5758
delegationId: 'copilot-tool:tool-call-1',
5859
audience: 'sim:workflows',
5960
issuedAt: new Date('2026-01-01T00:00:00Z'),
60-
expiresAt: new Date('2026-01-01T00:05:00Z'),
61+
expiresAt: new Date(Date.now() + ORCHESTRATION_TIMEOUT_MS),
6162
resourceScope: { chatId: 'chat-1', executionId: 'execution-1' },
6263
},
6364
input: { workflowId: 'workflow-1', assertedWorkspaceId: 'workspace-1' },

0 commit comments

Comments
 (0)