Skip to content

RunsList fetch errors result in empty arrays without user feedback #146

Open

Description

@emmasy

RunsList fetch errors result in empty arrays without user feedback

Severity: Medium
File: frontend/src/pages/Runs/RunsList.tsx:47

The component fetches runs and sessions in parallel, using .then(r => r.ok ? r.json() : { runs: [] }) to handle errors. If both requests fail, the user sees an empty list with no error message or retry option.

const [runsResp, sessionsResp] = await Promise.all([
  fetch(`${API_BASE}/api/v1/runs`).then(r => r.ok ? r.json() : { runs: [] }),
  fetch(`${API_BASE}/api/v1/codegen/sessions`).then(r => r.ok ? r.json() : { sessions: [] }),
])

Why it matters

Backend outages or network failures silently display empty run lists. Users cannot distinguish between "no runs exist" and "failed to load runs", leading to confusion and support requests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions