Repository navigation
test: exercise model setup with accounts and no selected model - #208781
daniel-lxs merged 1 commit into
Conversation
|
🦞👀 ClawSweeper review completeClawSweeper finished reviewing this revision. |
b898dba to
19631ab
Compare
416ac6d to
63175b1
Compare
|
Codex review: passed. What this changesThis PR gives the model-setup regression a local provider account and no selected model while retaining the browser-sign-in model policy. Example: Run the model-setup regression with agents Atlas and Research on a clean Gateway.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR makes a valuable existing regression reachable using the established fixture, preserves its assertions, and introduces no identified defect. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe browser regression seeds an isolated Gateway, navigates the production Control UI, and observes the agent received by a local HTTPS authorization endpoint. flowchart LR
A[Test fixture configuration] --> B[Isolated Gateway]
B --> C[Control UI]
C --> D[Chat or New Session]
D --> E[Models settings]
E --> F[Local authorization endpoint]
F --> G[Agent target assertions]
Technical reviewBest possible solution: Retain this focused fixture repair with the provider-search change on which it is stacked. Do we have a high-confidence way to reproduce the issue? The original fixture supplies a default model but no configured provider account, while the test unconditionally waits for an accounts heading; source inspection establishes the mismatch without executing the test. Is this the best way to solve the issue? Reusing firstRun and overriding only the model policy is the smallest complete repair: it supplies the accounts section and preserves the setup path without weakening assertions or changing production code. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0dd4e0a2a83e. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +3. Total +3 across 1 file. 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:
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 Reviewed November 29, 2026, 11:20 PM ET / November 30, 2026, 04:20 UTC. |
db632c3
into
openclaw:fix-ui-preserve-provider-search
This fixture change is stacked on #208780, which preserves the provider search as the accounts load.
What Problem This Solves
On a clean Gateway, the model-setup test stops at Accounts for Atlas before it exercises a single sign-in. Its fixture gives both agents a default model but supplies no provider account. Models correctly omits the empty accounts section.
User Impact
The real-Gateway test can check which agent reaches the provider when a user starts setup from Chat or New Session, opens Settings directly, or changes the agent in Settings. Empty-picker behavior in #200612 · Agent handoff in #208090
Why This Change Was Made
The fixture's first-run mode supplies a local provider for the accounts section and leaves the agent without a chosen model. Its model policy limits the composer to the provider that still needs browser sign-in, so the setup action remains reachable. All five provider authorization checks, the Accounts text checks and the cancellation checks stay in place.
Evidence
13e45fa8113dreproduced the scheduled job’s heading timeout on AWS. The real Gateway was connected and the roster contained both agents. The Models page showed a default model and an empty accounts section was omitted. AWS reproduction63175b136be4, the local OAuth endpoint receivedresearchfrom Chat,researchfrom New Session,mainafter overriding the agent,mainfrom direct Settings, andresearchin first-run setup. All five authorizations were cancelled before token exchange. The sibling first-model sign-in test also passed (two tests, 113.12 s including setup). AWS verification