Skip to content

Site Audit: detail page hangs on the spinner forever when polling times out — no retry, actions hidden #612

Closed

Description

@gkhngyk

Problem

The audit detail page polls getAudit every 3s with a 120-second deadline. If the audit is still running when the deadline expires, the loop exits silently: audit.status stays 'running', the page keeps showing the spinner card ("~30s") indefinitely, and — because the header's re-run and delete buttons are hidden precisely while status === 'running' — the user has no affordance left except a manual browser reload. The stage label also freezes on the last stage after ~16s, reinforcing the "stuck" impression.

Evidence

Suggested fix

Track a timedOut flag when the deadline expires while still running. Render a distinct card ("This audit is taking longer than expected") with a "Check again" button that restarts the poll loop, and stop hiding the delete action in that state so the user can clean up a genuinely stuck audit. Add the new strings to the audit namespace in messages/en.json.

Acceptance criteria

  • After the polling deadline, the user sees an explicit "taking longer than expected" state with a working "Check again" action — never an endless spinner.
  • The audit becomes viewable if a later check finds it completed.

Activity

  1. added
    bug
    good first issue
    on Aug 3, 2026
  2. BharadwajKanneveti commented on Aug 3, 2026

    @BharadwajKanneveti
    Contributor

    @gkhngyk I will work on this issue.

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

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions