Repository navigation
fix: show the sign-in explanation when a proxy sign-in expires - #201584
Conversation
OpenClaw-Publication: 0494a4e8-0b01-894a-8db5-4e8a675e3501
|
🦞👀 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 loads the sign-in explanation eagerly and preloads its modal host before proxy access expires. Example: Cloudflare Access expires while a Control UI conversation remains open.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — suspected predecessor, not a causality claim: source commit Possible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a verified recovery-dialog failure still present on current main. The focused change, inspected browser screenshots, and passing head CI support merging; no actionable defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe document-level browser recovery owner receives failed HTTP-resource notifications, verifies website access, and presents sign-in recovery while retaining the conversation and draft. flowchart TD
A[Attachment request fails] --> B[Document recovery owner]
B --> C[Website access probe]
C --> D[Automatic renewal]
D --> E[Recovery dialog]
F[Idle modal preload] --> E
E --> G[Sign in and verify access]
G --> H[Retry failed attachments]
Technical reviewBest possible solution: Merge the focused recovery-loading change while retaining the existing document owner, shared modal loader, and explicitly accepted early-expiry limitation. Do we have a high-confidence way to reproduce the issue? Current main downloads the recovery renderer only after expiry, when a sign-in proxy can redirect that download; the supplied before screenshot confirms the resulting fallback. No target code was executed during this read-only review. Is this the best way to solve the issue? The change fixes the unavailable-code dependency at its existing owner, reuses shared preload and registration mechanisms, and removes the obsolete fallback and its test without adding competing state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 96189709bc50. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -16, Tests -51. Total -67 across 3 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:
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 18, 2026, 10:02 PM ET / November 19, 2026, 03:02 UTC. |
|
Merged via squash.
|
…law#201584) * fix(ui): keep sign-in recovery dialog loadable after proxy expiry * fix: show the sign-in explanation when a proxy sign-in expires OpenClaw-Publication: 0494a4e8-0b01-894a-8db5-4e8a675e3501
…law#201584) * fix(ui): keep sign-in recovery dialog loadable after proxy expiry * fix: show the sign-in explanation when a proxy sign-in expires OpenClaw-Publication: 0494a4e8-0b01-894a-8db5-4e8a675e3501 (cherry picked from commit ff4a6c7) Release adaptation: Apply source eager dialog and idle modal preload exactly; adapt prior loading regression to post-entry proxy expiry rather than delete it, with isolated mock registry. Browser proof awaits native Chromium dependencies. Co-authored-by: RomneyDa <[email protected]>
* fix(ui): keep sign-in recovery dialog loadable after proxy expiry * fix: show the sign-in explanation when a proxy sign-in expires OpenClaw-Publication: 0494a4e8-0b01-894a-8db5-4e8a675e3501 (cherry picked from commit ff4a6c7) Operator-requested 2026.11.10 stable backport (Dallin, 2026-11-24 04:15). Clean apply. Later main mentions: none. Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
When the Control UI sits behind a sign-in proxy such as Cloudflare Access and that sign-in expires, the "Sign in to continue loading content" dialog appeared with only "Couldn't load this panel." and a Retry button. Retry could never succeed. The dialog's own code was downloaded on demand, and once the proxy sign-in has expired, every new download is redirected to the sign-in page. So the dialog could not load in exactly the situation it exists for. OCE Fleet users reported this.
User Impact
User impact: when a proxy sign-in expires, people now see the intended explanation ("Your website sign-in has expired. Images and files cannot load until you sign in again…") with Not now and Sign in, instead of a panel-load error. Sign-in, Check again, the native Mac app reconnect, and the access probe work as before.
Why This Change Was Made
openclaw-modal-dialogelement. That element is downloaded on demand from the New Session boot group, so on Chat it is not always loaded already. Recovery now preloads it at idle time when it starts, while access is still valid. If the preload fails, opening the dialog tries the download again, as it did before.Bundle cost, from
scripts/check-control-ui-performance.mtsagainst the main build: Chat boot JS +437 B gzip (1,331,339 B, under the 1,332,290 B limit), New Session boot JS +685 B, startup JS +1 B, and request counts unchanged. The local build of main already fails the CSS and Chat-boot-request checks by the same amounts as this branch, so those failures come from main.Evidence
The browser E2E now redirects every
/assets/**request to the sign-in page once access expires, the same way a real proxy behaves. It then checks that the dialog shows the sign-in explanation and never shows "Couldn't load this panel."ui/src/e2e/browser-auth-recovery.e2e.test.tspasses 4/4, andui/src/app/browser-auth-recovery.test.tspasses 13/13.pnpm tsgo:ui,pnpm tsgo:test:ui, oxlint, oxfmt andpnpm check:control-ui-controllerspass.ui/src/e2e/boot-module-boundaries.e2e.test.tspasses 18/18.Clean comparison
Interactive renewal with the service worker allowed, 1280×900, synthetic conversation fixture. Before: main 053fb62. After: this branch.
Annotated comparison
🦞 Made with OpenClaw