Repository navigation
refactor(ui): derive plugin settings readiness from config receipts - #180258
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a938d2d876
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const failed = outcomes.find( | ||
| (outcome) => outcome && !outcome.ok && outcome.error === currentError, | ||
| ); |
There was a problem hiding this comment.
Distinguish error ownership without comparing message text
When a refresh fails while cached settings remain editable, a subsequent write can fail with the same generic message (for example, Request failed). Because currentError does not change and the completed read is identified solely by matching that string, the old read remains the error-boundary owner and Retry invokes onConfigReadRetry instead of retrying the newer write. Track the originating operation or generation rather than using error-text equality so an old result cannot override newer intent.
AGENTS.md reference: ui/AGENTS.md:L16-L18
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR derives plugin settings loading and error presentation from configuration and schema read receipts. Example: A schema refresh and a subsequent settings write both fail with “Request failed” while cached settings remain editable.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this PR open for two focused repairs: Retry can select the wrong operation, and one typed caller lacks the newly required receipt props. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI config owner admits Gateway reads and writes; plugin settings consume its state and receipts to render forms, loading indicators, errors, and recovery controls. flowchart LR
A[Gateway config RPCs] --> B[Synchronous config owner]
B --> C[Read completion receipts]
B --> D[Editable config state]
C --> E[Shared status boundary]
D --> F[Advanced and plugin forms]
E --> G[Retry controls]
G --> B
Technical reviewBest possible solution: Keep the shared status boundary, identify error ownership in the config owner, and update the missed typed caller. Do we have a high-confidence way to reproduce the issue? Source establishes the same-message retry misrouting and the omitted required props; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? Owner-backed receipts fit the intended refactor, but message text cannot reliably distinguish a completed read failure from a subsequent write failure. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7910ed1a7418. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +110, Tests +114. Total +224 across 12 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 21, 2026, 11:51 PM ET / October 22, 2026, 03:51 UTC. |
|
Merged via squash.
|
…penclaw#180258) * refactor(ui): derive plugin settings readiness from config receipts * fix(ui): preserve current plugin credential errors * fix(ui): normalize optional settings read promises * test(ui): supply settings lifecycle read status
Whole assigned scope raw census at
63415c568253b60f94f17a3707cb6539f9161ede; 1762 production files / 332478 LOC. These are syntax proxies, not unresolved defects.Native handler suspects include stable primitive methods. Domain owners, foreign-DOM mounts, operation imports, and primitive cleanups have named exceptions. This scan does not resolve direct @solidjs/signals imports or Promise-returning non-async memo callbacks. Semantic dispositions are retained separately; unlanded work stays outstanding.
What Problem This Solves
The plugin settings editor now consumes the existing config and schema read promises under Solid Loading/Errored. The status slot sits beside the editable form, so a read or error does not replace its DOM. The existing config owner still owns request admission, drafts, writes and their recorded errors. Current main already owns the schema promise; this PR adds no schema cache, receipt map or request manager.
Retained credential dialogs now read the current owner error through a getter, so an awaited discard cannot leave an old read error visible after the owner clears it. Section refs register through onSettled instead of reading reactive props from an unowned ref callback.
Config and schema form one readiness region. The completion-only memo carries no duplicated resource data; authoritative owner flags remain available to other Gateway consumers. Advanced settings is now covered by main's separate implementation and is outside this PR's diff.
Evidence
The preceding reviewed head ec13806 passed full CI39723014190, including the repaired credential cancellation case. Fresh full CI is required for the current integrated head; that prior run is not claimed as exact-head proof.
Visual proof
The following inspected synthetic-only plugin editor pair is retained from the original configuration-read implementation (1440×1000). It predates the current-main integration and the getter/ref repairs, whose observable boundaries are covered by the focused tests. Advanced-settings captures have been removed from this PR because that code is now owned by main.