Repository navigation
test(ui): diagnose required human action timeouts - #201386
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR adds failure-only phase and synthetic fixture-state logging to the required-human-action browser test. Example: The manual-in-panel case fails before pairing finishes.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a useful, narrowly scoped diagnostic improvement from a repository member, with no actionable code findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe browser suite exercises a real isolated Gateway against a scripted model and synthetic manual-step server; the new hook sends test progress and fixture counters to failure output. flowchart LR
A[Vitest case] --> B[Browser and Control UI]
B --> C[Isolated Gateway]
C --> D[Scripted model and manual step server]
D --> E[Synthetic fixture counters]
A --> F[Failure hook]
E --> F
F --> G[Diagnostic output]
Technical reviewBest possible solution: Retain the failure-only diagnostics in the existing test while preserving its actions, assertions, and timeout. Do we have a high-confidence way to reproduce the issue? No timeout was reproduced during this read-only review; the reported Linux timeout remains unresolved, and this PR only improves its diagnostics. Is this the best way to solve the issue? The existing fixture counters plus local phase tracking provide the smallest focused diagnostic change without introducing requests, waits, or another state owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ee37dd3b0335. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +19. Total +19 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 18, 2026, 2:27 PM ET / 19:27 UTC. |
|
Merged via squash auto-merge.
|
What Problem This Solves
The required-human-action real-Gateway test timed out without showing which manual handoff step finished or whether the synthetic prerequisite was completed. The retained browser timeout snapshot cannot distinguish those paths.
User Impact
No product behavior changes. Maintainers get the last completed step and synthetic fixture state when this browser flow fails.
Why This Change Was Made
On failure only, report the synthetic case, last completed phase, and existing numeric/boolean fixture counters. All original actions, assertions, and the 120-second test timeout remain unchanged; no extra requests or waits are added.
Evidence
manual-in-paneltimed out after 120 seconds.b894fe5e3729482eeab747b5758bd79acb2511d1; the target test was unchanged from failed mainfd5471bc2d57192072bc8fcec7f7980846dcfb31.git diff --checkpassed. Source inspection of pinned Vitest 5.0.5 confirms a timed-out test reachesonTestFailed.b894fe5e..32ed1761found no actionable issues (confidence 0.93). Original four-case file passed on macOS Chromium after building the missing UI assets: 4/4, 17.072 seconds in the cases and 40.34 seconds total.manual-in-panelpassed in 2.731 seconds. Targeted type-aware lint, UI-E2E typecheck, and formatting passed.phase: started, zero counters,ready: false). The normal UI build completed and the asset owner reported ready before the corrected run.