Repository navigation
fix(ui): preserve skill group expansion when filtering - #150911
fuller-stack-dev merged 3 commits into
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. Reviewed September 21, 2026, 2:10 PM ET / 18:10 UTC (Revision 10). ClawSweeper reviewWhat this changesThe PR preserves each retained Skills group’s expanded or collapsed state during filtering by rendering groups with stable identities and adding regression coverage. Merge readiness✅ Ready for maintainer review Keep open: this is a focused, supported fix that current main still needs. No blocking correctness findings remain, and the inspected browser evidence demonstrates the intended improvement. The overlapping maintainer PR remains an unmerged draft. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI Skills page receives the skill inventory from the Gateway and applies search and status filters locally. Its grouped results use native disclosure elements to control which skill rows are visible. flowchart TD
A[Gateway skill inventory] --> C[Local filtering]
B[Search and status selection] --> C
C --> D[Stable skill groups]
D --> E[Keyed group rendering]
E --> F[Disclosure state and visible skill rows]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +4, Tests +253. Total +257 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Use stable group identity in the existing renderer while preserving native expansion state and the initially-open behavior of recreated groups. Do we have a high-confidence way to reproduce the issue? Yes: collapse Workspace while Built-in remains open, then search for a Built-in-only skill. Current-main source retains the positional rendering responsible for the reported failure; this review inspected existing browser proof without executing a new reproduction. Is this the best way to solve the issue? Yes: keying the outer list by existing group IDs repairs the identity mismatch at its owner without adding settings, persistence, or a competing expansion store. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against de747f073085. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
1712bee to
1844d59
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
When filtering removes an earlier group from the Skills inventory, the native <details open> element at the same list position was reused by the browser, transferring the collapsed state from the removed group to the retained one. Key the outer render with repeat() using the stable group id from groupSkills so the browser treats each group as a distinct element and preserves its own expansion state. Fixes openclaw#150345
67b9908 to
141a388
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* commit '8a26ae487b5fb9b72ea2c12bf384e9c776659429': (154 commits) fix(ui): preserve skill group expansion when filtering (#150911) test(gateway): consolidate server history and lifecycle fixtures (#155063) test(codex): select HTTP fallback in native finalizer fixtures (#155008) improve: reduce isolated Gateway CI test time (#154366) test(gateway): await approval registration acknowledgments fix(workboard): explain blocked-card claim recovery (#154990) perf(agents): consolidate exec target policy tests (#155060) perf(config): consolidate environment test fixtures (#155062) fix(ui): keep the chat rail anchored through composer resize fix: recovery tests wait for committed outcomes (#154995) fix(codex): keep inference bursts from failing turns (#154945) fix(memory): keep generated REM reflections out of promotion rankings (#154994) fix(sqlite): reclaim scratch files when storage is full (#154937) test(cli): spawn the compiled Doctor entry in the output process test (#155055) fix(update): distinguish config validation execution failures (#154892) test(doctor): await session cleanup before deleting fixture state fix(update): report unavailable service inspection accurately (#154896) test(gateway): observe plugin approval response completion perf(msteams): reduce file-consent test scaffolding (#155050) fix(ui): retain saved permissions during delayed startup reads (#154982) ...
|
@fuller-stack-dev Thanks~ |
* fix(ui): key skills group render by stable group id When filtering removes an earlier group from the Skills inventory, the native <details open> element at the same list position was reused by the browser, transferring the collapsed state from the removed group to the retained one. Key the outer render with repeat() using the stable group id from groupSkills so the browser treats each group as a distinct element and preserves its own expansion state. Fixes openclaw#150345 * test(ui): preserve skill group identity through filtering * chore: trigger CI re-run --------- Co-authored-by: Jason (Json) <[email protected]>
Closes #150345
What Problem This Solves
Fixes matching skills disappearing from view when a collapsed earlier group is removed by a Skills search or status filter.
User Impact
Retained groups keep their own expanded or collapsed state while filtering. Removed groups still start expanded when restored. No configuration or migration is required.
Why This Change Was Made
Key the outer Lit group list by its existing stable group ID. This preserves native
<details>behavior and the existing keyed skill rows, without introducing a separate expansion store.SunnyShu0925 contributed the production repair. fuller-stack-dev contributed the regression enhancements, which verify retained group and row identity, collapsed-state preservation, details targeting, and removal of a true middle group.
Evidence
view.test.tshas 20 passing cases totaling 344 ms of test-body time; the full three-file command took 84.95 s wall (Vitest duration 61.77 s, largely transform/startup). This is the unchanged tested source, not a fresh timing run.openclaw/ci-gatepassed. UI unit shards took 333/329/426 s including setup and other files; archived per-file CI logs were unavailable to this checkout, so these are not incremental costs for this test.Real-browser screenshots (Chromium via Playwright, 1280×720 desktop and 390×844 narrow):
Desktop — After fix, initial / collapsed / filtered (Built-in retains open):

Desktop — Before fix, filtering: Built-in inherited collapsed state, "Weather" hidden:

Narrow (390px) — After fix, initial / collapsed / filtered:

AI Assistance
AI-assisted investigation, implementation, regression strengthening, browser proof, and independent code review. Original production fix and screenshots by SunnyShu0925.