Skip to content

test: exercise model setup with accounts and no selected model - #208781

Merged
daniel-lxs merged 1 commit into
openclaw:fix-ui-preserve-provider-searchfrom
daniel-lxs:fix-ui-model-setup-agent-fixture
Nov 30, 2026
Merged

daniel-lxs merged 1 commit into
openclaw:fix-ui-preserve-provider-searchfrom
daniel-lxs:fix-ui-model-setup-agent-fixture

Conversation

@daniel-lxs

@daniel-lxs daniel-lxs commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

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

  • The unchanged test at 13e45fa8113d reproduced 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 reproduction
  • On a clean build of 63175b136be4, the local OAuth endpoint received research from Chat, research from New Session, main after overriding the agent, main from direct Settings, and research in 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
  • The UI e2e typecheck, targeted lint, and formatting passed. Independent autoreview of the fixture diff reported no findings at P2 or higher.

@clawsweeper

clawsweeper Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Pull request received.

ClawSweeper review complete

ClawSweeper finished reviewing this revision.

View the workflow run.

@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 30, 2026
@daniel-lxs
daniel-lxs force-pushed the fix-ui-preserve-provider-search branch from b898dba to 19631ab Compare November 30, 2026 04:05
@daniel-lxs
daniel-lxs force-pushed the fix-ui-model-setup-agent-fixture branch from 416ac6d to 63175b1 Compare November 30, 2026 04:06
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 30, 2026
@clawsweeper

clawsweeper Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This 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.

  • Before: The test waits for “Accounts for Atlas” without configuring an account and never checks provider authorization.
  • After: The accounts section can render, while Chat and New Session still offer model setup for the browser-login-fixture provider.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A minimal, source-supported fixture correction with passing current-head checks; confidence in execution is limited to the reported Gateway run because its lane was skipped in current-head CI.
Proof confidence 🦐 gold shrimp (3/6) This test-only maintainer PR reports a clean-build real-Gateway pass covering all five authorization targets and the sibling first-model test; the linked run was not independently inspected, and the downloaded screenshots show the earlier handoff change rather than this fixture repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: A fixture setup timeout prevents the regression from detecting sign-in targeting the wrong agent.
Reason: The maintainer-authored change restores meaningful existing coverage with established fixture options and preserves every behavioral assertion.

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: 63175b136be4cc8c6b05830b724a56028b59c091

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit ad0ab68 adds ui/src/e2e/model-setup-agent.real-gateway.e2e.test.ts:21 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ad0ab6879c12; files: ui/src/e2e/model-setup-agent.real-gateway.e2e.test.ts)

PR surface

Tests +3. Total +3 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 0 +3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 3 0 +3

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 29, 2026, 11:20 PM ET / November 30, 2026, 04:20 UTC.

@daniel-lxs
daniel-lxs merged commit db632c3 into openclaw:fix-ui-preserve-provider-search Nov 30, 2026
90 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant