Skip to content

[3511 by Claude Opus 5.5] Settings: flat Skills & MCP servers list with enable checkboxes and per-item limits; additional extensions in the automation editor - #3525

Merged
integry merged 4 commits into
3509-epic-extensions-library-14jfrom
3511/claude-opus-5-5-settings-flat-skills-mcp--20261113-0807-v70
Nov 13, 2026
Merged

integry merged 4 commits into
3509-epic-extensions-library-14jfrom
3511/claude-opus-5-5-settings-flat-skills-mcp--20261113-0807-v70

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3511

Branch: 3511/claude-opus-5-5-settings-flat-skills-mcp--20261113-0807-v70
Commits: ✅ Changes committed (0265329)


AI Processing Completed

Execution Details:

Summary:
I've rebuilt the Skills & MCP servers screen as two flat lists (MCP servers and Skills), and the automation editor now has an "Additional extensions" control. The UI checks pass: typecheck, lint with zero warnings, all 3143 vitest tests, and both Playwright specs (23 tests). I didn't run the full repository test suite.

Settings screen. The old 835-line AgentExtensionsSection.tsx is now a short container. The lists, forms, shared row and limits control live in propr-ui/src/pages/SettingsPage/extensions/.

  • Rows: each one shows an enabled checkbox, name, kind, a Read/Write badge, where it applies ("All repositories" or the list), and whether it applies automatically.
  • Enabled checkbox: one click saves through the single-item endpoint. While the request runs the checkbox is disabled. If it fails, the checkbox goes back to its previous state and the error is shown. A switched-off row stays in the list, dimmed with an "Off" status, and keeps its settings and stored token.
  • Add server / Add skill: one form each, with "Limit to repositories", "Apply automatically" (on by default), and "Limit to agents" under a collapsed "Advanced". The skill form takes an already imported bundle, an archive or a pinned GitHub commit.
  • Remove: asks for confirmation. If an automation adds the item, the API's refusal naming those automations is shown.
  • Explanation and warnings: the short explanation sits at the top. Warnings cover:
    • the Codex limitation, on items that can reach a Codex agent.
    • more than 8 servers or 8 skills applying to one repository/agent combination.
    • "Imported from profile X; not applied automatically".
    • which automations add an item, and on a switched-off item, that they currently run without it.
    • a missing Bearer token.
  • Revision history, connectivity validation and phone width (checked at 390 px) still work.

Behaviour changes:

  • No more "Save library" button. Each form, checkbox and removal saves straight away against the latest revision.
  • Changing a server's name or endpoint clears its stored token. The server already worked this way; the form now warns you to enter the token again.

API addition. The library read (GET /api/instance/extensions/v1) now also returns usage: which automations add each item and which profile each migrated item came from. The logic is in packages/core/src/extensions/extensionLibraryUsage.ts, with a new core test. I updated the OpenAPI schema and regenerated propr-api.yaml and the client types.

Automation editor. ExtensionItemsSelector is replaced by AdditionalExtensionsSelector, wired into AgentSettingsForm.tsx. It offers only items whose limits allow the automation's repositories and agent, and marks items that already apply automatically. A selected item that has been removed, switched off or no longer matches is shown as skipped with the reason and can still be unticked. Members still see it read-only.

Profile wording is gone from the UI, settingsCategoryGuides.ts and AgentExtensionsGuide.tsx, except the required "Imported from profile X" note. agent-extensions.md, agents.md (the automations docs) and web-ui.md describe the new screens.

Tests. There are new component tests for the lists, the checkbox (success, in flight, failure rollback), both forms, the removal refusal, the warnings and the automation control. Both Playwright specs are rewritten for the new flow, including save-and-reload round trips of the enabled state, limits, automatic apply and token status.

Preview screenshots were captured for the lists, the server form, phone width and the automation control.

