Skip to content

Commit 7dd15b1

Browse files
committed
fix(project-files): recheck cancellation before completing a workbench upload
Provenance resolution can outlast the invocation; completion now rechecks both signals before it registers the file, as the create path does.
1 parent 1de1cfb commit 7dd15b1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/sim/lib/mothership/agent-cli/project-file-upload-transport.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export function createProjectFileUploadTransport(
126126
if (!secretProvenance) {
127127
return v2Error('SERVICE_UNAVAILABLE', 'Workbench upload source has not finished streaming')
128128
}
129+
throwIfCancelled(context.signal, request.signal)
129130
const result = await executeCopilotProjectFileUseCase(
130131
context,
131132
completeProjectFileUploadSession,

0 commit comments

Comments
 (0)