Repository navigation
improve(ui): simplify local provider recovery - #117165
Conversation
|
Codex review: found issues before merge. Reviewed August 1, 2026, 4:33 AM ET / 08:33 UTC. ClawSweeper reviewWhat this changesThe PR redesigns Control UI Model Setup so configured local models appear as a selected-model recovery row with concise provider status, retry text, and duplicate detected-candidate suppression. Merge readiness⛔ Blocked by patch quality or review findings - 5 items remain This PR is still necessary, but its latest head retains the prior P1 regression: once a model is configured, it removes the only discovery-refresh control and replaces it with a verification-only action. A failed local provider can therefore be retried, but the user cannot refresh Gateway discovery to learn about a restarted endpoint or changed offered models; keep the PR open for that focused repair and maintainer review. Priority: P2 Review scores
Verification
How this fits togetherControl UI Model Setup asks the Gateway to detect available provider models and separately verify the currently configured model. The detection result feeds candidate and endpoint details, while verification reports whether the saved route can answer; both are needed for local-provider recovery. flowchart LR
A[Gateway connection] --> B[Model Setup detection]
B --> C[Configured model and candidates]
C --> D[Selected model recovery row]
D --> E[Verify saved model]
B --> F[Refresh provider discovery]
E --> G[Provider status]
F --> C
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +138, Tests +256. Total +394 across 12 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the selected-model recovery presentation while keeping a distinct configured-model Do we have a high-confidence way to reproduce the issue? Yes, from source and the mocked-Gateway E2E contract: configured models suppress Is this the best way to solve the issue? No. The presentation cleanup is coherent, but replacing discovery refresh with verification-only retry loses an existing recovery capability; retain both operations with clear contextual labels. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b0b708d91942. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
0daa8c9 to
46598b6
Compare
|
Post-ready exact-head proof for
This addresses the final-head proof refresh requested in the latest ClawSweeper review. |
|
Maintainer decision on the remaining ClawSweeper item: accept the verify-only configured recovery flow. This is intentional product behavior. Once a model is configured, the selected-model row owns The E2E contract now proves:
Visual proof remains representative of the final UI source: the commits after One unrelated CI failure is already present on |
|
Final maintainer disposition after the exact-head ClawSweeper review:
Proceeding with a merge commit to preserve the three signed commits; no squash or rebase merge. |
|
Landed on Direct landing was required because the repository rejected GitHub’s merge-commit method, and the maintainer explicitly required no squash. The landed commit has two parents: prior |
Preserve the signed PR commit series. PR-specific UI checks passed; the remaining compact tooling failure matches current main.
What Problem This Solves
When a configured local provider goes offline, Model Setup exposes a raw connection error and can also repeat the same provider under gateway discovery. The result looks like setup was lost even though the selected model is still configured.
Why This Change Was Made
Selected modelrowCheck model,Try again, orCheck againThis deliberately does not introduce a separate connection editor or remote/local mode. Provider setup remains in the existing provider-owned setup flows.
User Impact
Operators can see that their model is still selected, restart the provider if needed, and retry the check without navigating into another setup concept. Successful verification still opens the existing start-chat success dialog.
Evidence
git diff --checkpassede3401ae73fb4646a7b96940963c48464b77644eeScreenshots
Before
Revised desktop
Revised mobile