Detailed Logs:

  • Conversation: 60 messages
  • Session: dc90dd47-d649-4542-ae5b-3ffea1d2ae3e

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3511-2026-11-13T08-40-52-955Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3511-2026-11-13T08-40-52-955Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: I've rebuilt the Skills & MCP servers screen as two flat lists (MCP servers and Skills), and the automation editor now has an "Additional extensions" control. The UI checks pass: typecheck, lint with ...


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


💡 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

Automation additional extensions

Automation additional extensions

The automation editor's Additional extensions control: MCP server and skill lists, an automatic item marked, and a switched-off item shown as skipped.

Connect sign-in required. Original retained until 2027-02-11T08:40:58.273Z.

View the full-resolution original in ProPR Connect

Skills & MCP servers lists

Skills & MCP servers lists

Flat MCP server and skill lists with enabled checkboxes; a switched-off server stays dimmed with an Off status.

Connect sign-in required. Original retained until 2027-02-11T08:40:59.488Z.

View the full-resolution original in ProPR Connect

Phone width

Phone width

The lists at 390 px width.

Connect sign-in required. Original retained until 2027-02-11T08:41:00.757Z.

View the full-resolution original in ProPR Connect

Add server form

Add server form

One form for an HTTPS or catalog server with tools, capability, write-only token, repository limit, Apply automatically and the agent limit under Advanced.

Connect sign-in required. Original retained until 2027-02-11T08:41:02.060Z.

View the full-resolution original in ProPR Connect

…ervers and Skills), and the automation editor now has an "Additional extensions" control. The UI checks pass: typecheck, lint with zero warnings, all 3143 vitest tests, and both Playwright specs (23 tests). I didn't run the full repository test suite.

Settings screen. The old 835-line `AgentExtensionsSection.tsx` is now a short container. The lists, forms, shared row and limits control live in `propr-ui/src/pages/SettingsPage/extensions/`.
- Rows: each one shows an enabled checkbox, name, kind, a Read/Write badge, where it applies ("All repositories" or the list), and whether it applies automatically.
- Enabled checkbox: one click saves through the single-item endpoint. While the request runs the checkbox is disabled. If it fails, the checkbox goes back to its previous state and the error is shown. A switched-off row stays in the list, dimmed with an "Off" status, and keeps its settings and stored token.
- Add server / Add skill: one form each, with "Limit to repositories", "Apply automatically" (on by default), and "Limit to agents" under a collapsed "Advanced". The skill form takes an already imported bundle, an archive or a pinned GitHub commit.
- Remove: asks for confirmation. If an automation adds the item, the API's refusal naming those automations is shown.
- Explanation and warnings: the short explanation sits at the top. Warnings cover:
  - the Codex limitation, on items that can reach a Codex agent.
  - more than 8 servers or 8 skills applying to one repository/agent combination.
  - "Imported from profile X; not applied automatically".
  - which automations add an item, and on a switched-off item, that they currently run without it.
  - a missing Bearer token.
- Revision history, connectivity validation and phone width (checked at 390 px) still work.

Behaviour changes:
- No more "Save library" button. Each form, checkbox and removal saves straight away against the latest revision.
- Changing a server's name or endpoint clears its stored token. The server already worked this way; the form now warns you to enter the token again.

API addition. The library read (`GET /api/instance/extensions/v1`) now also returns `usage`: which automations add each item and which profile each migrated item came from. The logic is in `packages/core/src/extensions/extensionLibraryUsage.ts`, with a new core test. I updated the OpenAPI schema and regenerated `propr-api.yaml` and the client types.

Automation editor. `ExtensionItemsSelector` is replaced by `AdditionalExtensionsSelector`, wired into `AgentSettingsForm.tsx`. It offers only items whose limits allow the automation's repositories and agent, and marks items that already apply automatically. A selected item that has been removed, switched off or no longer matches is shown as skipped with the reason and can still be unticked. Members still see it read-only.

Profile wording is gone from the UI, `settingsCategoryGuides.ts` and `AgentExtensionsGuide.tsx`, except the required "Imported from profile X" note. `agent-extensions.md`, `agents.md` (the automations docs) and `web-ui.md` describe the new screens.

Tests. There are new component tests for the lists, the checkbox (success, in flight, failure rollback), both forms, the removal refusal, the warnings and the automation control. Both Playwright specs are rewritten for the new flow, including save-and-reload round trips of the enabled state, limits, automatic apply and token status.

Preview screenshots were captured for the lists, the server form, phone width and the automation control.
@propr-dev

propr-dev Bot commented Nov 13, 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 13, 2026
@propr-dev

propr-dev Bot commented Nov 13, 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 13, 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 13, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR delivers the flat lists and automation selector, but needs changes before merge. Four regressions affect credential handling, concurrent editing, and form behavior.

✅ Focused components — Lists, forms, shared controls, and persistence logic replace the large settings component.

✅ Toggle and permission coverage — Tests cover in-flight disabling, failure rollback, removal refusals, and read-only automation selections.

✅ Consistent API additions — Usage information is represented in the route, schema, generated client, and documentation.

The supplied checks report 30 passed, four pending, and no failures. 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.

F1: 🔴 Clear pending tokens when endpoints change

  • Required behavior: Changing a server endpoint must not silently transfer credentials intended for the previous endpoint.

  • Evidence: propr-ui/src/pages/SettingsPage/extensions/ExtensionServerForm.tsx, change and submit.

    1. Open a Bearer server pointing at endpoint A and enter a replacement token intended for A.
    2. Change the endpoint to B. change updates only draft; the separate token state retains the token.
    3. Save. submit passes that token, and ExtensionServersList.save sends it as an explicit replacement for the server now pointing at B.

    The backend accepts explicit replacements ahead of its same-endpoint credential-retention check, so subsequent calls to B use A’s token. The warning addresses stored tokens and disappears when a pending token exists; it does not prevent this transfer. Switching authentication to None and back also retains the pending token.

    static trace: the removed changeServer cleared pending secrets on endpoint changes and authentication removal; the replacement does neither. The previous browser assertions covering those transitions were removed.

  • Minimum fix: Clear pending tokens whenever the endpoint changes or authentication becomes None, including changes through the saved-endpoint picker. Restore regression coverage for both transitions.

F2: 🔴 Preserve conflict detection for open forms

  • Required behavior: Saving an existing edit must not overwrite newer configuration using a revision that the edit was never based on.

  • Evidence: propr-ui/src/pages/SettingsPage/extensions/useExtensionLibrary.ts, reload and save; propr-ui/src/pages/SettingsPage/extensions/libraryEdits.ts, withServer and withSkill.

    1. Administrator A opens a server edit with unrestricted repositories. Its draft is captured by ExtensionServerForm’s state initializer.
    2. Administrator B restricts that server to one repository and saves.
    3. A clicks Reload. The hook adopts B’s revision, but the existing form remains mounted under the same server key and retains its unrestricted draft.
    4. A saves another field. save uses the newly adopted revision, while withServer replaces the current item with the stale draft, preserving only enabled.

    B’s restriction is silently removed. The backend revision check succeeds because the request carries B’s revision. Skill forms retain their limits in the same way. A toggle on another item can also adopt an external update while either form remains open.

    static trace: the new forms initialize drafts once, while reload and toggle responses advance current.current independently. The removed editor preserved the draft’s base revision and remounted drafts on reload.

  • Minimum fix: Track the saved item or revision each form was opened against and refuse conflicting replacements. Reload must explicitly reset or close open forms. Apply the protection to both server and skill edits.

F3: 🔴 Make switching back to HTTPS work

  • Required behavior: The Add server form must allow selecting either an HTTPS endpoint or an operator catalog entry.

  • Evidence: propr-ui/src/pages/SettingsPage/extensions/ExtensionServerForm.tsx, Server type onChange; propr-ui/src/pages/SettingsPage/extensions/libraryEdits.ts, newHttpsServer.

    1. Open Add server and select an operator catalog entry.
    2. Change Server type back to HTTPS endpoint.
    3. The handler calls newHttpsServer(servers, value) with the complete catalog descriptor as the limits argument.
    4. newHttpsServer spreads that argument after its HTTPS defaults, so value.kind === 'catalog' overwrites kind: 'https'.

    The selector returns to the catalog entry and the HTTPS endpoint field remains absent. TypeScript’s structural typing permits the extra properties; no runtime projection removes them.

    static trace: the spread order directly preserves the catalog kind and catalog-specific fields.

  • Minimum fix: Pass or copy only repositories, agents, and autoApply into the HTTPS constructor, ensuring the resulting descriptor contains only HTTPS fields.

F4: 🔴 Prevent older responses replacing newer revisions

  • Required behavior: Successful independent item switches must leave the UI showing the newest saved library state.

  • Evidence: propr-ui/src/pages/SettingsPage/extensions/useExtensionLibrary.ts, adopt and toggle; propr-ui/src/pages/SettingsPage/extensions/ExtensionItemRow.tsx, checkbox disabling.

    1. Start disabling item A. Its request commits revision 4, but its HTTP response is delayed.
    2. Disable item B while A is pending. Only A’s checkbox is disabled, so this request is allowed; it commits revision 5 containing both changes.
    3. B’s response arrives first and adopts revision 5.
    4. A’s delayed response then unconditionally adopts revision 4.

    The UI now shows B enabled although it is disabled in the database, and subsequent form saves use stale revision 4 and fail. The interruption window is the awaited setExtensionItemEnabled request. Database transactions serialize commits, but do not order HTTP response delivery; per-item pending flags do not protect the shared snapshot.

    static trace: every response calls unconditional adopt, with no revision comparison. The removed editor disabled its entire fieldset during operations, preventing these overlapping user mutations.

  • Minimum fix: Reject snapshots older than the currently adopted revision across toggle, save, and reload responses, or serialize these operations. Add a regression that resolves two successful toggle responses in reverse revision order.

Suggestions

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

No suggestions.

Score

The implementation has useful coverage and a clearer structure, but credential transfer and lost-update regressions require correction alongside the two other demonstrated defects. Current checks show no failures, with four still pending.

Score: 5/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 28s
  • Tokens: 104,341 (102,523 in / 1,818 out)
  • Cost: $0.98

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 F2 F3 F4

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 6e33e71

Addressed 1 AI review comment (IDs: 6848574186)

Addressed findings F1, F2, F3, F4

Summary of Changes

I've fixed F1–F4 in the Skills & MCP servers screen and added a regression test for each. The UI checks pass: typecheck, lint with zero warnings, all 3149 vitest tests, and the 6 tests in e2e/agent-extensions.pw.ts. I didn't run the full repository test suite. I also ran the 5 new vitest tests against the original code, and all 5 failed there.

F1 – pending token follows the endpoint. In ExtensionServerForm.tsx, a token you've typed but not saved is now cleared when:

  • the endpoint changes, by typing or through the saved-endpoint picker.
  • authentication is set to None.
  • the server type changes.

A vitest test covers all three transitions and checks that the save sends no token. I added the same assertions to the Playwright token test.

F2 – open forms can't overwrite newer settings.

  • Saving: each form now remembers the saved item it was opened on. In libraryEdits.ts, withServer and withSkill refuse to save if that item has since changed (apart from its on/off state) or been removed. The form then shows "…was changed elsewhere after you opened it. Reload to edit the current settings." This also covers a newer revision arriving through a switch on another item.
  • Adding: a new server whose name, or a new skill whose bundle, was added by someone else in the meantime is refused the same way.
  • Reload: Reload now closes any open server or skill form.
  • Tests: these cover the refusal for both kinds, a save that still goes through when only other items changed, and Reload closing both forms.

