Repository navigation
feat: edit plugin settings in author-defined groups - #149246
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: blocked before merge. Reviewed September 16, 2026, 4:22 PM ET / 20:22 UTC (Revision 12). ClawSweeper reviewWhat this changesAdds searchable, author-defined plugin settings groups, compact controls, reset actions, and blur-triggered saving through the existing configuration writer. Merge readiness⛔ Blocked before merge - 1 item remains The feature remains useful and absent from current main. Prior code findings are addressed, and the verified test merge resolves the earlier conflict blocker. No new blocking defect was found. Priority: P2 Review scores
Verification
How this fits togetherPlugin manifests supply configuration schemas and presentation metadata to the Gateway. The Control UI turns these into editable settings and sends changes through the shared configuration writer. flowchart TD
A[Plugin manifest] --> B[Validate optional groups]
B --> C[Gateway configuration schema]
C --> D[Grouped settings editor]
E[Existing configuration] --> D
D --> F[Shared configuration writer]
F --> G[Acknowledged saved configuration]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +766, Tests +1198, Docs +35, Other -1. Total +1998 across 52 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep author-defined grouping as optional presentation metadata over the canonical schema renderer and acknowledged configuration writer. Do we have a high-confidence way to reproduce the issue? Not applicable to the feature request; current main's ungrouped renderer establishes the missing capability. Historical bug repairs were checked against current source and regression coverage, without executing tests. Is this the best way to solve the issue? Yes. The implementation extends manifest presentation metadata and reuses the existing rendering, validation, and save owners; the documented compatibility disposition preserves existing settings. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b45488b243b0. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
77505d9 to
63e6794
Compare
715c40b to
2460fdc
Compare
63e6794 to
3560725
Compare
2460fdc to
1aff7a6
Compare
|
Addressed both schema-dispatch findings and their rank-up move in 96cdf0e. Roots requiring whole-value controls go through the canonical renderer; closed object enums remain atomic when fields are flattened. Three built-app regressions cover root unions, root object enums and nested correlated object enums. All fail before the repair and pass afterward, checking exact writes, untouched sibling values, writer acknowledgment and reload. Also completed the accepted keyboard behavior in 0fb3de1: the open settings dropdown owns Escape, restores its trigger, and leaves the Settings route intact. A second Escape still leaves the detail. Both focus variants fail before/pass after, with 50 shell/consent/install siblings passing. Before/after schema and keyboard proof is attached in the body. Configuration paths, defaults and validation constraints remain unchanged. @clawsweeper re-review — the additional accepted Escape behavior is now implemented alongside the schema fixes. |
Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Derive view inputs from the editor model instead of making the editor depend on its renderer. Preserve the existing field and callback types while removing the import cycle. Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Keep metadata normalization and contained source/artwork resolution in the record owner; leave discovery, install trust, and duplicate resolution in the registry. Remove its retired max-lines suppression. Align the existing provider-source cache regression with native and JavaScript resolution and verify reuse across registry builds. Punchcard-Session: crisp-summit-lantern-qk
Reuse the serialized mock Gateway parser for config reads and write acknowledgements, preserving caller-specific fallback values and saved configuration projections without growing the grandfathered helper. Build post-uninstall inventory from the imported fixture so the moved Calendar fixture remains encapsulated and existing lifecycle assertions run. Punchcard-Session: crisp-summit-lantern-qk
7b5e80f to
0c78bcf
Compare
|
Merged via squash.
|
* feat: edit plugin settings in author-defined groups Punchcard-Session: crisp-summit-lantern-qk * fix: keep empty plugin collections compact Punchcard-Session: crisp-summit-lantern-qk * fix: preserve whole-value plugin schema controls Punchcard-Session: crisp-summit-lantern-qk * test: await acknowledged schema edits before reload Punchcard-Session: crisp-summit-lantern-qk * fix: let plugin settings menus own Escape dismissal Punchcard-Session: crisp-summit-lantern-qk * test: carry direct-route coverage into grouped settings Punchcard-Session: crisp-summit-lantern-qk * refactor: call the catalog icon owner directly Punchcard-Session: crisp-summit-lantern-qk * fix: commit plugin settings before Escape dismissal Punchcard-Session: crisp-summit-lantern-qk * refactor(ui): own plugin editor contract in settings model Derive view inputs from the editor model instead of making the editor depend on its renderer. Preserve the existing field and callback types while removing the import cycle. Punchcard-Session: crisp-summit-lantern-qk * test(ui): use grouped native discovery controls Punchcard-Session: crisp-summit-lantern-qk * test(ui): follow the grouped plugin settings heading Punchcard-Session: crisp-summit-lantern-qk * fix(ui): step from staged plugin setting numbers Punchcard-Session: crisp-summit-lantern-qk * refactor(plugins): separate manifest record construction Keep metadata normalization and contained source/artwork resolution in the record owner; leave discovery, install trust, and duplicate resolution in the registry. Remove its retired max-lines suppression. Align the existing provider-source cache regression with native and JavaScript resolution and verify reuse across registry builds. Punchcard-Session: crisp-summit-lantern-qk * test(ui): keep saved mock config projections authoritative * fix(ui): retain plugin settings during inspection refresh * test(ui): consolidate mock config parsing and uninstall fixtures Reuse the serialized mock Gateway parser for config reads and write acknowledgements, preserving caller-specific fallback values and saved configuration projections without growing the grandfathered helper. Build post-uninstall inventory from the imported fixture so the moved Calendar fixture remains encapsulated and existing lifecycle assertions run. Punchcard-Session: crisp-summit-lantern-qk * test(ui): return valid plugin inspection during config mutations
What Problem This Solves
Plugin settings form one undifferentiated list inside detail tabs, and every keystroke enters the shared save queue.
User Impact
Settings opens a full page with author-defined sections, searchable fields and permissions. Titles/descriptions align to the top of inputs, with a 36px desktop gap, full-row hover and full-width dividers. Checkbox rows toggle once; the ellipsis menu resets defaults. Text commits on blur, including when Escape leaves Settings; discrete controls commit immediately through the existing acknowledged writer. The form has no settings count or raw-key badges.
Why This Change Was Made
Optional manifest
configGroupsassigns existing root properties to one level of sections. Invalid metadata leaves a flat form; unassigned fields appear in Other. Grouping changes no configuration nesting, defaults or validation. Search covers labels, descriptions, groups, paths and nested/dynamic-map fields. Union and object-enum schemas keep their canonical whole-value controls instead of decomposing correlated alternatives.The editor reuses schema rendering, validation, nested defaults and the config coordinator. Explicit flush drains field commits while preserving paused reconnect drafts. Open menus/modal/consent/install surfaces retain Escape priority; otherwise the detail owner blurs the focused input before retirement, including Firefox. No second save path is added. Permissions remain in Settings; lifecycle actions belong to the overview layer.
Production +1,685/−924 (net +761), including the separately proven manifest-record moves, supplies the grouped editor and manifest/schema contract. No runtime option, permission grant or persistent-store change. Tests: +1,284/−380; test support: +381/−87; test configuration: +5; repository baselines: +1/−2; docs: +35. Pure helper moves are discounted when judging growth.
Evidence
Actual built Control UI with identical synthetic, stateful Gateway fixtures; no operator configuration changes. Layouts are checked at 390/768/1366/1440px with contained inputs and no page errors or overflow. The same fixture-only server-version notice appears in the main pair.
Blur save, checkbox-row toggle and Reset.
Empty-array layout, preserving all add/edit/remove behavior:
Canonical schema controls; every after case verifies the complete submitted configuration, untouched siblings, acknowledgement and reload:
Acknowledged reloads: root union, root/nested object enum.
Menu Escape preserves the Settings URL and restores focus without a configuration write:
Focused-input Escape in Firefox 155 at 1280×900: baseline loses the unsaved value; candidate acknowledges exactly one save and retains it after reopening/reload. Chromium preserves both values before and after.
Tracks CLAW-879, Cycle 3.
Punchcard-Session: crisp-summit-lantern-qk
Numeric keyboard repair: compact inherited values now step from the current typed text and save on blur. Before:45→31 → after:45→46. Three intended failures reproduce before the fix; 98 focused cases and the final 7 full keyboard flows pass. Existing noncompact placeholder stepping, exact-one write, Escape, bounds and reload remain covered. Production +3 (one predicate plus ownership comment); tests +87. P0 review scoped-clean.
Real production UI→authenticated Gateway proof now also covers all nine Lossless groups and actual saved state: 32 before → 36 after browser reload. The disposable fixture completes cleanup; no operator state changes. Tested build cf4b66819ade differs in production only by the separately proven numeric keyboard repair; the additional CI fixes affect tests only.
Final landing repairs
Same-plugin inspection refresh used to replace the loaded detail with an empty record. A permission edit was saved successfully, then its control vanished and its group collapsed while inspection reloaded. The detail owner now preserves the existing controls during refresh and replaces them with authoritative inspection when it completes. Navigation and connection changes still retire the old detail. Installed and direct catalog Settings use the same flow.
The canonical browser fixture also now updates the
sourceConfigandresolvedprojections when config.set saves a change, matching the real Gateway response. A forced saved→background-read sequence reproduced the stale device binding before repair; it passes afterward. This changes test support only.These captures use the real bundled UI with a mocked Gateway and deferred inspection. Both reported permission paths and both forced device rereads pass in the 18-case browser run; 61 affected unit cases, UI types, typed lint, formatting and fresh P0 review pass. The lifecycle repair adds six production lines, replacing the duplicate empty-detail initialization. No timeout or assertion was weakened.
Manifest record construction is extracted from the oversized registry module while discovery, trust, precedence and lifecycle remain with the registry. All 22 existing function bodies are unchanged after the two constructor renames, and the 154-record bundled manifest output is byte-identical. The prior line-cap failure is repaired; 180 focused tests, the complete changed-file static plan and fresh P0 review pass. The obsolete max-lines suppression is removed. The existing cache regression now checks native and JavaScript realpath implementations across two registry builds. Hosted CI for the refreshed head remains pending.
The final CI fixture repairs remove duplicated mock config parsing without changing its read/write fallback semantics, replace the stale Calendar identifier with the existing inventory filter, and provide the real typed
plugins.inspectresponse in the pending-config/enable scenario. That scenario fails before the fixture repair and passes afterward; its ordering and assertions remain unchanged. The shared mock repair passes 41 owner tests, 15 browser cases, five fallback probes and all 21 changed-file checks. The integrated final stack passes the full UI E2E type graph and all 12 settings/admin browser cases. These last repairs change test fixtures/support only.