Skip to content

fix: stop the manual handoff UI test from hanging after completion - #207945

Merged
daniel-lxs merged 2 commits into
mainfrom
openclaw/manual-in-panel-e2e-timeout-33ae50
Nov 29, 2026
Merged

daniel-lxs merged 2 commits into
mainfrom
openclaw/manual-in-panel-e2e-timeout-33ae50

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

The manual-in-panel real-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 record manual-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.

  • Before: main 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.
  • After: 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-panel took 7.542 seconds.
  • I also verified the CI prebuild, formatting, type-aware lint, UI E2E typecheck and git diff --check on 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

roboclaw-bot and others added 2 commits November 29, 2026 03:44
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 538f68d1-1b07-4e57-aa63-0fa1b95c9eb1
@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review started

This attempt replaced any previous blocked status for this revision.

View this run’s status.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 29, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

I rebuilt and checked the exact published head a2192fa on a fresh AWS Pond lease. The receipt-navigation case that timed out on main passed in 15.798 s. All four ordinary cases passed; manual-in-panel took 7.225 s. Both runs recorded two checks, one dependent effect and one progress write. Formatting, type-aware lint and the UI E2E typecheck passed. I verified both AWS leases were released with cleanup complete.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 29, 2026 04:08
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

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

  • Before: The test can stall at manual.close() before submitting Ready to recheck.
  • After: The test observes Manual step completed, brings chat forward, and continues checking two prerequisite checks, one dependent effect, and one progress write.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported test repair with detailed reported replay results, limited by the absence of directly inspected repair-run output; hosted checks remain pending.
Proof confidence 🦐 gold shrimp (3/6) No product behavior changes, and this PR is proof-exempt; the author supplies detailed base/head browser-replay results, but the linked run contents were not independently inspected and the downloaded historical screenshots do not demonstrate the changed timeout path.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Maintainers can receive a browser-test timeout after the synthetic manual step succeeds, before the test verifies task continuation.
Reason: The maintainer-authored change removes an incidental source of CI failure while retaining the actual handoff contract.

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: a2192fa509040c4c9b39508dcea5ebf02f542a79

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Manual-in-panel tab closure changes intended behavior with a stated reason (de0ea1e: The original feature test returned from an external manual step to verify continuation of the same task; neither its body nor assertions established tab closure as a product requirement.)
  • Failure-phase marker keeps the original intent (eb90c15: Record the last completed handoff phase on failure; the renamed marker follows the replacement operation and preserves that diagnostic purpose.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit de0ea1e adds ui/src/e2e/required-human-action.real-gateway.e2e.test.ts:329 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: de0ea1efe5f9; files: ui/src/e2e/required-human-action.real-gateway.e2e.test.ts)
  • Vincent Koc: Raw commit eb90c15 adds ui/src/e2e/required-human-action.real-gateway.e2e.test.ts:347 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: eb90c15fefe3; files: ui/src/e2e/required-human-action.real-gateway.e2e.test.ts)

PR surface

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

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 2 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 3 2 +1

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 rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 28, 2026, 11:12 PM ET / November 29, 2026, 04:12 UTC.

@daniel-lxs
daniel-lxs merged commit 1b246c0 into main Nov 29, 2026
142 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/manual-in-panel-e2e-timeout-33ae50 branch November 29, 2026 04:58
vincentkoc added a commit that referenced this pull request Nov 29, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Nov 29, 2026
* 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)
  ...
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
…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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
…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
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: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants