add browser session to debug store; use new cancel endpoint from #5450 (#2914)

This commit is contained in:
Jonathan Dobson
2025-07-09 18:29:50 -04:00
committed by GitHub
parent c4ce5ebbe5
commit af7b862e02
2 changed files with 23 additions and 2 deletions

View File

@@ -267,9 +267,12 @@ function NodeHeader({
const cancelBlock = useMutation({
mutationFn: async () => {
const browserSessionId =
debugStore.getCurrentBrowserSessionId() ??
"<missing-browser-session-id>";
const client = await getClient(credentialGetter);
return client
.post(`/workflows/runs/${workflowRunId}/cancel`)
.post(`/runs/${browserSessionId}/workflow_run/${workflowRunId}/cancel/`)
.then((response) => response.data);
},
onSuccess: () => {