Repository navigation
fix(ui): separate goal callback errors from validation - #180806
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 changesSeparate unexpected goal-save failures from objective validation while preserving the draft, focus, and retry controls. Example: Saving “Review the release checklist” rejects with “Goal update unavailable. Try again.”
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR provides a focused correction to goal-edit error semantics that current main still needs; no actionable introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI goal dialog submits an objective through the existing chat goal owner and presents its validation result or unexpected rejection. flowchart LR
A[Goal edit form] --> B[Submission action]
B --> C[Existing chat goal owner]
C --> D[Goal write and reconciliation]
B --> E[Returned validation message]
B --> F[Completion error boundary]
E --> A
F --> A
Technical reviewBest possible solution: Keep validation strings in their existing field contract and observe unexpected rejection through the narrow completion boundary. Do we have a high-confidence way to reproduce the issue? Current-main source directly shows callback rejection reaching the field-invalid state; supplied browser captures and the focused regression corroborate that path, but no target code was executed during this review. Is this the best way to solve the issue? The patch uses the existing dialog, submission action, and goal owner, adding only the completion observation needed to distinguish unexpected failure from returned validation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a5e1a5967dcc. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +29, Tests +54. Total +83 across 2 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 22, 2026, 1:25 PM ET / 17:25 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
A rejected goal-edit callback marks the objective invalid even when the objective itself is valid. Only expected returned validation feedback should set
aria-invalid; unexpected callback failures belong in the existingErroredalert.Keep main's completion observer, optimistic saving state, error boundary, draft/focus retention and dialog-preparation feedback. Change the rejected completion's validation projection to false, update the existing held-retry regression, and correct the matching Solid recipe example. The plain owner still decides admission and records the operation outcome.
Evidence
aria-invalid; 1 failed, 5 skippedpnpm tsgo:uieab7ec4a4d6→0cc9869ad08passed; startup 315,744 → 315,745 B; CSS 41,043 B and 1 request; no violationsMain landed overlapping dialog feedback work after the earlier head passed CI. The conflict resolution preserves that implementation and its additional preparation-failure regression; the remaining production change is one boolean projection, with no imports, markup, route, lazy boundary or layout changes. The attached captures were recorded against
eab7ec4a4d6and0cc9869ad08; they demonstrate the same valid-objective error and retained-retry states. They were not recaptured onae6606fc18e. The final main-relative delta changes only the accessibility classification and the equivalent test callback, with no structural DOM, CSS or import changes. Current-head browser/build proof was not repeated; the six-case dialog suite and UI typecheck cover the merged implementation.Recipe and refactor counts
Counts compare the final production module to merge input
e1f4e11918cda015da76ab57b29e59a7c5455d33.action/ co-writtencreateOptimistic(false)createMemo/createSignalErrored/latestLoading/ expliciton/RevealonSettledisPending/ Solidaffects/ Solidrefresh/ optimistic storesuntrack/onCleanup/ listeners / queries / flush / owner APIsProduction LOC: 326 → 326. Test LOC: 243 → 243. The old parallel error state is unnecessary because main now derives the expected validation message from the admitted completion.
Exact inherited production Knip findings
The same production command exits 1 on exact merge input
e1f4e11918cda015da76ab57b29e59a7c5455d33and final headae6606fc18e. Logs are byte-identical; the authored production file was restored byte-for-byte after the comparison.Current-head CI investigation
Run
39825591933atae6606fc18e19dc4eec7faeca8d01edca9c28fc1failed one test inchecks-ui-e2e-real-gateway (2/2):command-palette-catalog.real-gateway.e2e.test.ts > Control UI catalog publication with a real Gateway > opens Settings pickers from publication and acquires only on Refresh or Retry.It timed out waiting for the model-provider catalog Retry button after a failed refresh. The forced reply and following passive catalog reply both reported
refreshFailed: true, with the same catalog fingerprint; all observed requests settled. The timeout artifact reports a connected Gateway, successful Settings route, and completed renderer read, but contains no catalog-boundary state or DOM snapshot. The latest completed scheduled main run39823514819passed this shard, so this failure is not established as inherited.The exact named case passed locally on the current head using the canonical UI E2E runner and its private-QA runtime (1 passed, 2 skipped; 13.217 s case, 78.99 s Vitest including transformation). An initial source-swapped run reused the head bundle and is excluded from base proof. The corrected comparison built the UI with the sole runtime-changed goal file at exact merge-base
e1f4e11918cda015da76ab57b29e59a7c5455d33, then passed the same case (1 passed, 2 skipped; 6.102 s case, 27.24 s Vitest). SHA-256 records verify the base bundle stayed unchanged throughout the test and the reviewed head source was restored byte-for-byte afterward. Thus the named scenario passes both base and head locally; this does not establish the isolated CI failure as inherited. No additional production change or CI rerun was made from this inconclusive evidence. The PR remains blocked on this unclassified failure.Catalog failure narrowed
A diagnostic-only run on the independently affected provider-review PR (
39831563422, #180819) reproduced the exact same named catalog Retry failure. Its public scalar capture found a mounted provider page and feedback root, but no feedback node, alert, status, button, or Retry label; Refresh remained enabled and the connected Settings route was ready. Source inspection found that main #174904 suppresses the global catalog error when a row reports unavailable or rejected discovery, while those row status labels offer no equivalent catalog retry.The catalog recovery fix is isolated in #180897. The diagnostic itself is cross-PR evidence of the failure path, not a qualifying inherited-failure baseline for this older branch. The subsequently completed scheduled-main run below supplies the required independent exact-name evidence.
Native inherited-failure recovery
Latest completed scheduled main run 39832966696, head
f113dde017ecb6dcf91af45e0bf3a4057f867d90, fails the same exact test in job 120014006792:command-palette-catalog.real-gateway.e2e.test.ts > Control UI catalog publication with a real Gateway > opens Settings pickers from publication and acquires only on Refresh or Retry. It times out after 30 seconds at line 372 waiting for the missing Retry button; 62 other cases pass. This is the qualifying matching-name baseline that the earlier local passes did not provide.Current goal run 39825591933 has one substantive failure, that same catalog case (job 119988492907), plus its downstream CI gate. All jobs are terminal and
security-fastpassed independently. The inspected CI merge52fa1d3d4f63967f60a306d4abe3b5e85ea1c35fhas ordered parentsdf12fbcd6b2b57371d6cc4687a9a6133c6817257and this exact head. The failing test and catalog owner source blobs are unchanged between that main parent and tested merge.The current goal head is therefore selected for the documented native inherited-failure replacement route. This retains the failed CI result, does not claim to fix catalog recovery, and leaves the separate #180897 repair responsible for that behavior. The local base/head passes and older screenshot/build limitations above remain explicit.