Skip to content

fix: keep agent skill names on one line beside their switches - #203734

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
openclaw/vivid-krill-28da30
Nov 25, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
openclaw/vivid-krill-28da30

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

In an agent’s Skills list, switches used to sit beneath the descriptions and badges. Moving each switch beside its name fixed short labels, but a long skill identifier still broke mid-word onto a second line on phones. Its switch sat between the two lines rather than beside the name.

User Impact

A long name now ends in an ellipsis when it runs out of space. Its icon and switch stay on the same line. Descriptions, status badges and requirements remain underneath, without losing text. The switch keeps its full accessible name, and the full name is also available on hover and through the filter.

Why This Change Was Made

The title and switch already share a label. Allowing the skill grid to shrink to its available width lets only the title shorten. The switch stays visible and does not move when the name is long. Skill permissions and saving behavior are unchanged.

Evidence

In the matching phone crops below, the long title changed from two lines (38 px) to one (19 px). The switch remained at x=307, and the description and badges stayed in place. At 390 × 844, 820 × 1180, 1180 × 820 and 1440 × 900, selecting the long name switched off that skill alone; searching for the other skill showed it was still enabled. Both focused browser regressions passed, including a tap on the phone title. Only simulated settings were used.

The clean and marked phone crops compare the previously published head 4551945590d8f with 2291cd130a39e. The original short-name interaction is also preserved: before and after.

Clean comparison

Before After
Before: the long workspace skill name wraps to two lines beside the switch. After: the same name ends in an ellipsis on one line beside its switch.

Annotated comparison

Before After
Outlined: the switch is vertically centered between two lines of skill name. Outlined: one line aligns the name and switch; description and status remain below.

Contributor: @vyctorbrzezowski.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 22, 2026 21:29
Use the skill name and its switch as one native label. Keep descriptions, status badges and missing requirements below at full width and outside the activation target.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: d8405efa-ad55-8166-a5f2-aa9e8bab2ed7
@clawsweeper

clawsweeper Bot commented Nov 22, 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-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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 22, 2026
@clawsweeper

clawsweeper Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR places each agent skill switch beside its name and makes the name activate that switch.

Example: Viewing Field Notebook in an agent’s Skills settings on a 390-pixel-wide phone.

  • Before: The switch appears beneath the description and status badges, separated from the skill name.
  • After: The switch appears beside Field Notebook, with the description and badges underneath.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The visual repair is demonstrated and appropriately scoped, but the exact-head CSS performance comparison establishes a patch-caused required-check failure.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the changed Skills panel with synthetic Field Notebook and Release Digest rows on a narrow display; both switches move beside their names. The body additionally reports a failing-before/passing-after phone-name regression and interaction checks across phone, tablet, and desktop.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: On phones, descriptions and badges separate a skill’s switch from its name, making their association harder to recognize.
Reason: The maintainer-authored direction addresses a demonstrated usability problem with a local presentation change.

Merge readiness

⛔ Needs changes before merge - 1 item remains

This PR provides a useful, focused visual fix and should stay open, but its added CSS causes a required performance check to fail.

Priority: P3
Reviewed head: 4551945590d8ff38bc93aa1f11e76461487381c6

Before merge

  • Reduce the added CSS to pass the existing performance gate (P2) - The added rules increase emitted total CSS raw from 1,779,186 B on the base to 1,779,417 B on the head. Because the base already exceeds the fixed ceiling, the performance check allows only 64 B of build variance; this PR adds 231 B and fails control-ui-performance and the aggregate CI gate. Reduce or consolidate CSS in the touched stylesheet while preserving the demonstrated layout, then rerun the base comparison without raising its budgets.

Findings

  • [P2] Reduce the added CSS to pass the existing performance gate — ui/src/styles/agents.css:951-956
Agent review details

How this fits together

The Control UI renders the selected agent’s skill inventory and effective allowlist, then sends toggle actions through the existing configuration owner.

flowchart TD
  A[Skill inventory and agent config] --> B[Agent Skills panel]
  B --> C[Skill name and native switch]
  C --> D[Existing toggle handler]
  D --> E[Configuration save owner]
  E --> F[Gateway configuration]
Loading

Technical review

Best possible solution:

Retain the native-label fix and reduce the touched stylesheet’s emitted CSS enough to satisfy the existing performance gate.

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

Current-main markup and narrow-screen styles explain the separated switch, and the supplied before screenshot shows it; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The native label is a small, appropriate repair using the existing switch and save owners, with no added state or permission policy.

