Skip to content

fix: center pinned agents in Team sidebar - #193101

Merged
Patrick-Erichsen merged 2 commits into
mainfrom
fix/team-pinned-agents-centered
Nov 5, 2026
Merged

Patrick-Erichsen merged 2 commits into
mainfrom
fix/team-pinned-agents-centered

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes pinned agents staying left-aligned in the Team sidebar when a row has only a few agents.

User Impact

Pinned agents form a centered, compact row. Overflow still wraps, and incomplete rows are centered too. No configuration or migration is needed.

Why This Change Was Made

The auto-fill grid reserved empty columns to the right. A centered wrapping flex layout keeps the 48px avatars and compact 72px cards without stretching sparse rows.

Evidence

Real Control UI in Chromium with synthetic agents and a mocked Gateway, at 1440px desktop and 390px mobile viewports. This is browser proof, not native macOS or production deployment verification.

Before (unfixed main 4fd81b415cbbf0be5176a0ce430336e39d812cc0):

Before: two pinned agents left-aligned

After (captured at 781785dd3; identical production CSS at repaired head 9d82178d11d2c332f86e23853a9f22fbe380a87f):

After: the same pinned agents centered

  • New browser regression failed on the baseline centering invariant and passes with the repair.
  • 7 browser tests passed: centered rows for 1, 2 and 7 pins on desktop/mobile, plus existing pin/unpin, tooltip and keyboard accessibility scenarios at 1440, 1366, 768 and 390px.
  • pnpm check:changed passed, including UI and E2E typechecks, format, lint, stylesheet and file-size guards.
  • git diff --check passed.

Test command:
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/sidebar-pinned-agents-centering.e2e.test.ts ui/src/e2e/sidebar-pinned-agents.e2e.test.ts

Follow-up: removed one-off capture scaffolding from the regression to meet the repository test-line ceiling. All 3 centering cases still pass; pnpm check:test-lines-ratchet --base cc595f5c0 --no-merge-base passes. Current-head CI run 41947115275 (attempt 1) remains red for two inherited UI-copy assertions: Markdown copy expects Copied! but receives Copied, and the French board-localization test expects the English phrase private and future results. Both failures reproduced identically on protected-main baseline aa401d8fbdd5ac7eb2755022744f33e996fae85b without this PR (2 failed, 12 passed). CI checked out merge 3179bc681537b895b2046a99256206f252f7516e; the failing component, test and locale inputs are unchanged in that merge. Landing uses the repository’s guarded pre-existing-failure exception, not a claim of green CI. Independent security-fast passed.

@clawsweeper

clawsweeper Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper autofix

@clawsweeper

clawsweeper Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

@clawsweeper autofix is retired; ClawSweeper now only reviews.

@Patrick-Erichsen
Patrick-Erichsen enabled auto-merge (squash) November 5, 2026 01:11
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 5, 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-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 5, 2026
@clawsweeper

clawsweeper Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR centers pinned-agent cards and incomplete wrapped rows in the Team sidebar.

Example: The sidebar contains two pinned agents, Roboclaw and ClawHub Research and Intelligence.

  • Before: The cards occupy the leftmost grid columns.
  • After: The two compact cards form a centered row.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, correct presentation change with directly visible browser proof; failing broad UI checks still need attribution before landing.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the actual Control UI centering the same two synthetic pinned agents in Chromium with a mocked Gateway; unchanged production CSS carries that result to the reviewed head, while browser regression coverage supports singleton and wrapped rows.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: A sparse pinned-agent row appears left-heavy instead of forming a centered group.
Reason: The supplied maintainer-authored direction and the author's prior merged work on this feature support this small presentation change.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it provides a focused, visually demonstrated layout improvement that current main lacks, with no actionable patch defect found.

Priority: P3
Reviewed head: 9d82178d11d2c332f86e23853a9f22fbe380a87f

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI roster renders pinned-agent preferences and agent metadata as sidebar cards; the changed stylesheet controls their placement without changing persistence or navigation.

