The open source coding agent.
TypeScript
chore: cleanup
Adam44b773a6f6cb
diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsxindex a4c1da42dbb..03ac27d9ae9 100644--- a/packages/app/src/pages/layout.tsx+++ b/packages/app/src/pages/layout.tsx@@ -123,15 +123,9 @@ export default function Layout(props: ParentProps) {const bUpdated = b.time.updated ?? b.time.createdconst aRecent = aUpdated > oneMinuteAgoconst bRecent = bUpdated > oneMinuteAgo-- // If both are recent (within last minute), sort by ID to prevent jumpingif (aRecent && bRecent) return a.id.localeCompare(b.id)-- // Recent sessions come before non-recentif (aRecent && !bRecent) return -1if (!aRecent && bRecent) return 1-- // Neither is recent, sort by update time descendingreturn bUpdated - aUpdated}