Skip to content

[3546 by Claude Opus 5.5] Plugins page: settings form generated from the manifest, permission approval and managed-item badges - #3571

Merged
propr-dev[bot] merged 5 commits into
3542-epic-plugin-system-xu8from
3546/claude-opus-5-5-plugins-page-settings-for-20261114-1326-stt
Nov 14, 2026
Merged

propr-dev[bot] merged 5 commits into
3542-epic-plugin-system-xu8from
3546/claude-opus-5-5-plugins-page-settings-for-20261114-1326-stt

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3546

Branch: 3546/claude-opus-5-5-plugins-page-settings-for-20261114-1326-stt
Commits: ✅ Changes committed (5b8f1ba)


AI Processing Completed

Execution Details:

Summary:
The Plugins page is finished: settings are now edited through a form generated from the manifest, upgrades show what changed with an Approve action, and managed items are badged and read-only in Skills & MCP servers. Typecheck and zero-warning lint pass, the full UI suite passes (352 files, 3236 tests), and e2e/plugins.pw.ts passes (3 tests). The browser tests run against a mocked plugin API that keeps state between steps, not a real server. No backend code changed.

Configure step

  • PluginSettingsForm.tsx and PluginSettingFields.tsx build one field per setting:
    • text → text box
    • choice list → select with Not set
    • number → number box, with its range shown
    • true/false → checkbox
    • list → text area, one entry per line
    • repository map → rows of repository and value, with this instance's repositories suggested
  • The form starts from the saved settings. Save settings sends every setting at once, and an emptied field removes that setting. The client added setPluginSettings for the existing PUT …/settings route.
  • Values are checked before sending with the API's own validation function from @propr/shared, so the messages are worded the same.
  • The API returns one combined error string. The page splits it by setting name and shows each part under its field; anything that names no field appears above the button.
  • Required settings are marked Required to enable. Configure counts as Done only once they all have values, and the Enable checkbox stays blocked with the API's reason, e.g. "Required setting Verbosity (verbosity) is missing".

Needs approval (PluginApproval.tsx)

  • It shows the new permissions and, for each package server whose package, exact version or secret variables changed, the change compared with the last acknowledgement: "Version changes from 1.0.0 to 1.1.0", "Secret variables added: …", or that the server is new.
  • Approve stays disabled until the acknowledgement checkbox is ticked. Approving clears the badge.

Managed items in Skills & MCP servers

  • Rows show a From plugin: Example pack badge linking to the plugin page. The plugin's display name comes from the plugin list, and the plugin id is shown if that list can't be read.
  • Managed rows have no Remove button, and their Edit button reads Edit limits. For servers it opens ManagedServerForm, which shows the definition read-only (endpoint and authentication, or registry, package, exact version, command, arguments, variables and secret variable names). Only the limits and automatic apply can be changed there; the enabled checkbox stays in the list.
  • A managed skill's form now carries the same read-only note.

Activity: a placeholder section shown once the plugin is installed, saying there is no activity yet.

Changes outside the brief

  • I replaced the example plugin's settings in the shared test fixture with the real manifest's six settings.
  • PluginInstallStep.tsx was split into small modules (PluginAcknowledgements.tsx, pluginApprovalUi.ts) to stay within the lint rules.
  • Besides plugins.md, I updated web-ui.md and the managed-items note in agent-extensions.md to match.

Limitations

  • The browser test shows a client-side field error, not an API refusal: the page runs the same checks as the API first, so a bad value never reaches it. The API-error path is covered by component tests.
  • The repository-map field only suggests this instance's repositories; you can still type any owner/name.

Previews of the form with a field error, the saved settings, Needs approval, the managed-item form and the phone view are attached; they use mocked API data.

Acceptance criteria

  • AC1: met — PluginSettingsForm.tsx, PluginSettingFields.tsx and pluginSettingsUi.ts cover all five types; PluginSettingsForm.test.tsx tests rendering, an unchanged save returning the same values, edits and API errors by field; PluginSettingsAndApproval.test.tsx covers an API refusal on the page; e2e/plugins.pw.ts saves every type and checks them after a reload
  • AC2: met — PluginSettingsAndApproval.test.tsx ("blocks the enabled checkbox while a required setting is missing") and e2e/plugins.pw.ts (empties Verbosity, Enable is blocked with the reason)
  • AC3: met — PluginApproval.tsx, pluginApprovalUi.ts; PluginSettingsAndApproval.test.tsx and the e2e "shows what an upgrade asks for and approving it clears Needs approval"
  • AC4: met — ExtensionManagedItem.tsx and ExtensionItemRow.tsx; ExtensionManagedItem.test.tsx (badge link, no Remove, read-only definition, save changes only limits and automatic apply) and the e2e managed-items steps
  • AC5: met — PluginSettingsForm.test.tsx, PluginSettingsAndApproval.test.tsx, ExtensionManagedItem.test.tsx; e2e/plugins.pw.ts passes (3/3)
  • AC6: met — docs/docs/features/plugins.md (new Settings form, Needs approval and Managed items in Skills & MCP servers sections, updated walkthrough and Activity)

Review digest

