Repository navigation
fix(ui): preserve provider mutation ownership and visible outcomes - #116829
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 8:13 AM ET / 12:13 UTC. ClawSweeper reviewWhat this changesThis PR centralizes Model Provider settings mutations, applies consistent disabled states, preserves committed-change feedback through refresh failures, and prevents stale agent-scoped UI effects during provider and OAuth operations. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain Keep this active, maintainer-labeled Control UI repair open for normal maintainer review. The supplied test and changed-file gate evidence supports a focused patch, but the PR body only demonstrates DOM/controller and automated checks; it does not yet show after-fix behavior in a real Control UI browser session. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI’s Model Provider page lets an operator edit shared provider configuration and agent-specific OAuth state through the gateway. A configuration mutation can persist globally, while its busy state, drafts, feedback, and queued logout work must remain scoped to the currently selected agent. flowchart LR
A[Provider settings page] --> B[Mutation coordinator]
B --> C[Shared runtime configuration]
B --> D[Agent-scoped OAuth actions]
C --> E[Provider data refresh]
D --> F[Selected-agent scope check]
E --> G[Visible success or warning]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceSource +147, Tests +411. Total +558 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep global configuration writes in the provider-owned coordinator while limiting stale-completion cleanup to the initiating agent scope, then attach a redacted real Control UI browser recording or screenshot sequence covering a refresh-warning save and an agent-switch/logout case. Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction was independently established. The PR supplies focused DOM/controller regressions for the claimed failures, making the paths source-reproducible but not independently reproduced in a current browser session. Is this the best way to solve the issue? Unclear. A single provider-owned coordinator is a plausible boundary because the patch distinguishes global configuration persistence from agent-local UI cleanup, but the full current-main caller and runtime-config contract could not be independently inspected here. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a91d92796fd3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Co-authored-by: Peter Steinberger <[email protected]>
Summary
Root causes fixed
5 independently reproduced provider-owner defects:
state.lastError; treating rejection alone as failure detection hid committed-success warnings. New providers also had no rendered card after a failed refresh, causing success and warnings to disappear; default-model drafts reverted to stale loaded selections. Preserve committed success, show accessible warnings, keep Add feedback visible while clearing its password, and retain committed default selections until authoritative refresh succeeds.Red-to-green owner evidence
refresh()/state.lastErrorbehavior, persistently visible Add/default warnings, cancellable locked credential forms, assertive accessible error alerts, agent-switch ABA, route-data scope reset, and all three global mutation completion paths.Result: 44 tests passed across 2 files.
Result: 19 tests passed across 3 files.
Total: 63 passing provider-owner and sibling tests.
Full remote changed-file gate
Trusted Blacksmith Testbox
tbx_01kyw0rj16bksrzy71pp6vpzxbpassed the exact six-file gate:59e1d586147b98f0021fc9ff176d64214ad435c4.gpt-5.6-sol, high reasoning): CLEAN, zero actionable findings, confidence 0.95.Candidate
codex/qa100-model-provider-mutation-owner.ee0a71c522795729868a7e28e9fe66639ba47d2f.59e1d586147b98f0021fc9ff176d64214ad435c4.mainmodification.RuntimeConfigCapability.patchacknowledgements collapse committed-refresh failure intofalse; correcting that requires separately approved shared-configuration-owner contract work.