Repository navigation
fix(ui): retain schema readiness and expose retry - #180127
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 changes before merge. What this changesThis PR retains schema-request completions and adds visible errors and Retry while preserving loaded Settings editors during refresh. Example: Infrastructure Settings receives “Synthetic schema service temporarily unavailable.”
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: this maintainer-directed PR addresses a real Settings recovery gap, but its async rendering change leaves an existing consumer regression failing. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherRuntimeConfig owns Gateway schema requests and connection checks; the Settings page passes their completion to Solid loading and error boundaries that render the editor. flowchart LR
A[Settings route] --> B[RuntimeConfig owner]
B --> C[Gateway schema request]
C --> B
B --> D[Settings page props]
D --> E[Solid readiness boundary]
E --> F[Editor or error and Retry]
F --> B
Technical reviewBest possible solution: Keep the existing request owner and retained editor behavior, adapt the failing consumer test to async readiness, and consolidate the overlapping schema-retry PRs. Do we have a high-confidence way to reproduce the issue? Current-main source has no schema Retry presentation, and the inspected before screenshot shows the unavailable state; no target code was executed during this read-only review. Is this the best way to solve the issue? Using the existing RuntimeConfig completion and Solid boundaries is appropriate, but the consumer suite must account for the newly asynchronous initial rendering. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b98018c4433d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +80, Tests +168. Total +248 across 7 files. Added test files: 1. 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, 9:43 PM ET / October 22, 2026, 01:43 UTC. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 34e05dafcb
ℹ️ 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 ensureSchemaLoaded = async () => { | ||
| if (!state.configSchema && canLoadConfigSchema()) { | ||
| await loadSchema(); |
There was a problem hiding this comment.
Keep retained failures out of ensureSchemaLoaded retries
After an initial config.schema rejection, schemaRead retains the failed completion but configSchema remains null, so any later ensureSchemaLoaded() call starts another request once the old load leaves loads. Existing callers invoke this for unrelated interactions—notably every Settings route load in pages/config/route.ts:57-60 and every nonempty Settings search change in app/app-host.tsx:435-438—so navigation or typing replaces the visible failure and can repeatedly retry without the new Retry button. Treat a retained schemaRead as already ensured here; reconnect already clears it through resetLoads, while refreshSchema() remains the explicit retry path.
Useful? React with 👍 / 👎.
|
Merged via squash.
|
* refactor(ui): present config schema readiness through Solid * refactor(ui): retain schema reads without deferred runtime * test(ui): align schema fixtures with async readiness * refactor(ui): specialize remaining runtime config load helper * refactor(ui): return admitted config read promise directly
Exact base
34a4e3bf238e1ebcb0c110d6b912f71bbeceed22; head3d3e27d30257277e169521a762e4a66fb75875b4. All scope blobs match prior79868; only the coupled private runtime-config helper shrinks6LOC. This early base predates Roster: no later roster credit is borrowed. Schema read is the only proposed native read; no merged credit. C/E/U/N = candidate / named exception / unresolved / native. Prior primitive/owner exceptions remain.The full source and publication comparison is independently qualified against the exact base. C/E/U/N = candidate / named exception / unresolved / native; this PR moves only the schema read to native presentation.
What Problem This Solves
A failed Settings schema request left the editor at “Schema unavailable” without a retry. Two initial admission paths could also immediately re-arm a failed request after the config read completed.
RuntimeConfig retains the admitted schema completion and its existing access, connection, and publication checks. One page-lifetime Solid memo presents initial readiness through
Loading/Erroredand retries through that same owner. Once schema exists,latestretains the accepted editor and open Setup during refresh; a failure appears beside them with Retry. Pending status stays out of structural field props, preserving focused inputs and local drafts. Raw editing and sections that do not need schema keep their existing behavior.Evidence
34a4e3bf→3d3e27d; no strict violation or warning; startup +28 B satisfies the 64 B ruleThe unit suites use the repository’s default test runner with no runtime override. The one browser test uses Node because its canonical Playwright browser configuration requires it. The RuntimeConfig owner suite passed all 31 cases again on the final private-helper simplification.
Total touched production is 2,682→2,756 LOC (+74), including two plain TypeScript owner files. Tests change 1,011→1,192 LOC (+181). The growth adds an admitted completion contract and explicit recovery while retaining editor identity. No dependency or lazy boundary changes.
Current-head CI
The original full CI exposed two test issues: a Config-only Gateway fixture declared as a full application Gateway, and a meeting-capture assertion checked after synchronous flush while schema readiness settles promises. Both were fixed while retaining the original behavior assertions. The subsequent
34e05dafCI passed those repaired checks but failed the Sidebar ordering case at line 74.That Sidebar inherited attribution is withdrawn. The earlier scheduled main
39712703143was UI-green, and the original Sidebar case also passes on this PR’s exact9d2ac90dmerge-base build. The replacement merges main’s reviewed Sidebar correction (#180167); no assertion was weakened in this PR. Exact replacement head3d3e27d3passed full CI 39723629433. No Sidebar waiver is used.Startup And Route Bytes
The exact base's startup already exceeds 325,000 B; the head's 28 B increase stays within the campaign's 64 B allowance. Chat and New remain below their 1,500,000 B and 1,035,000 B caps. All 21 locale pairs remain below 307,200 B, with at most 2 B growth. The CSS request count stays at one, and existing lazy boundaries remain.
Independent publication qualification verifies 6,994 files per side, 3,280 unique inputs including 3,270 tracked inputs per side, ten equal generated inputs, six equal toolchains, and exact consumed source maps. The paired build uses this machine, frozen dependencies, and fixed build metadata. The baseline overlay has exact base production inputs and three test/support-only differences; it is not a literal base checkout. The pure-type
view-types.tshas no emitted JavaScript mapping; its exact source hash is verified on both sides.Screenshots
Infrastructure at 1440×1000, with synthetic configuration and a held schema request. Both sides show the pending state. Before, failure leaves “Schema unavailable” with no retry; after, the error offers Retry. The capture exercises Retry and verifies the recovered editor with no page errors. All four full frames were inspected for incidental/private content.