Repository navigation
fix(ci): wait for forwarded avatar imports before assertions - #146729
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. Reviewed September 13, 2026, 12:55 AM ET / 04:55 UTC. ClawSweeper reviewWhat this changesThe PR waits for dynamically imported avatar artwork before checking forwarded-agent faces in the Control UI test. Merge readiness✅ Ready for maintainer review Keep open with no actionable findings. The synchronization remains absent from current main and addresses the documented validation blocker for the separate Sessions repair. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI renders forwarded messages using the source agent’s identity and lazily loaded face artwork. This change synchronizes the test with that loading step before checking the rendered avatar. flowchart LR
A[Forwarded message fixture] --> B[Chat avatar renderer]
B --> C[Lazy face artwork import]
C --> D[Rendered agent face]
C --> E[Test waits for imports]
E --> F[Existing avatar assertions]
D --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Retain the existing avatar assertions and synchronize them with the renderer’s actual asynchronous import boundary. Do we have a high-confidence way to reproduce the issue? No deterministic current-main reproduction was established here. Source confirms the asynchronous import boundary, and the captured discussion records the corresponding CI failure; this read-only review did not run tests. Is this the best way to solve the issue? Yes. Vitest’s import-settlement API matches the identified asynchronous boundary while preserving the existing DOM assertions and timeouts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 176184c2e6f3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* temp/pr-146799: (70 commits) test: reuse explicit fallback config fixtures (openclaw#146948) fix(computer): return fresh window observations after actions (openclaw#146822) refactor(feishu): remove unreachable requester topic selection (openclaw#146904) improve(gateway): reduce CPU spent listing agent-owned sessions (openclaw#137745) fix(ui): avoid recapturing chat drafts during UI updates (openclaw#146884) fix(ui): show system uptime in the debug overlay (openclaw#146960) fix(retry): honor waits beyond the native timer limit (openclaw#145718) fix(ui): keep chat history idle when run status changes (openclaw#146802) fix(ui): reuse persisted text during chat streaming (openclaw#146831) refactor(qa): share harness drift result construction (openclaw#146903) test(agents): coordinate settings lock contention (openclaw#146949) fix(worker): avoid repeatedly serializing screenshot history (openclaw#146907) fix(secrets): stop buffered upload writes after cancellation (openclaw#146840) perf(doctor): avoid unnecessary state runtime imports (openclaw#146926) improve: reduce compaction request estimation work (openclaw#146961) fix(ci): wait for forwarded avatar imports before assertions (openclaw#146729) perf(workers): skip configured Git author lookups (openclaw#146833) fix: admit borrowed memory writes through the agent database owner (openclaw#146760) fix(discord): prevent voice playback gaps and stale turn controls (openclaw#146798) improve: reduce worktree filesystem stalls and archive syncs (openclaw#146906) ...
* commit 'ccfd2377cd07d1ad3a583ba64d08e29a065f7061': (1587 commits) fix(ui): avoid recapturing chat drafts during UI updates (#146884) fix(ui): show system uptime in the debug overlay (#146960) fix(retry): honor waits beyond the native timer limit (#145718) fix(ui): keep chat history idle when run status changes (#146802) fix(ui): reuse persisted text during chat streaming (#146831) refactor(qa): share harness drift result construction (#146903) test(agents): coordinate settings lock contention (#146949) fix(worker): avoid repeatedly serializing screenshot history (#146907) fix(secrets): stop buffered upload writes after cancellation (#146840) perf(doctor): avoid unnecessary state runtime imports (#146926) improve: reduce compaction request estimation work (#146961) fix(ci): wait for forwarded avatar imports before assertions (#146729) perf(workers): skip configured Git author lookups (#146833) fix: admit borrowed memory writes through the agent database owner (#146760) fix(discord): prevent voice playback gaps and stale turn controls (#146798) improve: reduce worktree filesystem stalls and archive syncs (#146906) fix(ui): avoid extra chat rail work while replies stream (#146883) improve(ui): speed up populated Usage timelines (#146947) test(gateway): retain auth recovery failure diagnostics (#146925) fix(tests): create private temporary home directories (#146931) ... # Conflicts: # test/tsconfig/tsconfig.core.test.agents-other.json # test/tsconfig/tsconfig.core.test.agents-root.json
Unblocks #133331
What Problem This Solves
Fixes a Control UI test race where the forwarded-agent face assertion can run before its render-triggered dynamic import settles.
User Impact
No production behavior changes. This maintainer-directed prerequisite addresses the exact observed validation blocker in PR133331, not a general main-CI cleanup. It allows the existing Sessions lifecycle repair to be validated without changing avatar rendering or weakening its assertions.
Why This Change Was Made
The shared avatar renderer loads face artwork asynchronously. The existing expected-face table branch now awaits
vi.dynamicImportSettled()immediately before its unchangedvi.waitFor, face-presence, and no-initials assertions.Only one test line changes. The six cases and their order, mocks, timeouts, production code, and Sessions files remain unchanged.
Evidence
chat-message.test.ts:2622; 6,704 tests passed. The relevant test, owner, and configuration are identical on protected main9fbbfa35bd0026ea890438efc7e4b2b6b460dee7.git diff --checkpassed.acd1ad36a92ad36a0783513545e3bcec2003dd67: the existing six-case table passed 6/6 in its original order in a fresh process without prewarming; the complete identity-avatar-view sibling passed 20/20 with no skips. Selected one-pathcheck:changedpassed. All three commands exited 0 with joined process trees and the reviewed source hash unchanged. Proof run.