Acceptance criteria (6 of 6 met, as stated by the agent)

  • ✅ AC1 (met): The generated form covers every settings type in the schema subset and round-trips values; invalid input shows the field error from the API. — `PluginSettingsForm.tsx`, `PluginSettingFields.tsx` and `pluginSettingsUi.ts` cover all five types; `PluginSettingsForm.test.tsx` tests rendering, an unchanged save returning the same values, edits and API errors by field; `PluginSettingsAndApproval.test.tsx` covers an API refusal on the page; `e2e…
  • ✅ AC2 (met): The enabled checkbox is blocked with a clear reason while a required setting is missing. — `PluginSettingsAndApproval.test.tsx` ("blocks the enabled checkbox while a required setting is missing") and `e2e/plugins.pw.ts` (empties Verbosity, Enable is blocked with the reason)
  • ✅ AC3 (met): Needs approval shows the newly requested permissions or the changed package details and an Approve action; approving clears the badge. — `PluginApproval.tsx`, `pluginApprovalUi.ts`; `PluginSettingsAndApproval.test.tsx` and the e2e "shows what an upgrade asks for and approving it clears Needs approval"
  • ✅ AC4 (met): Managed items show the badge and cannot be edited except for enabled, limits and automatic apply. — `ExtensionManagedItem.tsx` and `ExtensionItemRow.tsx`; `ExtensionManagedItem.test.tsx` (badge link, no Remove, read-only definition, save changes only limits and automatic apply) and the e2e managed-items steps
  • ✅ AC5 (met): Component tests for the generated form and error states; the Playwright spec passes. — `PluginSettingsForm.test.tsx`, `PluginSettingsAndApproval.test.tsx`, `ExtensionManagedItem.test.tsx`; `e2e/plugins.pw.ts` passes (3/3)
  • ✅ AC6 (met): Docs updated in `docs/docs/features/plugins.md`. — `docs/docs/features/plugins.md` (new Settings form, Needs approval and Managed items in Skills & MCP servers sections, updated walkthrough and Activity)

Risk-tiered paths

  • High risk: none
  • Normal risk (20 files)
    • propr-ui/src/api/pluginsApi.ts (+3/−0)
    • propr-ui/src/pages/PluginsPage/PluginAcknowledgements.tsx (added, +42/−0)
    • propr-ui/src/pages/PluginsPage/PluginActivity.tsx (added, +14/−0)
    • propr-ui/src/pages/PluginsPage/PluginApproval.tsx (added, +50/−0)
    • propr-ui/src/pages/PluginsPage/PluginConfigureStep.tsx (+42/−13)
    • propr-ui/src/pages/PluginsPage/PluginDetail.tsx (+4/−2)
    • propr-ui/src/pages/PluginsPage/PluginInstallStep.tsx (+6/−71)
    • propr-ui/src/pages/PluginsPage/PluginSettingFields.tsx (added, +138/−0)
    • propr-ui/src/pages/PluginsPage/PluginSettingsForm.tsx (added, +62/−0)
    • propr-ui/src/pages/PluginsPage/pluginApprovalUi.ts (added, +31/−0)
    • propr-ui/src/pages/PluginsPage/pluginFixtures.testUtils.tsx (+18/−2)
    • propr-ui/src/pages/PluginsPage/pluginSettingsUi.ts (added, +98/−0)
    • propr-ui/src/pages/PluginsPage/usePluginDetail.ts (+8/−5)
    • propr-ui/src/pages/SettingsPage/extensions/ExtensionItemRow.tsx (+8/−5)
    • propr-ui/src/pages/SettingsPage/extensions/ExtensionManagedItem.tsx (added, +106/−0)
    • propr-ui/src/pages/SettingsPage/extensions/ExtensionServersList.tsx (+7/−2)
    • propr-ui/src/pages/SettingsPage/extensions/ExtensionSkillForm.tsx (+5/−1)
    • propr-ui/src/pages/SettingsPage/extensions/ExtensionSkillsList.tsx (+3/−2)
    • propr-ui/src/pages/SettingsPage/extensions/useExtensionLibrary.ts (+3/−0)
    • propr-ui/src/pages/SettingsPage/extensions/usePluginNames.ts (added, +21/−0)
  • Low risk (7 files)
    • docs/docs/features/agent-extensions.md (+2/−2)
    • docs/docs/features/plugins.md (+64/−5)
    • docs/docs/features/web-ui.md (+3/−2)
    • propr-ui/e2e/plugins.pw.ts (+188/−25)
    • propr-ui/src/pages/PluginsPage/PluginSettingsAndApproval.test.tsx (added, +102/−0)
    • propr-ui/src/pages/PluginsPage/PluginSettingsForm.test.tsx (added, +122/−0)
    • propr-ui/src/pages/SettingsPage/extensions/ExtensionManagedItem.test.tsx (added, +96/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 27 files changed, +1,246/−137 lines

Detailed Logs:

  • Conversation: 52 messages
  • Session: 8af71307-ee24-4931-a467-5af0ce1909dd

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3546-2026-11-14T13-47-42-867Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3546-2026-11-14T13-47-42-867Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: The Plugins page is finished: settings are now edited through a form generated from the manifest, upgrades show what changed with an Approve action, and managed items are badged and read-only in Skill...


This PR was created automatically by ProPR after processing issue #3546.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!


Visual preview

Plugin detail on a phone

Plugin detail on a phone

The detail page at 390px width with the new Configure form

Full-size original

Configure step after saving settings

Configure step after saving settings

The saved settings, including a repository-map row, and the repository limit, with the plugin enabled

Full-size original

Managed item in Skills & MCP servers

Managed item in Skills & MCP servers

A plugin-managed package server's Edit limits form: From plugin: Example pack badge, read-only definition, and only limits and automatic apply editable

Full-size original

Needs approval

Needs approval

An upgrade's new permission and the changed package server version and secret variables, with the acknowledgement checkbox and Approve

Full-size original

Generated settings form with a field error

Generated settings form with a field error

Configure step: the form generated from the example manifest (text, select, number, checkbox, list, repository map) with the out-of-range Maximum items error shown under the field and Verbosity marked Required to enable

Full-size original

…generated from the manifest, upgrades show what changed with an Approve action, and managed items are badged and read-only in Skills & MCP servers. Typecheck and zero-warning lint pass, the full UI suite passes (352 files, 3236 tests), and `e2e/plugins.pw.ts` passes (3 tests). The browser tests run against a mocked plugin API that keeps state between steps, not a real server. No backend code changed.

Configure step
- `PluginSettingsForm.tsx` and `PluginSettingFields.tsx` build one field per setting:
  - text → text box
  - choice list → select with Not set
  - number → number box, with its range shown
  - true/false → checkbox
  - list → text area, one entry per line
  - repository map → rows of repository and value, with this instance's repositories suggested
- The form starts from the saved settings. Save settings sends every setting at once, and an emptied field removes that setting. The client added `setPluginSettings` for the existing `PUT …/settings` route.
- Values are checked before sending with the API's own validation function from `@propr/shared`, so the messages are worded the same.
- The API returns one combined error string. The page splits it by setting name and shows each part under its field; anything that names no field appears above the button.
- Required settings are marked Required to enable. Configure counts as Done only once they all have values, and the Enable checkbox stays blocked with the API's reason, e.g. "Required setting Verbosity (verbosity) is missing".

Needs approval (`PluginApproval.tsx`)
- It shows the new permissions and, for each package server whose package, exact version or secret variables changed, the change compared with the last acknowledgement: "Version changes from 1.0.0 to 1.1.0", "Secret variables added: …", or that the server is new.
- Approve stays disabled until the acknowledgement checkbox is ticked. Approving clears the badge.

Managed items in Skills & MCP servers
- Rows show a From plugin: Example pack badge linking to the plugin page. The plugin's display name comes from the plugin list, and the plugin id is shown if that list can't be read.
- Managed rows have no Remove button, and their Edit button reads Edit limits. For servers it opens `ManagedServerForm`, which shows the definition read-only (endpoint and authentication, or registry, package, exact version, command, arguments, variables and secret variable names). Only the limits and automatic apply can be changed there; the enabled checkbox stays in the list.
- A managed skill's form now carries the same read-only note.

Activity: a placeholder section shown once the plugin is installed, saying there is no activity yet.

Changes outside the brief
- I replaced the example plugin's settings in the shared test fixture with the real manifest's six settings.
- `PluginInstallStep.tsx` was split into small modules (`PluginAcknowledgements.tsx`, `pluginApprovalUi.ts`) to stay within the lint rules.
- Besides `plugins.md`, I updated `web-ui.md` and the managed-items note in `agent-extensions.md` to match.

Limitations
- The browser test shows a client-side field error, not an API refusal: the page runs the same checks as the API first, so a bad value never reaches it. The API-error path is covered by component tests.
- The repository-map field only suggests this instance's repositories; you can still type any `owner/name`.

Previews of the form with a field error, the saved settings, Needs approval, the managed-item form and the phone view are attached; they use mocked API data.

Acceptance criteria
- AC1: met — `PluginSettingsForm.tsx`, `PluginSettingFields.tsx` and `pluginSettingsUi.ts` cover all five types; `PluginSettingsForm.test.tsx` tests rendering, an unchanged save returning the same values, edits and API errors by field; `PluginSettingsAndApproval.test.tsx` covers an API refusal on the page; `e2e/plugins.pw.ts` saves every type and checks them after a reload
- AC2: met — `PluginSettingsAndApproval.test.tsx` ("blocks the enabled checkbox while a required setting is missing") and `e2e/plugins.pw.ts` (empties Verbosity, Enable is blocked with the reason)
- AC3: met — `PluginApproval.tsx`, `pluginApprovalUi.ts`; `PluginSettingsAndApproval.test.tsx` and the e2e "shows what an upgrade asks for and approving it clears Needs approval"
- AC4: met — `ExtensionManagedItem.tsx` and `ExtensionItemRow.tsx`; `ExtensionManagedItem.test.tsx` (badge link, no Remove, read-only definition, save changes only limits and automatic apply) and the e2e managed-items steps
- AC5: met — `PluginSettingsForm.test.tsx`, `PluginSettingsAndApproval.test.tsx`, `ExtensionManagedItem.test.tsx`; `e2e/plugins.pw.ts` passes (3/3)
- AC6: met — `docs/docs/features/plugins.md` (new Settings form, Needs approval and Managed items in Skills & MCP servers sections, updated walkthrough and Activity)
@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=10
Triggered automatically by the requested execution settings.

@propr-dev propr-dev Bot added the ultrafix label Nov 14, 2026
@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements the generated settings form, upgrade approval details, and managed-item controls with useful component and browser coverage. It needs a localized correction before merge: settings serialization can silently change valid saved values.

✅ Shared validation — The form uses pluginSettingProblem, matching the API’s value constraints and error wording.

✅ Managed server controls — ManagedServerForm preserves the server definition and exposes only limits and automatic apply.

This review used static analysis of the supplied diff and context. No commands were run. Current checks show no failures and five pending checks.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Preserve valid settings on unchanged saves

  • Category: correctness

  • Required behavior: AC1 requires the generated form to round-trip values. Saving another setting must not silently rewrite or remove valid existing values.

  • Evidence: propr-ui/src/pages/PluginsPage/pluginSettingsUi.ts:12, draftOf, valueOf, and settingsPayload

    1. Install a plugin with a valid saved list such as [" bug ", "", "first\nsecond"]. The supplied shared validator accepts these strings.
    2. Open Configure and change an unrelated setting. draftOf joins the saved list with newlines.
    3. Save settings. listLines splits every newline, trims each entry, and filters empty entries; the submitted list becomes ["bug", "first", "second"].
    4. The API accepts and persists this different list because the form submits every setting and the API replaces the complete settings object.

    Empty collections have the same preservation problem: saved [] and {} become null. The example fixture already supplies labels: [], so an ordinary first save removes that default. If an empty collection is required on an enabled plugin, the client instead refuses an otherwise unchanged save, although the supplied required-setting contract accepts empty collections.

    static trace: Verified against the new conversion helpers and the supplied validatePluginSettings, missingRequiredPluginSettings, and updateSettings implementations. Validation does not protect against this loss because the transformed values are valid, or are interpreted as intentional removal. The round-trip test covers only nonempty collections and simple list strings.

  • Minimum fix: Preserve exact saved values for untouched fields, including empty collections. Provide a lossless representation for list entries containing whitespace, empty strings, or newlines, and distinguish collection removal from a saved empty collection. Add regression coverage for unchanged saves and unrelated-field edits with these values.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Update the introductory status note

The opening “Work in progress” note in docs/docs/features/plugins.md still says the generated settings form arrives in a later release, contradicting the new Settings form section. Updating that existing note would make the documentation consistent; it does not affect runtime correctness.

S2: 🟢 Reuse required-setting detection

missingRequiredSettings duplicates the existing shared missingRequiredPluginSettings presence check before mapping keys to labels. Reusing the shared helper would keep Configure’s completion state aligned with the backend as the contract evolves. This is optional cleanup; the supplied valid persisted values do not demonstrate a current mismatch.

Score

The implementation is well scoped and has useful coverage, but its central round-trip requirement fails for valid settings values. Correct the serialization behavior and add focused regressions before merging.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 48s
  • Tokens: 83,353 (82,285 in / 1,068 out)
  • Cost: $0.77

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 S1 S2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit ca37e50

Addressed 1 AI review comment (IDs: 6878268683)

Addressed finding F1

Summary of Changes

I fixed F1: saving the settings form no longer changes or removes settings you didn't touch. That includes list entries with spaces, empty entries or line breaks, and saved empty lists or maps. Typecheck and zero-warning lint pass, the full UI suite passes (352 files, 3240 tests), and e2e/plugins.pw.ts passes 3 of 3. The browser test still runs against the mocked plugin API.

What changed

  • Untouched settings are sent back exactly as saved. In pluginSettingsUi.ts, each field is compared with its starting state. If it hasn't changed, the save sends the saved value byte for byte, or null if the setting was never set. The pre-save validation checks that same value. One side effect: an unset setting the user didn't touch now stays unset. Before, an unticked checkbox was saved as false.
  • Lists use one box per entry instead of a text area split by lines. Each entry is saved exactly as typed, so spaces, empty entries and line breaks survive. The field has Add entry and Remove buttons.
  • An empty list or map is now different from a removed setting. Each list and map field remembers whether the setting has a value. Removing the last entry saves [] or {}, and a new Clear button removes the setting. The field shows "Not set.", "Empty list." or "No repositories yet." accordingly.
  • Required empty collections save normally. A required list or map that is saved as empty no longer blocks an unchanged save while the plugin is enabled. This matches the API's own required-setting check.

Regression tests

  • In PluginSettingsForm.test.tsx:
    • An unchanged save of [" bug ", "", "first\nsecond"] and channels: {} sends exactly those values.
    • Editing another setting keeps labels: [].
    • Removing the last entry saves [], and Clear saves null.
    • Unset settings stay unset on an unchanged save.
    • A required empty list on an enabled plugin passes the pre-save check.
  • In e2e/plugins.pw.ts:
    • The first save keeps the example plugin's default labels: [].
    • Entries ' bug ' and 'first\nsecond' save exactly and come back the same after a reload.
  • I updated the existing list interactions in both test files and in PluginSettingsAndApproval.test.tsx for the new per-entry boxes.

I updated docs/docs/features/plugins.md to describe the new list field and how saving treats unchanged, empty and cleared settings.

I checked the other code that reads saved settings for the same assumption. The page's missing-required-setting check already counts an empty list as present, which matches the API, so nothing else needed fixing.

I attached two previews from the mocked browser test: the saved list entries, and a saved empty list next to an unset map.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (3 files)
    • propr-ui/src/pages/PluginsPage/PluginSettingFields.tsx (+50/−9)
    • propr-ui/src/pages/PluginsPage/PluginSettingsForm.tsx (+5/−4)
    • propr-ui/src/pages/PluginsPage/pluginSettingsUi.ts (+39/−19)
  • Low risk (4 files)
    • docs/docs/features/plugins.md (+5/−3)
    • propr-ui/e2e/plugins.pw.ts (+9/−3)
    • propr-ui/src/pages/PluginsPage/PluginSettingsAndApproval.test.tsx (+2/−1)
    • propr-ui/src/pages/PluginsPage/PluginSettingsForm.test.tsx (+50/−5)

Validation evidence

  • No repository validation commands ran.

Diff size: 7 files changed, +160/−44 lines

Visual preview

Lossless list and map fields

Lossless list and map fields

Configure step after saving: each list entry has its own box, so ' bug ' keeps its spaces and 'first\nsecond' keeps its line break; lists and repository maps have a Clear action that removes the setting

Full-size original

Saved empty list vs unset map

Saved empty list vs unset map

The example plugin's default empty Labels list is shown as 'Empty list.' and is kept on save; the unset repository map shows 'Not set.'

Full-size original


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 11m 40s
  • Tokens: 1,160,196 (1,143,468 in / 16,728 out)
  • Cost: $0.94

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…emoves settings you didn't touch. That includes list entries with spaces, empty entries or line breaks, and saved empty lists or maps. Typecheck and zero-warning lint pass, the full UI suite passes (352 files, 3240 tests), and `e2e/plugins.pw.ts` passes 3 of 3. The browser test still runs against the mocked plugin API.

I fixed F1: saving the settings form no longer changes or removes settings you didn't touch. That includes list entries with spaces, empty entries or line breaks, and saved empty lists or maps. Typecheck and zero-warning lint pass, the full UI suite passes (352 files, 3240 tests), and `e2e/plugins.pw.ts` passes 3 of 3. The browser test still runs against the mocked plugin API.

**What changed**
- **Untouched settings are sent back exactly as saved.** In `pluginSettingsUi.ts`, each field is compared with its starting state. If it hasn't changed, the save sends the saved value byte for byte, or `null` if the setting was never set. The pre-save validation checks that same value. One side effect: an unset setting the user didn't touch now stays unset. Before, an unticked checkbox was saved as `false`.
- **Lists use one box per entry instead of a text area split by lines.** Each entry is saved exactly as typed, so spaces, empty entries and line breaks survive. The field has **Add entry** and **Remove** buttons.
- **An empty list or map is now different from a removed setting.** Each list and map field remembers whether the setting has a value. Removing the last entry saves `[]` or `{}`, and a new **Clear** button removes the setting. The field shows "Not set.", "Empty list." or "No repositories yet." accordingly.
- **Required empty collections save normally.** A required list or map that is saved as empty no longer blocks an unchanged save while the plugin is enabled. This matches the API's own required-setting check.

**Regression tests**
- In `PluginSettingsForm.test.tsx`:
  - An unchanged save of `[" bug ", "", "first\nsecond"]` and `channels: {}` sends exactly those values.
  - Editing another setting keeps `labels: []`.
  - Removing the last entry saves `[]`, and Clear saves `null`.
  - Unset settings stay unset on an unchanged save.
  - A required empty list on an enabled plugin passes the pre-save check.
- In `e2e/plugins.pw.ts`:
  - The first save keeps the example plugin's default `labels: []`.
  - Entries `' bug '` and `'first\nsecond'` save exactly and come back the same after a reload.
- I updated the existing list interactions in both test files and in `PluginSettingsAndApproval.test.tsx` for the new per-entry boxes.

I updated `docs/docs/features/plugins.md` to describe the new list field and how saving treats unchanged, empty and cleared settings.

I checked the other code that reads saved settings for the same assumption. The page's missing-required-setting check already counts an empty list as present, which matches the API, so nothing else needed fixing.

I attached two previews from the mocked browser test: the saved list entries, and a saved empty list next to an unset map.

PR: #3571
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR adds manifest-generated settings, upgrade approval details, and read-only managed-item forms. It needs a localized correction before merge: the boolean editor cannot distinguish an unset setting from an explicit false.

✅ Shared validation — Settings validation reuses pluginSettingProblem, keeping field constraints and error wording aligned with the API.

✅ Managed definitions preserved — ManagedServerForm changes only limits and automatic apply while retaining the original server definition.

✅ Approval details — Package changes are compared against recorded acknowledgements, and approval remains disabled until required acknowledgements are selected.

The supplied current-head status reports 15 passed checks, no failures, and one pending check. This review uses static analysis only; no commands were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F2: 🔴 Preserve explicit false for unset booleans

  • Category: correctness

  • Required behavior: AC1 requires the generated form to support every settings type; users must be able to save an explicit boolean false independently of leaving the setting unset.

  • Evidence: propr-ui/src/pages/PluginsPage/pluginSettingsUi.ts: draftOf, fieldValue; propr-ui/src/pages/PluginsPage/PluginSettingFields.tsx: CheckboxField

    1. Install a plugin with a required boolean setting without a default. This is permitted by the supplied schema, and the saved settings initially omit that key.
    2. draftOf represents the missing value as false, so the checkbox appears unchecked.
    3. Leave it unchecked—or check and then uncheck it—and save. fieldValue compares the draft against the initial false, considers it unchanged, and returns null instead of false.
    4. The API removes the key, so Enable remains blocked even though false is a valid value satisfying the required setting. The user must first persist an unwanted true before they can persist false.

    static trace: The shared schema permits required booleans without defaults, and missingRequiredPluginSettings accepts a present false. Client validation allows omission while disabled, so it does not prevent this sequence. The existing unset-settings test explicitly expects null but does not test choosing explicit false. The same representation also provides no way to clear an already saved boolean.

  • Minimum fix: Represent boolean presence separately from its value and provide a control for choosing unset versus explicit false/true. Preserve unchanged omissions, and add regression coverage for saving a previously unset required boolean as false and clearing an optional boolean.

Suggestions

These are optional follow-ups and are not sent to /fix.

S3: 🟢 Align documentation with the finished form

The introductory work-in-progress note in docs/docs/features/plugins.md still says the generated settings form will arrive later, and web-ui.md describes a one-per-line list despite the new one-box-per-entry implementation. Updating these descriptions would improve consistency; neither affects runtime correctness.

S4: 🟢 Reuse required-setting detection

pluginSettingsUi.ts duplicates the required-setting presence check already exported as missingRequiredPluginSettings. Reusing that helper and mapping its keys to labels would reduce future semantic drift. The current checks agree for valid persisted values, so this is optional cleanup.

Score

The implementation is focused and has useful component and browser coverage, but the boolean presence bug leaves a valid settings configuration inaccessible through the expected interaction. The correction is localized.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 51s
  • Tokens: 85,257 (84,130 in / 1,127 out)
  • Cost: $0.77

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F2 S3 S4

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 60e54ef

Addressed 1 AI review comment (IDs: 6878827888)

Addressed finding F2

Summary of Changes

I fixed F2: you can now save a true/false setting as an explicit false, separately from leaving it unset, and you can clear one that is already saved. The Plugins tests (5 files, 44 tests), typecheck, zero-warning lint and e2e/plugins.pw.ts (3 of 3, still against the mocked plugin API) all pass. I did not rerun the full UI suite.

What changed

  • The field: a true/false setting is now a list with Not set, Yes and No instead of a checkbox (PluginSettingFields.tsx). A checkbox can only show two states, so an unset setting and a saved false looked the same.
  • The saved values (pluginSettingsUi.ts):
    • A missing value starts as Not set, so choosing No now counts as a change and saves false.
    • Choosing Not set removes the setting.
    • A setting you don't touch still saves exactly what it had: unset stays unset, and a saved false stays false.
  • The rules that block Enable didn't need changes: a saved false already counts as a value for a required setting, so it unblocks Enable.

New tests in PluginSettingsForm.test.tsx:

  • A required true/false setting with no saved value, set to No and saved, sends false.
  • A saved false comes back unchanged when you save without touching it, and setting it back to Not set removes it.
  • The existing tests now pick values from the list instead of clicking the checkbox, and check that it offers Not set, Yes and No.

Also updated

  • e2e/plugins.pw.ts picks from the list instead of using the checkbox.
  • The settings-form table in docs/docs/features/plugins.md and the Configure line in docs/docs/features/web-ui.md now describe the new field.

I attached a preview of the settings form with the field showing a saved No. It uses mocked data.

I found no other part of the form with the same problem. Lists and repository maps already track whether they are set, and an empty text, choice or number field means unset by design.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • propr-ui/src/pages/PluginsPage/PluginSettingFields.tsx (+11/−17)
    • propr-ui/src/pages/PluginsPage/pluginSettingsUi.ts (+10/−6)
  • Low risk (4 files)
    • docs/docs/features/plugins.md (+2/−2)
    • docs/docs/features/web-ui.md (+1/−1)
    • propr-ui/e2e/plugins.pw.ts (+3/−3)
    • propr-ui/src/pages/PluginsPage/PluginSettingsForm.test.tsx (+26/−2)

Validation evidence

  • No repository validation commands ran.

Diff size: 6 files changed, +53/−31 lines

Visual preview

True/false setting with Not set, Yes and No

True/false setting with Not set, Yes and No

Configure step of the generated settings form: Include draft pull requests is now a Not set / Yes / No list showing a saved explicit No (false); mocked plugin API data

Full-size original


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 6m 29s
  • Tokens: 1,139,372 (1,132,119 in / 7,253 out)
  • Cost: $0.70

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…licit `false`, separately from leaving it unset, and you can clear one that is already saved. The Plugins tests (5 files, 44 tests), typecheck, zero-warning lint and `e2e/plugins.pw.ts` (3 of 3, still against the mocked plugin API) all pass. I did not rerun the full UI suite.

I fixed F2: you can now save a true/false setting as an explicit `false`, separately from leaving it unset, and you can clear one that is already saved. The Plugins tests (5 files, 44 tests), typecheck, zero-warning lint and `e2e/plugins.pw.ts` (3 of 3, still against the mocked plugin API) all pass. I did not rerun the full UI suite.

**What changed**
- **The field:** a true/false setting is now a list with **Not set**, **Yes** and **No** instead of a checkbox (`PluginSettingFields.tsx`). A checkbox can only show two states, so an unset setting and a saved `false` looked the same.
- **The saved values** (`pluginSettingsUi.ts`):
  - A missing value starts as **Not set**, so choosing **No** now counts as a change and saves `false`.
  - Choosing **Not set** removes the setting.
  - A setting you don't touch still saves exactly what it had: unset stays unset, and a saved `false` stays `false`.
- **The rules that block Enable** didn't need changes: a saved `false` already counts as a value for a required setting, so it unblocks Enable.

**New tests** in `PluginSettingsForm.test.tsx`:
- A required true/false setting with no saved value, set to **No** and saved, sends `false`.
- A saved `false` comes back unchanged when you save without touching it, and setting it back to **Not set** removes it.
- The existing tests now pick values from the list instead of clicking the checkbox, and check that it offers Not set, Yes and No.

**Also updated**
- `e2e/plugins.pw.ts` picks from the list instead of using the checkbox.
- The settings-form table in `docs/docs/features/plugins.md` and the Configure line in `docs/docs/features/web-ui.md` now describe the new field.

I attached a preview of the settings form with the field showing a saved **No**. It uses mocked data.

I found no other part of the form with the same problem. Lists and repository maps already track whether they are set, and an empty text, choice or number field means unset by design.

PR: #3571
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR substantially delivers the settings form, approval details, and managed-item editing restrictions. It needs a localized correctness fix before merge.

✅ Preserves collection values — Drafts distinguish unset collections from empty collections and preserve list whitespace, empty entries, and line breaks.

✅ Restricts managed server edits — ManagedServerForm preserves the saved definition and exposes only limits and automatic apply.

✅ Explains approval changes — Package changes are compared against recorded acknowledgements, and approval remains blocked until required acknowledgements are checked.

This review is based on static inspection of the supplied code; no commands were run. Current checks report 15 passed, none failed, and one pending.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F3: 🔴 Invalid numeric input can remove settings

  • Category: correctness

  • Required behavior: Invalid settings input must show a field error rather than silently remove a saved value.

  • Evidence: propr-ui/src/pages/PluginsPage/PluginSettingFields.tsx:158, ValueField; propr-ui/src/pages/PluginsPage/pluginSettingsUi.ts:44, valueOf; propr-ui/src/pages/PluginsPage/PluginSettingsForm.tsx:47.

    1. Open a disabled plugin with a saved optional numeric setting, such as maxItems: 10.
    2. Replace its number with an incomplete numeric token such as - or 1e. A browser number input exposes an empty value for invalid numeric input, with validity.badInput distinguishing it from a deliberately cleared field.
    3. The change handler retains only event.target.value, losing that distinction. The draft becomes ''.
    4. Click Save settings. The form uses noValidate, and valueOf converts the empty draft to null. Client validation accepts removal, and the API removes the previously saved setting instead of displaying a numeric error.

    static trace: The browser input handler, null conversion, client validation, and supplied backend replacement contract establish this sequence. No input-validity check preserves the invalid state. The helper test using a manually constructed '1e' draft bypasses the browser input conversion and therefore does not cover this failure. proposed regression: enter an incomplete numeric token in a real browser and assert that saving shows an error without sending a removal.

  • Minimum fix: Preserve or inspect the number input’s invalid-input state and reject submission when badInput is true. Continue treating an intentionally empty, valid input as removal.

Suggestions

These are optional follow-ups and are not sent to /fix.

S5: 🟢 Align the remaining documentation

docs/docs/features/plugins.md still says in its introductory work-in-progress note that generated settings forms will arrive in a later release. docs/docs/features/web-ui.md describes a one-per-line list, while the implemented control uses one box per entry. Updating these remaining descriptions would make the documentation consistent; these are non-blocking editorial corrections.

S6: 🟢 Reuse required-setting detection

missingRequiredSettings duplicates the existing shared missingRequiredPluginSettings predicate. Calling the shared helper and mapping its keys to labels would reduce future drift between Configure and the API’s enable blockers. The supplied implementations agree for persisted valid values, so this is optional cleanup.

Score

The implementation has substantial coverage and follows the intended scope, but invalid numeric input can silently delete a saved setting. That localized regression should be fixed before merge.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 44s
  • Tokens: 86,134 (85,122 in / 1,012 out)
  • Cost: $0.79

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F3 S5 S6

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 6966cc2

Addressed 1 AI review comment (IDs: 6879291532)

Addressed finding F3

Summary of Changes

I fixed F3: if a number box holds text that isn't a number (like - or 1e), Save settings now shows "maxItems must be a number" under the field and sends nothing, so the saved value stays. Emptying the box on purpose still removes the setting.

The fix (PluginSettingsForm.tsx): when you save, the form checks each number box's validity.badInput and treats any that are set as field errors, using the API's wording. The check has to run at save time: typing - into an already empty box leaves its value empty, so React never reports a change. A fix in the change handler would have missed that case and still removed the setting.

Same mistake elsewhere: this is the only number box among the changed files. The Skills & MCP servers forms have none, so nothing else needed changing.

Tests:

  • Component test (PluginSettingsForm.test.tsx): with badInput set on the Maximum items box, saving shows the error and doesn't call save. Clearing badInput then saves maxItems: null.
  • Browser test (e2e/plugins.pw.ts, real Chromium): it types 1e over the saved 10, then - into an emptied box. Both show the error, no settings request is sent, and the saved settings still hold maxItems: 10.
  • Checks that the tests catch the bug: with the fix taken out, both new tests fail. With it back, all 45 Plugins component tests and all 3 browser tests pass, and typecheck and zero-warning lint pass on the changed files. I did not rerun the full UI suite. The browser test still runs against the mocked plugin API.

I attached one preview: the Maximum items box showing 1e with the error under it.

I found no other problems while doing this.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • propr-ui/src/pages/PluginsPage/PluginSettingsForm.tsx (+19/−4)
  • Low risk (2 files)
    • propr-ui/e2e/plugins.pw.ts (+17/−0)
    • propr-ui/src/pages/PluginsPage/PluginSettingsForm.test.tsx (+16/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 3 files changed, +52/−4 lines

Visual preview

Number field holding text that is not a number

Number field holding text that is not a number

Configure step after typing 1e into Maximum items (saved value 10) and clicking Save settings: the field shows "maxItems must be a number" and nothing is sent, so the saved value stays. Mocked plugin API.

Full-size original


🤖 Implementation Details

  • Model: Claude Opus 5.5 (high)
  • Requested By: @propr-ultrafix
  • Time: 7m 19s
  • Tokens: 1,347,434 (1,336,808 in / 10,626 out)
  • Cost: $0.80

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…(like `-` or `1e`), **Save settings** now shows "maxItems must be a number" under the field and sends nothing, so the saved value stays. Emptying the box on purpose still removes the setting.

I fixed F3: if a number box holds text that isn't a number (like `-` or `1e`), **Save settings** now shows "maxItems must be a number" under the field and sends nothing, so the saved value stays. Emptying the box on purpose still removes the setting.

**The fix** (`PluginSettingsForm.tsx`): when you save, the form checks each number box's `validity.badInput` and treats any that are set as field errors, using the API's wording. The check has to run at save time: typing `-` into an already empty box leaves its value empty, so React never reports a change. A fix in the change handler would have missed that case and still removed the setting.

**Same mistake elsewhere:** this is the only number box among the changed files. The Skills & MCP servers forms have none, so nothing else needed changing.

**Tests:**
- **Component test** (`PluginSettingsForm.test.tsx`): with `badInput` set on the Maximum items box, saving shows the error and doesn't call save. Clearing `badInput` then saves `maxItems: null`.
- **Browser test** (`e2e/plugins.pw.ts`, real Chromium): it types `1e` over the saved `10`, then `-` into an emptied box. Both show the error, no settings request is sent, and the saved settings still hold `maxItems: 10`.
- **Checks that the tests catch the bug:** with the fix taken out, both new tests fail. With it back, all 45 Plugins component tests and all 3 browser tests pass, and typecheck and zero-warning lint pass on the changed files. I did not rerun the full UI suite. The browser test still runs against the mocked plugin API.

I attached one preview: the Maximum items box showing `1e` with the error under it.

I found no other problems while doing this.

PR: #3571
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements manifest-generated settings, upgrade approval details, and read-only managed definitions with substantial focused coverage. It needs a localized fix before merge because a refreshed settings schema can crash the detail page.

✅ Value preservation — Unchanged settings retain their saved values, including explicit false, empty collections, and list entries containing whitespace.

✅ Managed definitions — The new server form preserves the definition and submits only changes to limits and automatic apply.

✅ Validation coverage — Component and browser tests cover required settings, field errors, approval acknowledgements, and malformed numeric input.

This review used static inspection only; no commands were run. The supplied current-head checks report no failures and one pending check.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F4: 🔴 Refresh drafts when the settings schema changes

  • Category: correctness

  • Required behavior: The generated settings form must remain usable when a refreshed plugin manifest changes its settings schema.

  • Evidence: propr-ui/src/pages/PluginsPage/PluginConfigureStep.tsx, PluginConfigureStep; propr-ui/src/pages/PluginsPage/PluginSettingsForm.tsx, draft initialization; propr-ui/src/pages/PluginsPage/PluginSettingFields.tsx, ListField and RepositoryMapField.

    1. Open an installed plugin’s settings form. Its drafts initialize from the current manifest.
    2. An upgraded manifest adds an array or repository-map setting while the installation’s saved settings remain unchanged.
    3. The existing refresh after OAuth sign-in returns that manifest. The form’s key includes only installation.settings, so React retains its existing drafts.
    4. Rendering iterates the new schema’s keys and passes undefined as the new collection’s draft. ListField or RepositoryMapField dereferences that draft, throwing instead of displaying the updated settings.

    The settings validation cannot prevent this because the failure occurs during rendering, before submission. The supplied refresh test demonstrates that mounted detail components retain state across refreshed manifests, but tests do not cover schema changes. Verification provenance — static trace: the unchanged settings key preserves state initialized only by useState, while collection rendering requires a populated draft.

  • Minimum fix: Include the settings schema in the form’s reset identity, or reconcile drafts when that schema changes. Cover adding either collection type during a refresh with unchanged saved settings.

Suggestions

These are optional follow-ups and are not sent to /fix.

S7: 🟢 Reconcile the documentation wording

The opening work-in-progress note in docs/docs/features/plugins.md still says generated settings forms arrive in a later release. Also, docs/docs/features/web-ui.md describes a one-per-line list, although the implementation now provides one box per entry and preserves embedded line breaks. Updating these descriptions would remove contradictions; this is optional documentation cleanup.

Score

The implementation has strong focused coverage and no reported failing checks, but schema refresh handling leaves a reachable rendering failure requiring correction.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 55s
  • Tokens: 87,253 (86,175 in / 1,078 out)
  • Cost: $0.81

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F4 S7

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 895f98a

Addressed 1 AI review comment (IDs: 6879822465)

Addressed finding F4

Summary of Changes

I fixed F4. The settings form now starts fresh whenever the settings schema changes, so if a refreshed manifest adds a list or repository-map setting, it shows up as Not set. instead of crashing the page.

Cause. In PluginConfigureStep.tsx, the form was keyed only on the saved settings. After the OAuth sign-in refresh, an upgraded manifest could add a setting while the saved values stayed the same. React kept the old form, which had no field state for the new setting, so the list or repository-map field crashed while drawing. I confirmed this with the new tests before fixing it: both failed at RepositoryMapField.

Fix. The form's key now includes the manifest's settings schema as well as the saved settings, so a changed schema starts the form again from the saved values. The same change also covers a setting whose type changes, and the check that runs before Save settings, which read the same missing state. I updated the form's doc comment to match.

One side effect: if the schema changes during a refresh, anything typed but not yet saved in the form is discarded. Saving already resets the form the same way, and the approval checkboxes already reset when a refresh changes them. The finding allowed this approach; the alternative was to keep edits for unchanged settings, which is more code.

Regression tests. I added PluginDetail.test.tsx, "shows a list / a repository map setting that a refresh after sign-in adds to the schema while the saved settings stay the same". It opens a connected plugin, edits Greeting, clicks Reconnect, and then refreshes with a manifest that adds a list or a repository-map setting. It checks that the new field shows Not set. with its Add button, and that the form restarted from the saved values.

Other places checked.

  • Limit to repositories doesn't use the settings schema.
  • The install and approval acknowledgements already reset when a refresh changes them, and existing tests cover that.

Checks run.

  • Plugins and Settings › extensions component tests: 9 files, 75 tests, all pass.
  • Typecheck and zero-warning lint on src/pages/PluginsPage: both clean.
  • e2e/plugins.pw.ts: 3 of 3 pass, still against the mocked plugin API.
  • I did not rerun the full UI suite.

There are no previews: this fixes a crash and doesn't change the form's design.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • propr-ui/src/pages/PluginsPage/PluginConfigureStep.tsx (+3/−1)
    • propr-ui/src/pages/PluginsPage/PluginSettingsForm.tsx (+2/−2)
  • Low risk (1 file)
    • propr-ui/src/pages/PluginsPage/PluginDetail.test.tsx (+23/−1)

Validation evidence

  • No repository validation commands ran.

Diff size: 3 files changed, +28/−4 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (high)
  • Requested By: @propr-ultrafix
  • Time: 4m 53s
  • Tokens: 721,350 (716,267 in / 5,083 out)
  • Cost: $0.53

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

… settings schema changes, so if a refreshed manifest adds a list or repository-map setting, it shows up as **Not set.** instead of crashing the page.

I fixed F4. The settings form now starts fresh whenever the settings schema changes, so if a refreshed manifest adds a list or repository-map setting, it shows up as **Not set.** instead of crashing the page.

**Cause.** In `PluginConfigureStep.tsx`, the form was keyed only on the saved settings. After the OAuth sign-in refresh, an upgraded manifest could add a setting while the saved values stayed the same. React kept the old form, which had no field state for the new setting, so the list or repository-map field crashed while drawing. I confirmed this with the new tests before fixing it: both failed at `RepositoryMapField`.

**Fix.** The form's key now includes the manifest's settings schema as well as the saved settings, so a changed schema starts the form again from the saved values. The same change also covers a setting whose type changes, and the check that runs before **Save settings**, which read the same missing state. I updated the form's doc comment to match.

One side effect: if the schema changes during a refresh, anything typed but not yet saved in the form is discarded. Saving already resets the form the same way, and the approval checkboxes already reset when a refresh changes them. The finding allowed this approach; the alternative was to keep edits for unchanged settings, which is more code.

**Regression tests.** I added `PluginDetail.test.tsx`, "shows a list / a repository map setting that a refresh after sign-in adds to the schema while the saved settings stay the same". It opens a connected plugin, edits Greeting, clicks Reconnect, and then refreshes with a manifest that adds a list or a repository-map setting. It checks that the new field shows **Not set.** with its Add button, and that the form restarted from the saved values.

**Other places checked.**
- **Limit to repositories** doesn't use the settings schema.
- The install and approval acknowledgements already reset when a refresh changes them, and existing tests cover that.

**Checks run.**
- Plugins and Settings › extensions component tests: 9 files, 75 tests, all pass.
- Typecheck and zero-warning lint on `src/pages/PluginsPage`: both clean.
- `e2e/plugins.pw.ts`: 3 of 3 pass, still against the mocked plugin API.
- I did not rerun the full UI suite.

There are no previews: this fixes a crash and doesn't change the form's design.

PR: #3571
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements manifest-driven settings, clearer upgrade approval, and read-only managed-item definitions with focused component and browser coverage. It is merge-ready within the reviewed scope, conditional on the pending validation check completing successfully.

✅ Settings preservation — Unchanged values retain their saved representation, including explicit false, empty collections, and multiline list entries.

✅ Approval binding — Acknowledgement selections remain bound to the server, package, version, and secret-variable names.

✅ Managed definitions — The new server form preserves the original definition while exposing only repository limits, agent limits, and automatic apply.

This was a static review of the supplied diff and context; no commands or tests were run. Current checks report no failures and one pending validation.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S8: 🟢 Align the remaining documentation

The introductory work-in-progress note in docs/docs/features/plugins.md still says generated settings forms arrive in a later release. docs/docs/features/web-ui.md:132 also describes a “one-per-line list,” whereas the implementation uses one box per entry and preserves embedded newlines. Updating these descriptions would remove minor documentation inconsistencies; neither affects runtime correctness.

S9: 🟢 Preserve upgrades in browser fixtures

In propr-ui/e2e/plugins.pw.ts, approval sets state.upgrade = false, which makes the fixture return the original manifest again. Separating the available version from its approval state would let the browser test verify that approval retains the upgraded manifest and advances the recorded version. This is optional test strengthening: the supplied backend tests already verify approval persistence.

Score

The implementation covers the requested behavior with substantial targeted tests, and the supplied code reveals no verified merge blocker. Final merge readiness remains conditional on the pending check.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 37s
  • Tokens: 88,191 (87,512 in / 679 out)
  • Cost: $0.78

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S8 S9

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 14, 2026
@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ GitHub auto-merge is turned off for this repository, so ProPR merges this PR itself once it is ready (checks passed or no CI configured, and the review goal met).

To let GitHub merge it the moment required checks pass, enable Settings → General → Pull Requests → Allow auto-merge.

@propr-dev
propr-dev Bot merged commit 785750b into 3542-epic-plugin-system-xu8 Nov 14, 2026
42 checks passed
@propr-dev
propr-dev Bot deleted the 3546/claude-opus-5-5-plugins-page-settings-for-20261114-1326-stt branch November 14, 2026 16:34
@propr-dev propr-dev Bot changed the title 🔨 [3546 by Claude Opus 5.5] Plugins page: settings form generated from the manifest, permission approval and managed-item badges [3546 by Claude Opus 5.5] Plugins page: settings form generated from the manifest, permission approval and managed-item badges Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants