AI Agents SDE Task Viewer
      • Pr description
  1. Home
  2. AgentSDE
  3. agent-core-control-center
  4. gh-40
  5. changes
  6. pr_description.md
pr_description.md(680 B)· Apr 1, 2026· 1 min read
  • Problem
  • Task / Link
  • Changes
  • Notes
  • Testing

Sort Pipeline Details events newest-first#

Problem#

Events on the Pipeline Details page rendered in insertion order, making it hard to find recent events without scrolling to the bottom.

Task / Link#

GitHub Issue #40

Changes#

  • Sort task.events by createdAt descending before rendering in app/pipeline/[taskId]/page.tsx
  • Tie-break on id descending for events with identical timestamps
  • Uses [...array].sort() to avoid mutating the original array

Notes#

The /events page uses a separate DataTable component and getEvents() API — out of scope for this change.

Testing#

  • npm run lint — no warnings or errors
  • npm run build — clean build
PrdAgent-runner