flowchart LR
  A[Agent metadata] --> C[Sidebar roster]
  B[Pinned agent preferences] --> C
  C --> D[Pinned card elements]
  E[Sidebar stylesheet] --> D
  D --> F[Centered wrapping rows]
Loading

Technical review

Best possible solution:

Use the existing pinned-agent stylesheet to center fixed-width cards on each wrapped row, retaining the focused browser regression.

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

Current-main CSS explains the sparse-row alignment, and the supplied browser screenshots demonstrate it; no target code was executed during this review.

Is this the best way to solve the issue?

The change directly repairs placement in its existing CSS owner; centered wrapping flex rows handle incomplete final rows without another renderer or state layer.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 4671dd463e04.

Provenance checked

  • Pinned-agent row layout changes intended behavior with a stated reason (0884553: Pinned tiles provided quick agent navigation; the later roster refinement in improve(ui): roster mode leads with agents and uses list rows #188144 retained an auto-fill grid while tightening tile geometry.)
  • Pinned-agent card sizing changes intended behavior with a stated reason (87d8c16: The roster design used compact tiles and 48px avatar discs; this PR explains a 72px card basis to prevent sparse rows from stretching.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Patrick Erichsen: Raw commit 6526caf adds ui/src/styles/sidebar-pinned-agents.css:12 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6526caf78ed0; files: ui/src/styles/sidebar-pinned-agents.css)
  • Vyctor H. Brzezowski: Raw commit 87d8c16 adds ui/src/styles/sidebar-pinned-agents.css:40 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 87d8c16794bd; files: ui/src/styles/sidebar-pinned-agents.css)

PR surface

Source +2, Tests +83. Total +85 across 2 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 4 2 +2
Tests 1 83 0 +83
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 87 2 +85

Labels

Label changes:

  • add P3: This is visual sidebar polish; existing agent access remains functional.
  • 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: This is visual sidebar polish; existing agent access remains functional.
  • 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.

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 4, 2026, 8:23 PM ET / November 5, 2026, 01:23 UTC.

@Patrick-Erichsen
Patrick-Erichsen merged commit 75f9d4b into main Nov 5, 2026
107 of 111 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the fix/team-pinned-agents-centered branch November 5, 2026 02:10
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

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 5, 2026
* fix: center pinned agents in Team sidebar

* test: remove one-off pinned-agent capture scaffolding
RomneyDa added a commit that referenced this pull request Nov 5, 2026
Raise the shared scalar by exactly 93 lines, from 6326473 to 6326566, under explicit maintainer approval for this baseline exception. Do not change tests, allocations, or checker policy.

Main crossed the ceiling at #193101 (+83 against 32 available). Subsequent net debt: #193100 -2, #187104 +17 beyond its allocation, #128175 +25, #193123 -5, #188344 +8, and #193162 -1. The resulting inherited debt is exactly 93 lines; #192587 adds 73 lines with its own matching grant.

At parent 2270152 the canonical LF scanner measured 6479093 test lines against ceiling 6479000. After correction the ceiling equals 6479093 with zero slack. Per-change allocations remain bounded by actual added lines.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
Raise the shared scalar by exactly 93 lines, from 6326473 to 6326566, under explicit maintainer approval for this baseline exception. Do not change tests, allocations, or checker policy.

Main crossed the ceiling at openclaw#193101 (+83 against 32 available). Subsequent net debt: openclaw#193100 -2, openclaw#187104 +17 beyond its allocation, openclaw#128175 +25, openclaw#193123 -5, openclaw#188344 +8, and openclaw#193162 -1. The resulting inherited debt is exactly 93 lines; openclaw#192587 adds 73 lines with its own matching grant.

At parent 21ac250 the canonical LF scanner measured 6479093 test lines against ceiling 6479000. After correction the ceiling equals 6479093 with zero slack. Per-change allocations remain bounded by actual added lines.
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: 🐚 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.

1 participant