Repository navigation
fix(ui): plugin pages show "Plugin" in the phone header and tab title instead of their own name - #196680
Conversation
|
🦞👀 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 changesUses 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +22, Tests +28. Total +50 across 6 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. 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:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 10, 2026, 8:26 AM ET / 13:26 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
… 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]>
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,
pageTitleForRouteresolves 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
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".tsgo:ui,oxlint,oxfmtandui:check-performance:baseagainst main pass. The largest shared JS chunk stays under its limit (551.2 of 551.3 KiB).1fa7144ae6a664178da73d47fd291b5e147f8706): PR run 42822031138, attempt 1 failsinitial-connect-splash.e2e.test.ts:459in “redirects before setup detection without loading the discarded workspace”: measured heading displacement14.109375exceeds13. 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 downstreamopenclaw/ci-gateremains 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:
With this change: