Skip to content

Workflow Evals: Add streaming to project page#6185

Open
simeonlee wants to merge 5 commits intomainfrom
simeonlee/wf-eval-project-streaming
Open

Workflow Evals: Add streaming to project page#6185
simeonlee wants to merge 5 commits intomainfrom
simeonlee/wf-eval-project-streaming

Conversation

@simeonlee
Copy link
Member

@simeonlee simeonlee commented Feb 5, 2026

Summary

  • Extract data fetching to route.server.ts and add Suspense streaming to the workflow evaluation project page
  • Await runInfos synchronously — the run selector needs this data and must remain outside the Suspense boundary
  • Defer results data (statistics, episodes, count) behind Suspense via ResultsSection
  • Add skeleton and error states for the results section

Test plan

  • Verify run selector remains interactive while results load
  • Verify selecting/deselecting runs works without dropdown closing unexpectedly
  • Verify skeleton state shows while results load
  • Verify error state displays correctly
  • Verify pagination works
  • Run e2e tests: pnpm test-e2e

Note

Medium Risk
Moderate risk because it changes route loader data-flow and introduces deferred rendering/error handling; regressions would primarily affect results visibility and pagination state rather than data integrity.

Overview
Adds Suspense-based streaming to the workflow evaluation project page by deferring the heavy results fetch (run statistics, episodes, and total count) behind a new ResultsSection boundary.

Refactors the loader to await runInfos synchronously for the run selector while concurrently kicking off fetchResultsData, and introduces dedicated skeleton + error UI plus pagination handling inside the deferred results section.

Written by Cursor Bugbot for commit d95e3f9. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@simeonlee simeonlee changed the title Add streaming to workflow evaluation project page Workflow Evals: Add streaming to project page Feb 6, 2026
Extract data fetching to route.server.ts and add Suspense streaming
for the results section. The run selector data (runInfos) is awaited
synchronously since it must render outside the Suspense boundary.
The results data (stats, episodes, count) streams independently via
ResultsSection with its own skeleton and error states.
@simeonlee simeonlee force-pushed the simeonlee/wf-eval-project-streaming branch from d6baf91 to 7134312 Compare February 6, 2026 18:12
@simeonlee simeonlee changed the base branch from simeonlee/wf-eval-project-refactor to main February 6, 2026 18:13
const client = getTensorZeroClient();
const runInfos = await client
.getWorkflowEvaluationRuns(runIds, projectName)
.then((response) => response.runs);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We dont stream this selector to avoid suspense boundary resuspension rendering issues

@simeonlee simeonlee assigned virajmehta and unassigned simeonlee Feb 6, 2026
@simeonlee simeonlee self-assigned this Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants