Skip to content

fix(ui): prevent cold-render chat activity test flakes - #197447

Merged
roboclaw-bot merged 1 commit into
mainfrom
flake/l48-chat-pane-run-activity
Nov 12, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
flake/l48-chat-pane-run-activity

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

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

  • Confirmed the matching assertion in check-runs 130854165529 and 130895077123; read the latter job's shard configuration/order.
  • Original file alone: 11/11 passed. With the forced cold-render clock and original assertions: 5/6 activity cases failed with the reported assertion, including both active-parent cases. With this fix: 11/11 passed on pinned Bun and 11/11 passed on Node v26.12.1 (CI uses v24.22.1).
  • Named-file wall time: 2.50 s on warm pinned Bun (about 0.8 s test time); 7.44 s on Node with cold transforms (0.817 s test time). Original failing CI file: 1.948 s test time. New-head CI cost is pending.
  • Focused lint, format, and git diff --check passed. Independent autoreview through P3: scoped-clean, no findings.

Blockers / unproven: Crabbox's configured Boat (ascii-box) provider requires an unavailable ASCII_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.

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Codex review: ready, awaiting a maintainer decision.

What this changes

This 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.

  • Before: The loading placeholder satisfies the readiness selector, and the working-indicator assertion can fail.
  • After: The test waits until the placeholder disappears and all existing activity expectations hold.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, correct test repair with successful UI CI; evidence remains harness-based and the author explicitly records a paused validation campaign.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only repair changes no shipped behavior; its reported forced-yield regression exercise and successful exact-head UI checks support the changed test boundary.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Unrelated contributions can receive failing UI checks because activity assertions run before cold transcript rendering completes.
Reason: This maintainer-authored repair targets an observed failure while preserving production scheduling and existing test contracts.

Regression provenance

Possible 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
Reviewed head: c4759afec3bd73a63c6a77622770c19fc6c49192
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Does the explicitly declared loaded-shard campaign remain a prerequisite after deterministic failure reproduction and successful exact-head UI CI?
  • Recommendation: Accept the focused evidence: Accept the reported forced-yield negative control, preserved assertions, and successful exact-head UI shards for this test-only repair.
  • Why: The PR records the campaign as required and uncompleted, while repository guidance selects repetition counts by failure mode rather than a fixed quota.

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The declared original-shard replay and loaded campaign remain uncompleted; the PR reports forced-yield failure-before/pass-after coverage.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +7. Total +7 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 16 9 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 16 9 +7

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This is a focused test reliability repair with no production behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.

Label justifications:

  • P3: This is a focused test reliability repair with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Resolve whether the declared loaded-shard campaign remains required.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 11, 2026, 8:29 PM ET / November 12, 2026, 01:29 UTC.

@roboclaw-bot
roboclaw-bot merged commit cb8c849 into main Nov 12, 2026
92 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the flake/l48-chat-pane-run-activity branch November 12, 2026 01:52
steipete added a commit that referenced this pull request Nov 12, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant