fix(SKY-9616): fall back to workflow API response for workflowPermanentId on /runs/ route (#5870)
Some checks are pending
Auto Create GitHub Release on Version Change / check-version-change (push) Waiting to run
Auto Create GitHub Release on Version Change / create-release (push) Blocked by required conditions
Run tests and pre-commit / Run tests and pre-commit hooks (push) Waiting to run
Run tests and pre-commit / Frontend Lint and Build (push) Waiting to run
Publish Fern Docs / run (push) Waiting to run
Build Skyvern SDK and publish to PyPI / check-version-change (push) Waiting to run
Build Skyvern SDK and publish to PyPI / run-ci (push) Blocked by required conditions
Build Skyvern SDK and publish to PyPI / build-sdk (push) Blocked by required conditions

This commit is contained in:
LawyZheng 2026-05-07 16:40:10 +08:00 committed by GitHub
parent 228b30cd94
commit 2ca1820973
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,7 +78,8 @@ function WorkflowRun() {
const status = (error as AxiosError | undefined)?.response?.status;
const workflow = workflowRun?.workflow;
const workflowPermanentId = workflowPermanentIdParam;
const workflowPermanentId =
workflowPermanentIdParam ?? workflow?.workflow_permanent_id;
const cacheKey = workflow?.cache_key ?? "";
const isFinalized = workflowRun ? statusIsFinalized(workflowRun) : null;
const isWorkflowDeleted = Boolean(workflow?.deleted_at);