F3 – switching back to HTTPS works. newHttpsServer now copies only repositories, agents and autoApply, so switching from a catalog entry back to HTTPS gives a plain HTTPS server. A test checks the endpoint field returns and the saved server is a clean HTTPS one.

F4 – older responses no longer replace newer ones. In useExtensionLibrary.ts, a library response older than the one already shown is now ignored, whether it comes from a switch, a save or a reload. A test resolves two switch responses in reverse order (revision 5, then 4). The newer state stays shown and the next save uses revision 5.

I checked the other places these assumptions could show up. Removal reads the latest library, and the catalog option copies only explicit fields, so neither needed a change. I didn't create preview images: these changes affect behaviour and an error message, not how the screen looks.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 11m 46s
  • Tokens: 1,697,267 (1,680,607 in / 16,660 out)
  • Cost: $1.05

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

…ed a regression test for each. The UI checks pass: typecheck, lint with zero warnings, all 3149 vitest tests, and the 6 tests in `e2e/agent-extensions.pw.ts`. I didn't run the full repository test suite. I also ran the 5 new vitest tests against the original code, and all 5 failed there.

I've fixed F1–F4 in the Skills & MCP servers screen and added a regression test for each. The UI checks pass: typecheck, lint with zero warnings, all 3149 vitest tests, and the 6 tests in `e2e/agent-extensions.pw.ts`. I didn't run the full repository test suite. I also ran the 5 new vitest tests against the original code, and all 5 failed there.

**F1 – pending token follows the endpoint.** In `ExtensionServerForm.tsx`, a token you've typed but not saved is now cleared when:
- the endpoint changes, by typing or through the saved-endpoint picker.
- authentication is set to None.
- the server type changes.

A vitest test covers all three transitions and checks that the save sends no token. I added the same assertions to the Playwright token test.

**F2 – open forms can't overwrite newer settings.**
- **Saving:** each form now remembers the saved item it was opened on. In `libraryEdits.ts`, `withServer` and `withSkill` refuse to save if that item has since changed (apart from its on/off state) or been removed. The form then shows "…was changed elsewhere after you opened it. Reload to edit the current settings." This also covers a newer revision arriving through a switch on another item.
- **Adding:** a new server whose name, or a new skill whose bundle, was added by someone else in the meantime is refused the same way.
- **Reload:** Reload now closes any open server or skill form.
- **Tests:** these cover the refusal for both kinds, a save that still goes through when only other items changed, and Reload closing both forms.

**F3 – switching back to HTTPS works.** `newHttpsServer` now copies only `repositories`, `agents` and `autoApply`, so switching from a catalog entry back to HTTPS gives a plain HTTPS server. A test checks the endpoint field returns and the saved server is a clean HTTPS one.

**F4 – older responses no longer replace newer ones.** In `useExtensionLibrary.ts`, a library response older than the one already shown is now ignored, whether it comes from a switch, a save or a reload. A test resolves two switch responses in reverse order (revision 5, then 4). The newer state stays shown and the next save uses revision 5.

I checked the other places these assumptions could show up. Removal reads the latest library, and the catalog option copies only explicit fields, so neither needed a change. I didn't create preview images: these changes affect behaviour and an error message, not how the screen looks.

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

propr-dev Bot commented Nov 13, 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 13, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR replaces the large library editor with focused lists and forms, adds usage metadata, and filters automation extensions by their limits. It needs a localized correction before merge: a valid server name can crash the new usage-note rendering.

✅ Revision handling — Older responses are discarded, and form saves check whether the edited item changed while preserving unrelated updates.

✅ Immediate toggles — Checkboxes use the single-item endpoint, disable while pending, and restore saved state after failure; dedicated tests cover these transitions.

✅ Permission preservation — The automation selector avoids loading the administrative library for members and displays their saved selections read-only.

The supplied checks show 34 passed, none failed, and one pending. This review used static analysis only, as requested.

Merge blockers

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

F5: 🔴 Handle inherited keys in usage maps

  • Required behavior: Valid library server names must render safely, and usage metadata must treat server names as data rather than inherited object properties.

  • Evidence: propr-ui/src/pages/SettingsPage/extensions/extensionNotes.ts:17, itemNotes; packages/core/src/extensions/extensionLibraryUsage.ts:22, add.

    1. A library contains a server named constructor, matching the documented lowercase server-name format, with autoApply: false.
    2. With no migration mapping for that server, importedFrom.servers is an ordinary empty object. Reading importedFrom.servers[server.name] returns the inherited Object constructor.
    3. Its length is 1, so the migration-note condition passes. quoted(importedFrom) then calls .map() on that function and throws, preventing the settings lists from rendering.
    4. The sibling backend path also fails if a migrated server has that name: add spreads target[key], which resolves to the inherited constructor and is not iterable. The library GET consequently fails.

    static trace: JavaScript property lookup on the ordinary objects created in EMPTY_USAGE and importedFrom demonstrates both failures. Neither path checks ownership before reading the key, and the supplied usage tests cover ordinary names only.

  • Minimum fix: Use own-property checks when reading provenance entries in both the backend accumulator and frontend notes. A null-prototype backend accumulator also prevents inherited-key collisions there, but the frontend still needs safe lookup after JSON parsing. Add regression coverage for constructor with and without migration provenance.

Suggestions

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

S1: 🟢 Batch provenance queries

extensionLibraryUsage.ts performs a sequential snapshot lookup for every legacy mapping, plus another lookup when its revision is absent. Fetching the relevant profiles and revisions in batches would reduce library-read latency on installations with substantial migration history. This is optional because the supplied evidence establishes additional query work, not a demonstrated availability failure.

Score

The implementation is focused and well covered, with strong supplied CI results. The inherited-key defect requires correction because it can break both settings rendering and the library read endpoint.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 58s
  • Tokens: 106,076 (105,009 in / 1,067 out)
  • Cost: $0.99

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 F5 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 890e694

Addressed 1 AI review comment (IDs: 6849781390)

Addressed finding F5

Summary of Changes

F5 is fixed. Library item names are now treated as plain data in the settings UI and in the backend usage code, so a server named constructor no longer breaks the settings lists or the library GET.

Backend (packages/core/src/extensions/extensionLibraryUsage.ts)

  • The usage maps are now built on objects with no inherited properties, so names like constructor, or a valid name like __proto__, can't collide with built-in object properties.
  • add only reads an existing entry when that name is actually in the map.
  • The result is turned back into ordinary objects before it's returned, so the API response shape is unchanged.

Frontend

  • A new helper, ownEntry, in extensionUi.ts reads a name from a map only if the map really holds that name.
  • itemNotes (extensionNotes.ts) uses it for the "Imported from profile" lookup and for the Bearer-token check.
  • Same bug in one more place: CatalogServerDetails (ExtensionServerFields.tsx, also added by this PR) looked up secrets[server.name] directly. For a catalog server named constructor with no stored secret entry, that lookup found the built-in property instead of nothing, so the catalog's own secret status was never checked and it showed "Operator secrets: not configured" by mistake. It now uses ownEntry too.

Regression tests

  • Core usage test: the library now includes constructor (with a migration mapping) and tostring (without one). constructor is reported with its profile and tostring is left out.
  • UI tests:
    • constructor with no migration history shows no "Imported from" note.
    • constructor with migration history shows "Imported from profile “Docs”".
    • A catalog server named constructor falls back to the catalog's secret status.
  • I ran the new tests against the original code: the core test failed with a TypeError, and two of the three UI tests failed. The UI case with migration history already passed on the original code; it covers the second half of what the finding asked for.

