Repository navigation
fix: proxy sign-in restarts while entering browser credentials - #198284
roboclaw-bot wants to merge 2 commits into
Conversation
Healthy HTTP does not establish that an opening WebSocket is lost: the browser may still be waiting for reverse-proxy authentication. Preserve its transport deadline unless an observed HTTP outage has recovered. Keep closed-transport and foreground recovery unchanged. Related: #198226 Co-authored-by: jacobtomlinson <[email protected]>
Worked on by: - @jacobtomlinson Co-authored-by: jacobtomlinson <[email protected]> OpenClaw-Publication: 2eba3a34-f0be-8e20-a2ed-98740cb2c939
|
🦞👀 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 lets a pending WebSocket retain its existing opening deadline when HTTP health remains reachable. Example: A reverse proxy delays a WebSocket upgrade for 12 seconds while HTTP health checks succeed.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR narrowly fixes premature connection replacement, with no actionable code findings; the required CI gate remains red. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI page-activation owner combines browser lifecycle events, HTTP reachability, and browser-client eligibility to request reconnection through the application Gateway owner. flowchart TD
A[Browser lifecycle events] --> C[Page activation owner]
B[HTTP health probes] --> C
D[Browser client eligibility] --> C
C --> E[Application Gateway owner]
E --> F[Browser WebSocket]
F --> G[Reverse proxy and Gateway]
Technical reviewBest possible solution: Keep reconnection policy in the existing owner and preserve pending openings until their transport deadline unless observed HTTP reachability recovers. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the eight-second replacement path, and the supplied regression reports failure on the base; this read-only review ran no target code. Is this the best way to solve the issue? The change is the smallest complete repair for premature replacement: it reuses existing client eligibility, adds no state, and retains outage recovery and transport timeout ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6055ba3cff85. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +22. Total +24 across 2 files. 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: No label 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 HistoryReview history (1 earlier review cycle)
Reviewed November 13, 2026, 9:52 AM ET / 14:52 UTC (Revision 2). |
After-fix proof: real browser, real WebSocket and real GatewayThis addresses the review’s missing real-transport trace on the unchanged reviewed head Environment and controlled delay
Result
In both cases the same original TCP/WebSocket request survived the healthy-HTTP probes beyond eight seconds, then completed before the existing 30-second deadline. No replacement connection was created during either wait. The first connection closed only when the second page navigation began; the second closed during teardown. Redacted traceTimes below are 2026-11-13 UTC. Credential values and complete protocol payloads were never logged. The health entries are requests made by the real application, identified by its The retained result JSON has SHA-256 Scope: this is real-transport proof of the OpenClaw interruption fix, using an induced upgrade delay rather than a human password dialog. It does not claim a patched iPhone/Safari retest or a repair to Safari Private Browsing credential reuse. The underlying issue remains open. No product source changes or new commits were needed for this proof. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Related: #198226
What Problem This Solves
Fixes: the Control UI repeatedly restarts a pending reverse-proxy sign-in when HTTP health is reachable but the browser is still authenticating its WebSocket.
User Impact
User impact: browser authentication gets the existing 30-second opening budget instead of being interrupted by the approximately eight-second reachability recovery loop. This does not fix Safari Private Browsing asking for credentials on each new WebSocket, so the underlying issue remains open.
A socket-only blackhole with continuously healthy HTTP now waits for the existing transport deadline. Recovery after an observed HTTP outage, closed transports and foreground restoration retain their existing paths. No authentication, permissions or timeout settings are relaxed.
Why This Change Was Made
A successful HTTP health check cannot distinguish a lost upgrade from a native browser authentication dialog. Reuse the client's existing wake-reconnect eligibility before replacing an opening based only on healthy HTTP; an observed outage followed by recovery can still trigger an early retry. This removes an over-eager recovery decision without introducing new state, browser detection or another authentication mechanism.
Evidence
a513e8f6f532a2cd3aadf0043acfe967ec2d4039: two actual built-UI Chromium navigations through a Basic-auth reverse proxy to the real isolated Gateway. Original upgrades survived 12,004 ms / 12,002 ms, with 5 / 4 successful application HTTP health probes after eight seconds, then completedhello-okand reached UIconnectedwith one socket per navigation. The service worker remained active. Environment, redacted timestamped trace and cleanup. The delay was induced at the proxy, not a native Safari password dialog.439a9c3552da1e939803fc3c69d87bc6e16a6553(unchanged in commit4997a68e7107575fef6d2803968142d526da705c): no actionable P0–P2 findings. Local ClawSweeper is unavailable; the hosted review found no actionable code findings and requested the real-transport proof now linked above.November 14 readiness recheck
Head
a513e8f6f532a2cd3aadf0043acfe967ec2d4039remains conflict-free. The failedcheck-lint-core-4job in run43434586121reports one error:ui/src/e2e/session-context-breakdown.e2e.test.ts:19shadows the importednode:path. This PR changes only page-activation source and its regression test, not that file. Main independently fixes the exact error in6eb8095ae971f51bfa547644d4d249c21ebb8335(#198281). The CI gate is still red; this is attributed unrelated baseline lint, not a passing check. No rerun or branch push was made just to obtain green.Reported and reproduced with @jacobtomlinson; co-authored-by credit is retained in the commit.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by