Repository navigation
fix: stop the manual handoff UI test from hanging after completion - #207945
Conversation
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 538f68d1-1b07-4e57-aa63-0fa1b95c9eb1
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review startedThis attempt replaced any previous blocked status for this revision. |
|
I rebuilt and checked the exact published head |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesThis PR waits for the manual-step completion heading and returns focus to chat instead of awaiting external-tab closure. Example: The manual-in-panel case completes the synthetic external step during Chromium navigation.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR makes a focused repair to the manual-handoff browser test, preserves its behavioral checks, and introduces no actionable defects found in this review. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe browser E2E suite drives a real Gateway and Control UI with a scripted model and synthetic external app; its observations verify that manual handoffs resume the original task only after a fresh prerequisite check. flowchart LR
A[Browser test] --> B[External manual step]
B --> C[Completion heading]
C --> D[Original chat]
D --> E[Gateway recheck]
E --> F[Effect and progress assertions]
Technical reviewBest possible solution: Use the existing completion receipt to synchronize the test, return to chat, and leave tab disposal to browser-context teardown. Do we have a high-confidence way to reproduce the issue? The author describes a controlled navigation-triggered failure on main and successful replays after the fix; source confirms the affected await, but this read-only review did not execute the intermittent reproduction. Is this the best way to solve the issue? The change is the smallest complete test repair: it waits for produced state, removes an unnecessary browser operation from the assertion path, and preserves the existing cleanup and handoff checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c2a7e05d4588. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +1. Total +1 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 28, 2026, 11:12 PM ET / November 29, 2026, 04:12 UTC. |
* commit '1b246c09b0c1d41ed0f090f07fc50381decba90d': (574 commits) fix: stop the manual handoff UI test from hanging after completion (#207945) fix: surface favorites and recommended models in picker search (#201450) fix: show the saved quota reset when chat skips its only model (#207210) fix: avoid reloading unchanged plugins after Gateway boot (#207949) fix: keep Task progress double-clicks from changing the window (#207937) fix(doctor): continue repairs past retained conflicting exec approvals (#207951) test(reply): make account isolation assertion decisive (#207793) fix: keep task progress compact when reopening Details (#207943) fix(ui): restore the saved reading position after an empty search (#207673) fix: remove four Memory Wiki settings that had no effect (#207882) test(ios): verify send-at-tap feedback and work grouping (#207913) test(agents): reject unsuccessful live replay completions (#207724) fix(cron): keep a started cron turn running when its job is edited (#207947) improve(ui): put waiting for a free agent under automation timing (#201282) chore(ui): refresh control ui locales (#207514) fix: distinguish unresolved delivery failures from delivery history (#207897) test(doctor): require security check in proxy ordering assertion (#207912) fix: keep update rollback tests in sync with shipped workers (#207822) test(agents): fix provider header filtering coverage (#207732) refactor: remove the bundled GBrain adapter (#207924) ...
* commit 'a012e91c821705e443e42660c34e352623fb0a70': (584 commits) fix: confirm recovered config edits while the Gateway is busy (#207918) fix: make desktop chat presence avatars slightly smaller (#207966) fix: list and select routed Claude models without requiring Claude CLI (#207806) fix(ci): check out verifier before plugin preflight reuse test(reply): prove channel replacement on user messages (#207813) fix(release): bootstrap smoke uses persistent agent creation fix(ui): stop model picker Enter checks from failing on cold opens (#207963) fix: explain when a provider policy stops a chat reply (#207411) fix: show context usage during Claude CLI turns (#207036) fix: align the side panel with its resize divider (#207936) fix: stop the manual handoff UI test from hanging after completion (#207945) fix: surface favorites and recommended models in picker search (#201450) fix: show the saved quota reset when chat skips its only model (#207210) fix: avoid reloading unchanged plugins after Gateway boot (#207949) fix: keep Task progress double-clicks from changing the window (#207937) fix(doctor): continue repairs past retained conflicting exec approvals (#207951) test(reply): make account isolation assertion decisive (#207793) fix: keep task progress compact when reopening Details (#207943) fix(ui): restore the saved reading position after an empty search (#207673) fix: remove four Memory Wiki settings that had no effect (#207882) ...
…207945) Wait for the external app to confirm the manual step, then return focus to the original chat for the prerequisite recheck. The browser context closes both tabs during teardown. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 538f68d1-1b07-4e57-aa63-0fa1b95c9eb1 (cherry picked from commit 1b246c0) Companion audit: #190121 affects WhatsApp and is unrelated. Keep only manual-in-panel fixture behavior supported by stable. Release adaptation: Wait for completion and restore focus only in the stable in-panel case; leave popup reconnect proof intact. Co-authored-by: RomneyDa <[email protected]>
…penclaw#207945) Wait for the external app to confirm the manual step, then return focus to the original chat for the prerequisite recheck. The browser context closes both tabs during teardown. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 538f68d1-1b07-4e57-aa63-0fa1b95c9eb1
What Problem This Solves
The
manual-in-panelreal-Gateway test can spend its entire 120-second budget closing a Chromium tab, even though the external app accepted the manual step. The test never gets back to chat to check the result. This intermittently fails scheduled main CI.User Impact
This changes only the test. No product behavior, configuration, timeout, or retry policy changes.
Why This Change Was Made
The action under test is returning to the original chat after seeing that the manual step completed, not closing a tab. The test now waits for the confirmation heading and brings the chat tab to the front. The existing browser context closes both tabs at teardown. The radio selection, Submit click, and downstream checks remain intact.
The old failure marker was misleading: timeout cleanup could close the tab, unblock
page.close(), and only then recordmanual-page-closed. The hosted diagnostics captured both pages still open. A Chromium probe caught the close request at navigation commit, before the completion document loaded; four seconds later the completed tab was still alive. This matches Playwright's upstream report. The change preserves the original handoff contract from #196951 and the failure diagnostics from #201386.Evidence
I used AWS Pond, Node 24.22.1 and the CI-pinned Chromium. I restricted the workload to four CPUs with two competing CPU processes. Load alone did not reliably reproduce the failure, including when the four preceding hosted suites ran first.
890b277. I made the external fixture navigate immediately to its completion receipt after the POST. The real test timed out on trial two:ready=true, one check, zero effects. The receipt GET arrived, and both tabs were still open at timeout cleanup.c6f058b. With the same receipt navigation and load, all three trials passed: 15.595, 15.574 and 15.438 seconds. Each recorded two prerequisite checks, one dependent effect and one progress write. With the ordinary fixture, all four cases passed;manual-in-paneltook 7.542 seconds.git diff --checkon that head. I did not run the full GitHub-hosted shard on it. The fixture uses a scripted model and a synthetic external app, not a live account.Co-authored with @daniel-lxs.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
🦞 Made with OpenClaw