Checks run

  • The core usage test passes.
  • The 270 vitest tests in propr-ui/src/pages/SettingsPage pass.
  • Typecheck is clean for packages/core and propr-ui.
  • Lint passes with zero warnings on the changed files.

I didn't run the full repository test suite. I skipped a visual preview because this is a crash fix for an unusual item name, not a visible UI change.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 6m 27s
  • Tokens: 595,259 (588,416 in / 6,843 out)
  • Cost: $0.48
  • Subscription usage: Weekly +1%

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

…ta in the settings UI and in the backend usage code, so a server named `constructor` no longer breaks the settings lists or the library GET.

F5 is fixed. Library item names are now treated as plain data in the settings UI and in the backend usage code, so a server named `constructor` no longer breaks the settings lists or the library GET.

**Backend** (`packages/core/src/extensions/extensionLibraryUsage.ts`)
- The usage maps are now built on objects with no inherited properties, so names like `constructor`, or a valid name like `__proto__`, can't collide with built-in object properties.
- `add` only reads an existing entry when that name is actually in the map.
- The result is turned back into ordinary objects before it's returned, so the API response shape is unchanged.

**Frontend**
- A new helper, `ownEntry`, in `extensionUi.ts` reads a name from a map only if the map really holds that name.
- `itemNotes` (`extensionNotes.ts`) uses it for the "Imported from profile" lookup and for the Bearer-token check.
- **Same bug in one more place:** `CatalogServerDetails` (`ExtensionServerFields.tsx`, also added by this PR) looked up `secrets[server.name]` directly. For a catalog server named `constructor` with no stored secret entry, that lookup found the built-in property instead of nothing, so the catalog's own secret status was never checked and it showed "Operator secrets: not configured" by mistake. It now uses `ownEntry` too.

**Regression tests**
- **Core usage test:** the library now includes `constructor` (with a migration mapping) and `tostring` (without one). `constructor` is reported with its profile and `tostring` is left out.
- **UI tests:**
  - `constructor` with no migration history shows no "Imported from" note.
  - `constructor` with migration history shows "Imported from profile “Docs”".
  - A catalog server named `constructor` falls back to the catalog's secret status.
- I ran the new tests against the original code: the core test failed with a TypeError, and two of the three UI tests failed. The UI case with migration history already passed on the original code; it covers the second half of what the finding asked for.

**Checks run**
- The core usage test passes.
- The 270 vitest tests in `propr-ui/src/pages/SettingsPage` pass.
- Typecheck is clean for `packages/core` and `propr-ui`.
- Lint passes with zero warnings on the changed files.

I didn't run the full repository test suite. I skipped a visual preview because this is a crash fix for an unusual item name, not a visible UI change.

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

propr-dev Bot commented Nov 13, 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 13, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR implements the flat lists, immediate saves, usage notes, and automation selector with substantial focused coverage. It needs a localized performance correction before merge.

✅ Concurrent edit protection — Form saves compare the opened item with current settings, while revision adoption rejects older responses.

✅ Toggle recovery — Checkboxes show pending state, roll back after failure, and preserve settings through the existing single-item endpoint.

The supplied checks show 31 passed, three pending, and no failures. This review used static analysis only; no commands were run.

Merge blockers

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

F6: 🔴 Bound the overlap-warning computation

  • Required behavior: Rendering a valid extension library must remain usable across the supported library and item-limit bounds.

  • Evidence: propr-ui/src/pages/SettingsPage/extensions/extensionUi.ts, runLimitExcess; called during rendering by ExtensionServersList.tsx and ExtensionSkillsList.tsx.

    1. Save a valid library containing 32 enabled items, each with 64 distinct repository limits and 64 distinct agent limits. Use disjoint sets across items; the documented contract permits these sizes and the forms support unlisted values.
    2. Open Settings. runLimitExcess builds 2,049 repository candidates and 2,049 agent candidates, including its OTHER sentinels.
    3. The nested loops evaluate every combination and filter all 32 items: approximately 134 million item checks.
    4. Repository matching scans up to 64 entries and repeatedly lowercases strings. With disjoint repository sets, this entails billions of string comparisons synchronously during React rendering, blocking the settings screen even though no overlap warning is needed.

    The early return protects only libraries with eight or fewer enabled items. Neither supported input bounds nor the existing small-fixture tests prevent this case. Both lists share the expensive implementation. Verification provenance: static trace of the supplied loops and documented bounds; no performance test was executed.

  • Minimum fix: Precompute the matching item set for each repository and agent candidate, deduplicate equivalent sets, and calculate intersections without rescanning every item's string limits for every pair. Verify responsiveness with the supported maximum-size disjoint fixture.

