Repository navigation
fix(ui): stabilize transcript library return navigation test - #169309
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 re-arms the mocked transcript-list response before testing navigation back from capture settings. Example: The browser test saves the source title as Weekly design review and returns to Transcript library.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR: it repairs a concrete fixture defect still present on main, preserves the existing assertions, and introduces no production changes or actionable findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI browser E2E suite drives meeting navigation against a mock Gateway that records RPC requests and selectively holds responses. flowchart LR
A[Browser E2E test] --> B[Capture settings]
B --> C[Meetings library]
C --> D[Mock Gateway]
D --> E[Held transcript response]
E --> F[Loading assertion and release]
Technical reviewBest possible solution: Merge the focused fixture correction once the normal required checks pass. Do we have a high-confidence way to reproduce the issue? Source confirms the initial read consumes the sole deferral before return navigation; the PR reports a matching base failure and passing corrected run. Is this the best way to solve the issue? Re-arming the existing fixture control directly fixes the missing setup without weakening assertions, changing production timing, or adding another mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against db8dbef60ed6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +1. Total +1 across 1 file. Added test files: 0. View PR surface stats
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 October 11, 2026, 3:35 PM ET / 19:35 UTC. |
|
Landed in 728917f. The transcript library e2e re-arms the deferred transcripts.list response before returning to the library, so its loading-state assertion observes the second request instead of timing out at line 252. One test line; assertions and timeouts unchanged. Proof: 2/1 red on main 4e3818b, 3/3 green. |
…w#169309) ## What Problem This Solves Fixes the transcript-library E2E timing out when returning from Meeting capture settings to the library. Related: openclaw#168671. The same failure is visible in [checks-ui-e2e](https://github.com/openclaw/openclaw/actions/runs/38165598345). ## User Impact No product behavior changes. The test now deterministically exercises the loading state instead of waiting for an unheld response to remain pending. ## Why This Change Was Made `deferredMethods` defers the first matching request only. The initial library read consumes that deferral; the return-navigation assertion added in openclaw#145367 waits for another loading state and resolves another deferred read without arming it. Re-arm `transcripts.list` immediately before returning to the library. Keep every existing loading, transcript, search, export, configuration-write, mobile, and access-denial assertion unchanged. No overlap with the checked maintainer-owned changes. No runtime or public contracts change. ## Evidence - Latest main `c5029c5631d37c72df8c96007ccc29bc7db006f9`: exact focused command reproduced 2 passing / 1 failing, with the 30-second loading wait timing out at line 252. - With the one-line fixture correction: the same command passed all 3 tests, including the full navigation/read/search/download/edit flow (20.22 seconds total). - `pnpm exec oxfmt --check ui/src/e2e/transcript-library.e2e.test.ts`: passed. - `git diff --check`: passed. Command: `node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/transcript-library.e2e.test.ts`. Merge risk: two-way door; reverting only restores the flaky test. Blast radius is this mocked-Gateway E2E fixture, with no production changes. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Fixes the transcript-library E2E timing out when returning from Meeting capture settings to the library.
Related: #168671. The same failure is visible in checks-ui-e2e.
User Impact
No product behavior changes. The test now deterministically exercises the loading state instead of waiting for an unheld response to remain pending.
Why This Change Was Made
deferredMethodsdefers the first matching request only. The initial library read consumes that deferral; the return-navigation assertion added in #145367 waits for another loading state and resolves another deferred read without arming it. Re-armtranscripts.listimmediately before returning to the library. Keep every existing loading, transcript, search, export, configuration-write, mobile, and access-denial assertion unchanged.No overlap with the checked maintainer-owned changes. No runtime or public contracts change.
Evidence
4e3818bab0febf3ce265aafab07b0c98b7cf7f16: exact focused command reproduced 2 passing / 1 failing, with the 30-second loading wait timing out at line 252.pnpm exec oxfmt --check ui/src/e2e/transcript-library.e2e.test.ts: passed.git diff --check: passed.Command:
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/transcript-library.e2e.test.ts.Merge risk: two-way door; reverting only restores the flaky test. Blast radius is this mocked-Gateway E2E fixture, with no production changes.