Skip to content

🐛 Keep run wait results API-truthful#321

Merged
Robdel12 merged 1 commit into
mainfrom
rd/truthful-run-wait
Jul 22, 2026
Merged

🐛 Keep run wait results API-truthful#321
Robdel12 merged 1 commit into
mainfrom
rd/truthful-run-wait

Conversation

@Robdel12

@Robdel12 Robdel12 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Why

The legacy dogfood run hit a build-status polling timeout after the child tests passed. The CLI then reported the build as completed even though the API had not returned that terminal state, giving agents a result that Vizzly never supplied.

Approach

The existing bounded polling behavior stays intact so stalled processing still surfaces. Build lifecycle status now comes directly from the API, review outcomes stay separate, and missing comparison or approval fields remain absent instead of becoming zero or pending.

If polling fails after the child tests pass, JSON reports a null build status alongside the real error and a context command. An API-reported failed build remains failed and preserves the existing nonzero visual-test outcome.

Evidence

CLI boundary coverage exercises completed, failed, and unavailable status responses through a real local HTTP server. The focused contract tests and lint remain green after narrowing the change; the full suite, public type checks, and production build passed on this branch.

Polling failures after the child tests passed were being relabeled as completed builds. Preserve the API lifecycle state, report unavailable status honestly, and stop filling missing API fields with client defaults.
@Robdel12
Robdel12 force-pushed the rd/truthful-run-wait branch from 2008655 to 925f841 Compare July 22, 2026 12:07
@Robdel12
Robdel12 enabled auto-merge (squash) July 22, 2026 12:09
@Robdel12
Robdel12 merged commit 750e23e into main Jul 22, 2026
29 of 30 checks passed
@Robdel12
Robdel12 deleted the rd/truthful-run-wait branch July 22, 2026 12:09
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