Skip to content

fix(ui): plugin pages show "Plugin" in the phone header and tab title instead of their own name - #196680

Merged
roboclaw-bot merged 1 commit into
openclaw:mainfrom
daniel-lxs:fix/ui-plugin-page-title
Nov 10, 2026
Merged

roboclaw-bot merged 1 commit into
openclaw:mainfrom
daniel-lxs:fix/ui-plugin-page-title

Conversation

@daniel-lxs

@daniel-lxs daniel-lxs commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Closes #196679

What Problem This Solves

Fixes: every plugin page shows "Plugin" in the phone header and the browser tab title instead of the page's own name.

User Impact

The phone header and the tab title of a plugin page show its label, the same name as in the sidebar ("Reports — OpenClaw" rather than "Plugin — OpenClaw"). While a plugin's UI is still loading and its label is unknown, the generic "Plugin" stays as the fallback.

Why This Change Was Made

All plugin pages share one route, and the header and tab title read that route's fixed title. Like #191395 did for the device page, pageTitleForRoute resolves the title the page itself shows. On the plugin route that's the label from the page's native registration or, for Gateway-advertised tabs, the tab label. Both the header and the tab title call it, so they can't disagree.

Evidence

  • Two Control UI browser tests fail on main and pass with this change:
    • native-plugin-navigation.e2e.test.ts (new test): a native page at 390 px has the header "UI fixture" and the tab title "UI fixture — OpenClaw". On main both say "Plugin".
    • plugin-tab-slugs.e2e.test.ts (one added assertion): a Gateway-advertised tab opened by its slug path is titled "Reports — OpenClaw". On main it's "Plugin — OpenClaw".
  • Both files pass in full (9 tests), as do the navigation, shell view and tab slug unit tests (45).
  • tsgo:ui, oxlint, oxfmt and ui:check-performance:base against main pass. The largest shared JS chunk stays under its limit (551.2 of 551.3 KiB).
  • Inherited CI failure (reviewed head 1fa7144ae6a664178da73d47fd291b5e147f8706): PR run 42822031138, attempt 1 fails initial-connect-splash.e2e.test.ts:459 in “redirects before setup detection without loading the discarded workspace”: measured heading displacement 14.109375 exceeds 13. The earlier scheduled main run 42816204183 fails the identical test, line, and value; the 14:25 UTC scheduled main run also still fails identically. This plugin-title change does not change the model-setup layout or splash regression test. The downstream openclaw/ci-gate remains failed; landing is qualified through the documented inherited-failure exception, not represented as green CI. Security and other required gates remain independently enforced.

Phone width (390 px), test plugin page "UI fixture", mock Gateway.

On main:

Phone header shows Plugin

With this change:

Phone header shows the page label UI fixture

@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Uses each plugin page’s registered label for the phone header and browser tab title.

Example: Open the native plugin page labeled “UI fixture” at a 390 px viewport.

  • Before: The phone header says “Plugin” and the browser title is “Plugin — OpenClaw”.
  • After: The phone header says “UI fixture” and the browser title is “UI fixture — OpenClaw”.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, focused fix with inspected visual evidence and meaningful regression coverage; current-head CI is not yet clear.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the actual Control UI shell at 390 px with a native fixture plugin and mock Gateway, visibly correcting the phone header; browser tests additionally cover document titles for native pages and advertised slug tabs.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Plugin pages have indistinguishable phone headers and browser tab names despite having their own registered labels.
Reason: The fix restores the established destination-specific title contract with a narrow shared lookup and no new product settings.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR fixes a current UI naming bug with a focused implementation and no identified code defects; the failed splash-layout CI check still needs attribution.

Priority: P3
Reviewed head: 1fa7144ae6a664178da73d47fd291b5e147f8706

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI shell resolves the active plugin from its URL, reads its native registration or Gateway-advertised label, and supplies the header and document title.

flowchart LR
  A[Active route URL] --> B[Existing plugin route resolver]
  C[Native page registrations] --> D[Plugin label lookup]
  E[Gateway tab descriptors] --> D
  B --> D
  D --> F[Shared page title resolver]
  F --> G[Phone header]
  F --> H[Browser tab title]
Loading

Technical review

Best possible solution:

Keep one shared title resolver that derives plugin labels from existing owners and preserves the generic loading fallback.

Do we have a high-confidence way to reproduce the issue?

Current-main source deterministically selects the generic plugin route title, matching the supplied before screenshot; no target code was executed during this review.

Is this the best way to solve the issue?

The patch is a small, complete fix: both title consumers share label resolution, native and advertised tabs retain their existing identity rules, and no additional state or lifecycle owner is introduced.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 986b1cdefa4e.

Provenance checked

  • Shared header and document-title resolution keeps the original intent (ca44c9d: The merged device-title fix centralized page-specific naming so the header and browser title agree.)
  • Destination-specific browser titles keeps the original intent (856f534: The merged feature made browser and native window titles identify the active destination rather than retain a static application name.)
  • Plugin route identity and lazy rendering keeps the original intent (c730d8f: Plugin tabs share a route with namespaced identities; subsequent slug and JSX migrations retained that route owner and lazy page boundary.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 4733a1e adds ui/src/pages/plugin/route.ts:15 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4733a1ed7842; files: ui/src/pages/plugin/route.ts)
  • Vyctor H. Brzezowski: Raw commit ca44c9d adds ui/src/app-navigation.ts:385 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ca44c9d63953; files: ui/src/app-navigation.ts)

PR surface

Source +22, Tests +28. Total +50 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 31 9 +22
Tests 2 28 0 +28
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 59 9 +50

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.

Root-cause cluster

Relationship: same_root_cause
Canonical: #196679
Summary: This PR implements the title correction reported by the same author in the linked open issue.

Members:

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

Labels

Label changes:

  • add P3: Incorrect page names cause minor navigation confusion without blocking plugin use.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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:

  • P3: Incorrect page names cause minor navigation confusion without blocking plugin use.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Establish whether the failing setup-heading displacement assertion also fails on the base before assigning any repair to 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 10, 2026, 8:26 AM ET / 13:26 UTC.

@roboclaw-bot roboclaw-bot added the clawtributors PR from a clawtributor label Nov 10, 2026
@sallyom sallyom self-assigned this Nov 10, 2026
@roboclaw-bot
roboclaw-bot merged commit 3686da5 into openclaw:main Nov 10, 2026
119 of 123 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
… tab title (openclaw#196680)

Use each plugin page’s registered label for the phone header and browser tab title, falling back to its Gateway-advertised tab label or the generic Plugin title while unknown. Preserve existing route identity, lazy loading, and device-title behavior.

Closes openclaw#196679

Land with the documented inherited-failure exception: PR CI run 42822031138 attempt 1 and scheduled main run 42816204183 fail the identical initial-connect-splash setup-layout assertion at line 459 (14.109375 > 13). The plugin-title change does not change the model-setup layout or splash regression test. Security and other required checks are independently enforced; failed CI is not represented as green.

Co-authored-by: sallyom <[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 clawtributors PR from a clawtributor P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

[Bug]: Plugin pages show "Plugin" in the phone header and browser tab title instead of their own name

3 participants