perf: 202/sweep poll backoff, last-20 runs, smaller client graph - #8
Open
AlonsoAlviraa wants to merge 1 commit into
Open
perf: 202/sweep poll backoff, last-20 runs, smaller client graph#8AlonsoAlviraa wants to merge 1 commit into
AlonsoAlviraa wants to merge 1 commit into
Conversation
Background 202 and sweep poll with 500ms→1s backoff, stop on COMPLETED, and surface the honest 45s queue error. Fetch /fleet/runs?limit=20 only. Do not restore a next.config /api/v1 rewrite (it dropped wait=false). Drop React Query Devtools and keep next-auth off the /fleet graph. Co-authored-by: AlonsoAlviraa <AlonsoAlviraa@users.noreply.github.com>
AlonsoAlviraa
marked this pull request as ready for review
August 13, 2026 20:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Performance-only follow-up stacked on the paper judge console (
cursor/verifleet-c2-console-b4ae). No restyle. Judge API contracts, hash authorship, Cloud Run URLs, and gates are unchanged.Polling
pollUntilSettled: exponential 500ms → 1s cap.COMPLETED(other non-QUEUED/RUNNING statuses also halt).error.queueStuckat 45s. Ingest/sweep unlock then; leftover QUEUED rows keep a 1s-capped catch-up poll so the page can still settle.GET /api/v1/fleet/runs?limit=20once per tick instead of three by-id fetches.Proxy
next.config.tsstill has no/api/v1rewrite. Browser traffic stays onapp/api/v1/[...path]sowait=falseis not dropped. Guarded in the poll tests.Client cost
limit=20; UI merge caps at 20). Dropped the unused/fleet/memoryfetch on console refresh.SessionProvideronly under/auth. LandingCSVDisplayis a dynamic import.prefers-reduced-motionkept (and applied toanimate-spin). No scanlines.Tests
frontend:npm test— 8 passed (backoff, COMPLETED stop, 45s timeout, continue-after-timeout, next.config rewrite guard).tests/test_fleet_adk.py— 7 passed (list/API cap at last 20 + existing 202 drain / wait=false / batch queue).npm run build— green (Next.js 16.1.1).