diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/ObserverThoughtScreenshot.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/ObserverThoughtScreenshot.tsx index 5daa2389..e90d4bd2 100644 --- a/skyvern-frontend/src/routes/workflows/workflowRun/ObserverThoughtScreenshot.tsx +++ b/skyvern-frontend/src/routes/workflows/workflowRun/ObserverThoughtScreenshot.tsx @@ -39,7 +39,8 @@ function ObserverThoughtScreenshot({ observerThoughtId, taskStatus }: Props) { (artifact) => artifact.artifact_type === ArtifactType.LLMScreenshot, ); - const screenshot = llmScreenshots?.[0]; + // use the last screenshot as the llmScreenshots are in reverse order + const screenshot = llmScreenshots?.[llmScreenshots.length - 1]; if (isLoading) { return (