Repository navigation
refactor(ui): use explicit raw config command flags - #180800
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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces the raw editor’s optimistic command enum with explicit command-busy and save-busy flags and simplifies its JSX. Example: Open the raw editor with {"gateway":{"mode":"local"}} and click Discard while its completion is held.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: the maintainer-directed refactor follows the existing Solid recipe, preserves command ownership, and introduces no actionable correctness finding. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI raw configuration view receives drafts and command callbacks from the Runtime Config owner and presents editing controls, pending feedback, and owner-recorded outcomes. flowchart LR
A[Raw editor controls] --> B[Runtime Config owner]
B --> C[Admitted command completion]
C --> D[Solid presentation action]
E[Route retirement] --> D
D --> F[Control locks and Save feedback]
Technical reviewBest possible solution: Retain this focused presentation refactor and its behavioral coverage while resolving required CI through the existing gate owners. Do we have a high-confidence way to reproduce the issue? This PR claims a behavior-preserving refactor rather than a bug fix; source inspection supports equivalent busy and saving states, and no target code was executed. Is this the best way to solve the issue? The patch uses the documented boolean optimistic-flag recipe within the existing action and owner lifecycle, without introducing a competing owner or unnecessary scaffolding. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 488631c18fae. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +27. Total +27 across 2 files. Added test files: 0. View PR surface stats
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 22, 2026, 1:17 PM ET / 17:17 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* refactor(ui): use explicit raw config command flags * test(ui): correct raw command completion fixture type * test(ui): use deferred default completion type
The raw configuration editor encoded two process flags in one optimistic command enum. Use co-written
createOptimistic(false)flags for command locking and Save feedback, while retaining the existing plain owner's admission and retirement path. Open and Discard keep controls locked without displaying “Saving…”.The raw editor returns its existing
SettingsPagedirectly and creates its existing live-value ref at the textarea. This removes a redundant fragment and keeps production LOC unchanged. DOM, selectors, styles, lazy boundaries, error ownership, and user-visible behavior are preserved.Promise<void>The nonvisual refactor is covered by behavior assertions; no appearance changes need screenshot comparison. Startup CSS requests remain one.
In the touched production file, generic nonboolean saving proxies: 1 → 0;
createOptimistic(false): 0 → 2; actions: 1 → 1. Production LOC: 705 → 705; test LOC: 159 → 186. Other Solid API/checklist counts are unchanged. No new dependency or abstraction.CI run 39818890226 caught a new type mismatch in the Open/Discard test fixture (
Promise<boolean>versusPromise<void>). The corrected fixture passesnode scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.ui-pages.json --incremental; runtime production code is unchanged by this repair. The initial auto request was confirmed retired before publishing the correction.Run 39823932812 passed the corrected core test types, then found the explicit
voidargument redundant underno-unnecessary-type-arguments. The fixture now uses the helper’s defaultvoidtype; its runtime behavior is identical. Both failures were specific to this PR and repaired here.Final-head run 39827400108 failed one scenario:
Control UI catalog publication with a real Gateway > opens Settings pickers from publication and acquires only on Refresh or Retry, waiting for the catalog Retry button. All other selected jobs passed or skipped. The latest completed scheduled main run,39823514819, passed this scenario. One canonical execution against this PR's actual merge base1bd44907beb195649e7613cde07ae08bdb02f5eaalso passed (8.572 s case; 62.63 s Vitest) after a base UI build. That local proof used Node for Playwright and recorded UI bundle hashes before/after the runner's base-source rebuild. At that point the failure was not classified as inherited; the shared catalog investigation continued. No rerun was used to chase green.The coordinated diagnostic run 39831563422 observed one retained catalog-feedback root but zero alert, status, button, or Retry nodes while Refresh remained enabled. The catalog suppression repair is tracked in #180897. This raw-config implementation remains unchanged pending that repair's integration; no further local test run was started.
The latest completed scheduled main run now supplies matching-name evidence: 39832966696 at
f113dde017ecb6dcf91af45e0bf3a4057f867d90fails the same catalog Retry scenario at the same missing control. The raw-config CI actually tested merge7a1798483052f4c29a877f4e50ac21e6053c440b(main062bbe5f94746bb92f29fe7c039238e7762ff2abplus this PR head), which contains the newer catalog suppression; the older standalone branch-base pass remains recorded above. The failure now qualifies as inherited. All 65 current-head jobs are terminal: 36 passed, 27 skipped, the catalog shard and its aggregate failed. Security passed. Native inherited-failure recovery will retain that qualification rather than claim a green full run.