use the first screenshot for llm thought (#1487)

This commit is contained in:
Shuchang Zheng
2025-01-04 12:30:10 -08:00
committed by GitHub
parent 2514caa52f
commit 3cb3a0e7ce

View File

@@ -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 (