Repository navigation
fix(ui): prevent cold-render chat activity test flakes - #197447
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: ready, awaiting a maintainer decision. What this changesThis PR forces cold transcript yielding in existing activity tests and waits for completed rendering before checking activity. Example: Cold rendering of agent:main:main with parentActive=true exceeds 15 ms.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness⏳ Ready, awaiting maintainer decision This PR repairs a source-confirmed test readiness bug without weakening assertions or changing production behavior; no introduced defect was found. Priority: P3 Decision needed
Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI tests pass session activity fixtures through the real chat renderer and inspect its resulting DOM. flowchart LR
A[Session activity fixtures] --> B[Chat pane props]
B --> C[Chat renderer]
C --> D[Cold task continuation]
D --> E[Completed transcript DOM]
E --> F[Activity assertions]
Technical reviewBest possible solution: Keep the existing renderer and assertions, force its cold yield deterministically, and await completed transcript rendering. Do we have a high-confidence way to reproduce the issue? Source establishes that the old selector accepts the loading placeholder, and a GitHub annotation confirms the matching activity assertion failure; no target code was executed during this review. Is this the best way to solve the issue? The patch fixes the test's completion boundary through existing helpers, retains all expectations, and introduces no production machinery or timeout increase. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bc56f785b2d4. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +7. Total +7 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:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 11, 2026, 8:29 PM ET / November 12, 2026, 01:29 UTC. |
|
Merged via squash.
|
Resolve the overlapping test fix by adopting the exact main version from #197447. Remove the duplicate branch allowance; the enforced merged-checkout test budget passes. All 11 affected tests, targeted lint and formatting pass.
What Problem This Solves
Fixes unrelated
checks-ui (2/3)failures when cold chat transcript rendering yields before the activity assertions.User Impact
No user-visible change. This repairs the test's completion signal without changing production code, shared helpers, assertions, timeouts, or baselines.
Why This Change Was Made
The loading placeholder already contains
.chat-thread-inner. The test now waits for that placeholder to leave and checks the full activity contract in the same existing wait. A render-only clock forces the production >15 ms task-yield path without real load or sleeps.Evidence
git diff --checkpassed. Independent autoreview through P3:scoped-clean, no findings.Blockers / unproven: Crabbox's configured Boat (
ascii-box) provider requires an unavailableASCII_BOX_API_KEY; allocation failed before creating a lease. The original-shard-first replay and the required 20×3 loaded shard campaign have 0 completed remote runs. No provider fallback or heavy local runs were used. Full UI typechecking and broad proof are deferred to PR CI. This PR is not a claim that loaded shard reliability has been verified.