Full review comments:

  • [P2] Reduce the added CSS to pass the existing performance gate — ui/src/styles/agents.css:951-956
    The added rules increase emitted total CSS raw from 1,779,186 B on the base to 1,779,417 B on the head. Because the base already exceeds the fixed ceiling, the performance check allows only 64 B of build variance; this PR adds 231 B and fails control-ui-performance and the aggregate CI gate. Reduce or consolidate CSS in the touched stylesheet while preserving the demonstrated layout, then rerun the base comparison without raising its budgets.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 42f8c5bcb9f5.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm ui:check-performance:base 50ff9d4
  • pnpm tsgo:ui
  • pnpm lint:ui:styles
  • Run ui/src/e2e/agent-config-save.e2e.test.ts through the repository UI E2E runner, retaining switch and phone-name cases.
  • git diff --check

What I checked:

  • Focused introduced change: The pinned introduced diff moves the existing SettingsToggle into a native label with the skill name, leaves descriptions outside the activation target, and preserves checked, disabled, and onChange behavior. (ui/src/pages/agents/panels-skills.tsx:285, 4551945590d8)
  • Inspected visual evidence: Both downloaded PR screenshots were inspected directly: the before image separates switches from names, and the after image aligns the Field Notebook and Release Digest switches beside their names. (4551945590d8)
  • Diff-attributable CI failure: The exact-head control-ui-performance job reports base total CSS raw of 1,779,186 B and head total CSS raw of 1,779,417 B: 231 B growth exceeds the 64 B variance allowed when the base already exceeds its ceiling. The aggregate CI gate fails on that job. See https://github.com/openclaw/openclaw/actions/runs/45072408560/job/137362657977. (ui/src/styles/agents.css:947, 4551945590d8)
  • Current main still has the old arrangement: Fetched main retains the title and description together and renders the switch afterward in settings-row__control; the central visual fix remains necessary. (ui/src/pages/agents/panels-skills.tsx:285, 42f8c5bcb9f5)
  • Policy and history review: Root and UI AGENTS.md were read and applied alongside Solid, test-audit, and pr-simplify guidance; no maintainer-notes directory exists. History covered current skill rendering, earlier Agents paths, autosave, Solid migration, and lazy stylesheet ownership. Some historical blob traversal was unavailable because lazy fetching is disabled, and the installed Solid cheatsheet is absent; neither prevents assessing this markup-only change. (ui/AGENTS.md:1, 4551945590d8)

PR surface

Source +17, Tests +16. Total +33 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 29 12 +17
Tests 1 22 6 +16
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 51 18 +33

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.

Labels

Label changes:

  • add P3: This improves visual association and touch ergonomics in an existing, usable settings flow.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This improves visual association and touch ergonomics in an existing, usable settings flow.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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 November 22, 2026, 4:46 PM ET / 21:46 UTC.

@roboclaw-bot roboclaw-bot changed the title fix: keep each agent skill switch beside the name it controls fix: keep agent skill names on one line beside their switches Nov 23, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit e5ab4cf into main Nov 25, 2026
81 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/vivid-krill-28da30 branch November 25, 2026 14:30
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 25, 2026
* commit '92569e37ab84a8cb1e4a12c3dcbb45acb97977c9':
  fix: distinguish Desktop sources without wrapping their names or IDs (#203747)
  fix(ui): Greek sigma searches miss matches outside Sessions and Files (#189518)
  fix: keep agent skill names on one line beside their switches (#203734)
  test(cron): admit scheduled occurrences in cron fixtures and fix Node 24 toHex in Vitest (#205383)
  fix: keep the Agents menu usable after copying an ID (#203739)
  fix(whatsapp): preserve code table spaces across message chunks (#205327)
  refactor(cron): admit legacy scheduled requesters through operator admission (#205346)
  fix: keep silent Codex turns healthy with running commands (#196062)
  test(update): verify the recorded preparation failure (#205363)
  fix(test): prove sibling imports on the active update path
  fix(chat): complete mentions without leaving part of the name behind (#205326)
  fix(test): restore Side chat hydration and retry checks (#205376)
  refactor: plugin-run turns get owner status from commands.ownerAllowFrom, like text messages (#205373)
  chore(ui): refresh control ui locales (#205378)
  fix: keep Telegram rich <details> and list blocks in one message when replies stream in chunks (#205318)
  refactor(gateway): one refusal owner with a required next step (#205337)
  fix(discord): keep long table labels bold across messages (#205328)
  feat: invitation, sharing and participant controls in the Control UI (#204920)
  fix(test): distinguish stamped Skill Library upgrade policies
  fix(markdown): preserve trailing inline-code spaces in plain-text tables (#205317)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 26, 2026
…aw#203734)

* fix(ui): keep agent skill switches with their names

Use the skill name and its switch as one native label. Keep descriptions, status badges and missing requirements below at full width and outside the activation target.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix: keep each agent skill switch beside the name it controls

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: d8405efa-ad55-8166-a5f2-aa9e8bab2ed7

* fix: keep long skill names on one line beside their switches

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix: satisfy lint in the touched agents files

---------

Co-authored-by: vyctorbrzezowski <[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 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants