Skip to content

Automate browser based workflows with AI

workflow timeline in reversed order (#1501)

Shuchang Zhengc0bf6387c3f8
diff --git a/skyvern/forge/sdk/routes/agent_protocol.py b/skyvern/forge/sdk/routes/agent_protocol.py
index 9a773907a..466fc9882 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