Repository navigation
fix: center pinned agents in Team sidebar - #193101
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper autofix |
|
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +83. Total +85 across 2 files. Added test files: 1. View PR surface stats
LabelsLabel changes:
Label justifications:
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 4, 2026, 8:23 PM ET / November 5, 2026, 01:23 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* fix: center pinned agents in Team sidebar * test: remove one-off pinned-agent capture scaffolding
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.
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.
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):After (captured at
781785dd3; identical production CSS at repaired head9d82178d11d2c332f86e23853a9f22fbe380a87f):pnpm check:changedpassed, including UI and E2E typechecks, format, lint, stylesheet and file-size guards.git diff --checkpassed.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.tsFollow-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-basepasses. Current-head CI run 41947115275 (attempt 1) remains red for two inherited UI-copy assertions: Markdown copy expectsCopied!but receivesCopied, and the French board-localization test expects the English phraseprivate and future results. Both failures reproduced identically on protected-main baselineaa401d8fbdd5ac7eb2755022744f33e996fae85bwithout this PR (2 failed, 12 passed). CI checked out merge3179bc681537b895b2046a99256206f252f7516e; 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. Independentsecurity-fastpassed.