diff --git a/skyvern/forge/sdk/routes/agent_protocol.py b/skyvern/forge/sdk/routes/agent_protocol.py index 9a773907..466fc988 100644 --- a/skyvern/forge/sdk/routes/agent_protocol.py +++ b/skyvern/forge/sdk/routes/agent_protocol.py @@ -763,7 +763,7 @@ async def get_workflow_run_timeline( organization_id=current_org.organization_id, ) workflow_run_block_timeline.extend(observer_thought_timeline) - workflow_run_block_timeline.sort(key=lambda x: x.created_at) + workflow_run_block_timeline.sort(key=lambda x: x.created_at, reverse=True) return workflow_run_block_timeline