Skip to content

fix(ui): explain blank pages in browsers without module scripts - #189883

Merged
roboclaw-bot merged 1 commit into
mainfrom
loop/contributor-pr-167999
Nov 1, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
loop/contributor-pr-167999

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

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 nomodule notice, 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

  • Base: 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.
  • Production UI build, UI typecheck, UI-app test typecheck, targeted type-aware lint, formatting and git diff --check passed. PR CI passed, including all seven UI E2E shards and the final CI gate.
  • Chromium 60.0.3109.0: exact base HTML stays nearly blank with a faint Loading… label and no recovery guidance; the production replacement HTML displays readable update guidance. Module support was absent in the actual browser. Both documents were served with the production CSP hash/header helpers. A modern Chromium browser skipped the notice and rendered a synthetic module application.
  • Browser proof validates the document shell and CSP, using a task-owned loopback server and synthetic module response. It is not a full Gateway, authenticated session, Telegram, or real-device run. The contributor branch was read with gh pr view/diff and was never checked out or executed.
  • Local autoreview of the complete production/test delta against the base: scoped-clean, P0–P2, no actionable findings. The final test differs only by formatting; the documentation/allocation records followed. Local ClawSweeper is unavailable; the hosted ClawSweeper review also found no actionable issues on 5163e30ec4b913e810ff2148eaaab145cf88d2ec and accepted the browser screenshots.

Before — current-main HTML in Chromium 60:

Before: nearly blank page without recovery guidance

After — built replacement HTML in Chromium 60:

After: readable unsupported-browser notice and update instructions

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]>
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui labels Nov 1, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 1, 2026 00:01
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. 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-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The page shows only a faint Loading… label without recovery guidance.
  • After: The page explains that the browser is unsupported and recommends updating the browser or system WebView.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused diagnostic repair with directly inspected browser evidence, a reported red/green regression, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The production document shell was exercised in Chromium 60 through a task-owned HTTP server, with inspected before/after screenshots showing readable guidance; the synthetic modern-browser scenario establishes only notice skipping and module startup.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Browsers unable to execute the application or its modern recovery code show a nearly blank page without explaining how to proceed.
Reason: The maintainer-authored direction repairs the stated no-module case without adding legacy browser support or changing the supported-browser baseline.

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
Reviewed head: 5163e30ec4b913e810ff2148eaaab145cf88d2ec

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 1b85c97 adds ui/index.html:407 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1b85c97e514e; files: ui/index.html)
  • Val Alexander: Raw commit 42fc84f adds ui/index.html:233 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 42fc84f4b4c6; files: ui/index.html)
  • Wynne668: Raw commit f36f3f3 adds ui/index.html:336 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: f36f3f30ea5a; files: ui/index.html)

PR surface

Source 0, Tests +16, Docs +2, Other +2. Total +20 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 14 14 0
Tests 1 16 0 +16
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 4 34 14 +20

Review metrics

Metric Value Why it matters
Production and regression growth Production net 0 lines; tests +16 lines The standalone notice adds no module, dependency, state owner, or configuration, and the regression covers previously absent user guidance.

Root-cause cluster

Relationship: canonical
Canonical: #189883
Summary: This PR explicitly replaces the earlier notice implementation; the Chromium 114 report concerns a different startup boundary.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P2: This is a bounded usability repair for browsers below the supported application baseline, with visible guidance to use an updated browser.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: This is a bounded usability repair for browsers below the supported application baseline, with visible guidance to use an updated browser.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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 October 31, 2026, 8:06 PM ET / November 1, 2026, 00:06 UTC.

@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 1, 2026 00:09
@roboclaw-bot
roboclaw-bot merged commit d8f355c into main Nov 1, 2026
184 of 185 checks passed
@roboclaw-bot
roboclaw-bot deleted the loop/contributor-pr-167999 branch November 1, 2026 00:12
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

vincentkoc added a commit that referenced this pull request Nov 1, 2026
…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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
…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]>
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 docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. 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.

1 participant