Workflow Copilot: some improvements (#4413)

This commit is contained in:
Stanislav Novosad
2026-01-07 20:47:27 -07:00
committed by GitHub
parent 66d28bb24d
commit a1f0adf273
2 changed files with 253 additions and 35 deletions

View File

@@ -44,7 +44,7 @@ async def _get_debug_artifact(organization_id: str, workflow_run_id: str) -> Art
artifacts = await app.DATABASE.get_artifacts_for_run(
run_id=workflow_run_id, organization_id=organization_id, artifact_types=[ArtifactType.VISIBLE_ELEMENTS_TREE]
)
return artifacts[0] if isinstance(artifacts, list) else None
return artifacts[0] if isinstance(artifacts, list) and artifacts else None
async def _get_debug_run_info(organization_id: str, workflow_run_id: str | None) -> RunInfo | None: