Repository navigation
fix: keep the provider search focused when accounts load - #208780
Conversation
|
🦞👀 ClawSweeper review supersededClawSweeper finished reviewing an earlier revision. A newer revision superseded that attempt. |
b898dba to
19631ab
Compare
|
Codex review: passed. What this changesPreserve provider search text and focus when arriving account data reorders the Models page. Example: Open Models with provider=openai, type Anthropic, then receive the first configured account.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR fixes a source-confirmed search reset still present on current main; no actionable defects remain, and exact-head CI passed. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Models page combines route intent, provider catalogs, and asynchronous account data into provider search and connection controls. flowchart TD
A[Provider route link] --> C[Models page]
B[Account data] --> C
C --> D[Stable section ordering]
D --> E[Provider catalog and local draft]
E --> F[Filtered provider connection actions]
Technical reviewBest possible solution: Retain one catalog instance while reordering sections, with local edits reset only by a different provider link. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the remount when the first usable account arrives, and the PR reports a failing baseline regression; no target code was executed during this read-only review. Is this the best way to solve the issue? The change repairs component lifetime at the existing rendering owner and preserves route filtering, section order, and connection behavior without adding another state owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 743f83aa4c22. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +9, Tests +18. Total +27 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label 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 readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 30, 2026, 12:19 AM ET / 05:19 UTC (Revision 2). |
Use the first-run fixture to show the selected agent’s accounts while the composer still requires browser sign-in.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
* commit 'b21f557c8fa038ebc1842e204e356eb063aea4c6': (46 commits) test(ui): keep real exports in the channel settings distribution mock (#208855) test(normalization): preserve inline code in quoted previews (#208857) fix(ci): restore adaptive priors across large repository trees (#208838) test(agents): cover typography preservation in patch updates (#208851) fix(ci): wait for selected agent during model setup proof (#208847) fix: keep Telegram topic messages out of Home’s chat history (#208778) fix(worktrees): name the session to restore and say agents can't (#208828) fix: tell an idle parent when a child result couldn't reach its chat (#208772) fix: keep the provider search focused when accounts load (#208780) fix(clawrouter): respect permitted speeds on model fallback (#208830) fix(ui): show provider rejection details without Markdown escapes (#208829) fix: make the cloud worker deletion test reliable across reconnects (#208812) fix(update): preserve preparation lock ownership (#207139) chore(release): update appcast for 2026.11.12 (#208820) fix(android): Talk does nothing when mic access is permanently denied (#206609) test(config): preserve media model primaries across repeated edits (#208837) fix(browser): use the mock keychain for new headed macOS profiles (#208814) fix: start source workers without synchronous filesystem reads in the caller (#208789) refactor(ios): stop loading retired Overview data (#208795) perf(knowledge): stop repeating write-input schemas in batch and correct tools (#208617) ...
What Problem This Solves
Typing in the Models provider catalog can lose the search and its matching result when account data arrives. A user who already entered a provider name has to type it again. Related Models form behavior in #147586
User Impact
The entered text, matching provider and keyboard focus survive the catalog moving below configured providers. The initial section order and the behavior of an untouched provider link stay the same.
Why This Change Was Made
Models renders the catalog and account sections once and reorders them as data arrives. The search field keeps a local edit until the route names a different provider. Both the provider list and the catalog can still use the incoming link to select their initial filter. Catalog ordering in #203485 · Provider recovery links in #208560
The real-Gateway regression uses a local provider account for Settings and leaves the agent without a selected model. It checks the account label and the agent received by the OAuth endpoint from all five navigation paths. Fixture change #208781
Evidence
13e45fa8113dand937f28142b0c, a regression that types “Anthropic” over an OpenAI provider link and then delivers the first account loses the search. At19631ab9c4ab, the same check retains both the text and keyboard focus. All 73 tests in the Models view and page suites passed (5.34s including setup). Failing AWS run · Passing AWS rundb632c39ed31has the same Git tree as the clean real-Gateway run on63175b136be4. The screenshots show the same synthetic Research agent at 1280 × 900. Real-Gateway verification19631ab9c4abreported no findings at P2 or higher.Before
After
Clean captures