Repository navigation
fix(ui): explain blank pages in browsers without module scripts - #189883
Conversation
Show update guidance from the document shell when the browser cannot run the module entry. Drop redundant guards for the shell-owned recovery buttons. Co-authored-by: Arseniy Palagin <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR adds readable browser-update guidance when the Control UI cannot run module scripts. Example: Open the Control UI in Chromium 60.0.3109.0 without module-script support.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a verified blank-page diagnostic gap with a focused change and convincing browser screenshots; no actionable defect was found, and CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway serves the Control UI document shell before application startup; the browser either loads the module application or displays the new standalone compatibility notice. flowchart TD
A[Gateway serves document] --> B[Browser parses shell]
B --> C[Module scripts supported]
B --> D[Module scripts unavailable]
C --> E[Application capability admission]
D --> F[Browser update guidance]
Technical reviewBest possible solution: Retain the small document-shell notice while keeping broader browser compatibility work separately scoped. Do we have a high-confidence way to reproduce the issue? The supplied Chromium 60 before/after captures reproduce the diagnostic gap, and fetched main retains the same affected document shell; no target code was executed during this review. Is this the best way to solve the issue? The standalone nomodule script is an appropriately small fix because the existing module-based compatibility screen cannot execute in the affected browsers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a6296100c8d0. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +16, Docs +2, Other +2. Total +20 across 4 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 31, 2026, 8:06 PM ET / November 1, 2026, 00:06 UTC. |
|
Merged via squash auto-merge.
|
…ed-backup-search-exports-20261101 * commit 'cde4bfe4f10ce470ded7264c68d9a72ae03594cc': fix(ci): keep backup and chat search internals private (#189894) fix(codex): recover unused native threads without dropping history (#189900) fix(oc-path): use last duplicate JSON key to match runtime parsing (#189855) perf(test): parse the Mantis resolver workflow once (#189801) fix(agents): revert default hard context admission (#189891) refactor(test): use canonical tracked temp paths (#189800) chore(ui): refresh control ui locales (#189898) improve: show gateway commit and build time on About refactor(test): share SDK export fixture JSON writes (#189799) fix: restore Files navigation from unavailable previews (#189879) refactor(test): share raw ratchet fixture writes (#189798) fix(ai): honor Model Studio compatible-mode output limits (#189870) fix: hold queued messages through inline edits (#189869) perf(test): reuse the baseline fixture Node resolver (#189790) test(qa): correlate handoff replies by run identity (#189885) fix(ui): normalize canonical Unicode in local search comparisons (#189874) fix(ui): explain unsupported browsers without module scripts (#189883) # Conflicts: # ui/src/pages/chat/components/chat-search-highlight.browser.test.ts
…w#189883) Show update guidance from the document shell when the browser cannot run the module entry. Drop redundant guards for the shell-owned recovery buttons. Co-authored-by: Arseniy Palagin <[email protected]>
Supersedes #167999, thanks @aspalagin.
Related: #167980
What Problem This Solves
Fixes: browsers without module-script support leave the Control UI nearly blank with no explanation or recovery guidance.
User Impact
Affected users see This browser is not supported and instructions to update their browser or system WebView. Supported browsers retain their module startup behavior. No legacy bundle or polyfills are added.
Why This Change Was Made
The document shell provides a standard
nomodulenotice, independent of modern recovery code that old engines cannot parse. A literal foreground color keeps the text readable without CSS variables. Two redundant existence guards around the same shell's always-present recovery buttons were removed: production LOC delta 0. The regression adds 16 test lines with a scoped allocation; documentation adds two lines.Evidence
c633ec6376e1ce6cdf6268f98d1c86eb9395b074. The new regression fails on this main HTML because the unsupported-browser message is absent; the other 32 tests pass. After the fix, 33/33 pass (pnpm test ui/src/app/mount-fallback.test.ts --maxWorkers=1, 2.16 s Vitest / 3.47 s runner). The hosted job timings are available in this PR's checks.git diff --checkpassed. PR CI passed, including all seven UI E2E shards and the final CI gate.gh pr view/diffand was never checked out or executed.5163e30ec4b913e810ff2148eaaab145cf88d2ecand accepted the browser screenshots.Before — current-main HTML in Chromium 60:
After — built replacement HTML in Chromium 60: