Skip to content

Recover transient analysis failures and stop stalled progress screens - #8

Merged
shashank03-dev merged 2 commits into
mainfrom
fix/gemini-transient-retries
Nov 6, 2026
Merged

shashank03-dev merged 2 commits into
mainfrom
fix/gemini-transient-retries

Conversation

@shashank03-dev

@shashank03-dev shashank03-dev commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Production analysis can wait on Gemini for nearly two minutes before failing with HTTP 503. The browser displays timer-driven progress capped at 94%, including misleading completed-compilation labels, without a request deadline.

  • Retry HTTP 500/502/503/504, network errors, and request timeouts up to three times per model, with exponential backoff and jitter. Each request has a 15-second timeout; primary and Pro-to-Flash fallback share a 50-second budget.
  • Add a 65-second browser deadline covering frame preparation, API requests, and response reads. Preserve manual cancellation and retain extracted frames for retry.
  • Label the animation as estimated progress and waiting for a model response, rather than claiming compilation/audit completion.
  • Preserve existing failed-analysis quota rollback.

Validation: unit tests cover temporary recovery, exhaustion, permanent errors, network failure, abort deadlines, fallback, browser cancellation, stalled operations, and waiting-screen labels. Typecheck, lint, and the full unit suite are run locally. The initial server-fix preview built successfully on Vercel; updated preview/CI checks run on this head. Local builds are blocked by an environment-specific ENOENT uv_resident_set_memory error; graphify is not installed.

Supabase configuration is unchanged. A live authenticated AI analysis has not been run for this branch.

@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
motion-code Ready Ready Preview Nov 6, 2026 8:12am UTC

@shashank03-dev shashank03-dev changed the title Retry temporary Gemini failures instead of immediately failing analysis Recover transient analysis failures and stop stalled progress screens Nov 6, 2026
@shashank03-dev
shashank03-dev merged commit a5866f6 into main Nov 6, 2026
2 of 3 checks passed

This branch was successfully deployed

2 active deployments
Production — a5866f69 Deployed Nov 6, 2026 by vercel[bot]
Preview — a5866f69 Deployed Nov 6, 2026 by vercel[bot]
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.

1 participant