Skip to content

Automate browser based workflows with AI

screenshot missing error shows up when status is terminated or completed (#189)

Shuchang Zhengdccdc7cca99e
diff --git a/skyvern/forge/sdk/routes/agent_protocol.py b/skyvern/forge/sdk/routes/agent_protocol.py
index 5065ef6b9..577df4dde 100644
--- a/skyvern/forge/sdk/routes/agent_protocol.py
+++ b/skyvern/forge/sdk/routes/agent_protocol.py
@@ -236,7 +236,7 @@ async def get_task(
"Failed to get share link for action screenshot",
artifact_id=artifact.artifact_id,
)
- elif task_obj.status in [TaskStatus.failed, TaskStatus.completed]:
+ elif task_obj.status in [TaskStatus.terminated, TaskStatus.completed]:
LOG.error(
"Failed to get latest action screenshots in task response",
task_id=task_id,