Suggestions

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

S2: 🟢 Batch migration provenance reads

extensionLibraryUsage.ts performs an awaited revision lookup for each legacy mapping, sometimes with an additional profile lookup. Fetching these records in batches would reduce library-read latency for installations with substantial migration history. This is optional optimization; the supplied code does not establish a correctness failure here.

Score

The implementation has strong focused coverage and sound revision handling, but the new rendering calculation can make valid libraries impractical to manage. The remaining checks are pending, not failed.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 18s
  • Tokens: 107,042 (105,445 in / 1,597 out)
  • Cost: $1.02

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 F6 S2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 01de235

Addressed 1 AI review comment (IDs: 6850274692)

Addressed finding F6

Summary of Changes

That timeout notice came from the watcher I set on the check run, and it doesn't change anything. Typecheck and lint were clean, and all 1,872 tests had already passed. F6 is fixed as I described above.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 18m 53s
  • Tokens: 1,008,946 (1,008,714 in / 232 out)
  • Cost: $0.47

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

…k run, and it doesn't change anything. Typecheck and lint were clean, and all 1,872 tests had already passed. F6 is fixed as I described above.

That timeout notice came from the watcher I set on the check run, and it doesn't change anything. Typecheck and lint were clean, and all 1,872 tests had already passed. F6 is fixed as I described above.

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

propr-dev Bot commented Nov 13, 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 13, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR implements the flat settings lists and automation selector with a clear separation between forms, presentation, and persistence. It is merge-ready within the reviewed scope, conditional on the remaining checks passing.

✅ Safe revision handling — Older responses are discarded, and open forms reject intervening changes to the edited item while preserving newer changes to other items.

✅ Immediate enabled controls — Checkboxes use the single-item endpoint, disable while pending, and restore saved state on failure without replacing credentials.

✅ Focused coverage — Added tests cover failure rollback, reversed response ordering, removal refusals, token handling, and saved-state reloads.

This review used static analysis of the supplied diff and context; no commands were run. The authoritative check summary reports zero failures and four pending checks.

Merge blockers

No merge blockers.

Suggestions

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

S3: 🟢 Batch migration provenance queries

packages/core/src/extensions/extensionLibraryUsage.ts performs sequential snapshot queries for every legacy mapping whenever the library is read. Fetching the relevant revisions together would reduce database round trips on installations with substantial migration history. This is an optional performance improvement; the supplied code establishes no current performance failure.

S4: 🟢 Clarify server capacity warning

ExtensionServersList.tsx warns only above eight library servers, while its message correctly says ProPR’s own server counts toward the eight-server runtime limit. Consider explaining that eight matching library servers can already cause an omission when ProPR’s server is present. The implementation meets the explicitly requested “more than 8” warning threshold, so this is a usability follow-up.

Score

The implementation has strong targeted coverage and no verified merge-blocking defect in the supplied changes. Final merge readiness remains conditional on completion of the pending checks.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 47s
  • Tokens: 107,747 (106,903 in / 844 out)
  • Cost: $1.00

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 S3 S4

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 13, 2026
@integry
integry merged commit 41c4ad7 into 3509-epic-extensions-library-14j Nov 13, 2026
50 checks passed
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.

1 participant