Skip to content

test(ui): expect provider-scoped credential setup navigation - #204696

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci-composer-provider-navigation-20261124
Nov 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci-composer-provider-navigation-20261124

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The composer auth-failure browser test times out after opening provider setup because it still expects the generic setup URL. The UI now preserves the selected provider.

User Impact

No user-visible behavior changes. The browser regression will verify that provider setup opens for the selected provider while retaining its authentication and draft checks.

Why This Change Was Made

Update the existing URL assertion to include provider=openai; leave the timeout and other assertions unchanged.

Evidence

  • Reproduced the existing browser failure at the URL assertion on unchanged UI sources; the browser had already reached /settings/model-providers?provider=openai&connect=1.
  • All six cases in chat-composer-redesign.e2e.test.ts pass on the final commit, including the auth-failure case and its cooldown sibling.
  • Focused UI E2E typecheck, single-file lint, formatting, and git diff --check pass.
  • Test-only change: one assertion updated; no production code, timeout, or other assertion changes.
  • Local ClawSweeper review of the committed change found no actionable issues.
  • Original failing main run: https://github.com/openclaw/openclaw/actions/runs/45403387860/job/138478204824

Unrelated CI Failure

CI run 45417108783 failed in the separate rich-scroll browser case in composer-editor-callers.browser.test.ts: the active-descendant attribute remained after scrolling to the top. Its browser project excludes the changed E2E file by its include patterns. The inspected browser sources, fixtures, styles, dependency lock and runner inputs are unchanged in the actual tested merge. Both rich-scroll variants passed in an isolated replay; that does not establish a flake repair. The hosted failure remains recorded for the native inherited-failure landing route.

@vincentkoc vincentkoc self-assigned this Nov 24, 2026
@clawsweeper

clawsweeper Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review November 24, 2026 14:42
@vincentkoc
vincentkoc enabled auto-merge (squash) November 24, 2026 14:43
@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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 24, 2026
@clawsweeper

clawsweeper Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR updates the composer authentication-recovery test to expect the selected OpenAI provider in the setup URL.

Example: Open provider setup from the failed-authentication state for openai/gpt-5.5.

  • Before: The test waits for /settings/model-providers?connect=1 and times out.
  • After: The test expects /settings/model-providers?provider=openai&connect=1.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused assertion is correct and supported by browser-harness evidence; overall validation remains limited by an unattributed required browser-check failure.
Proof confidence 🦐 gold shrimp (3/6) This test-only change requires no separate shipped-entry-point demonstration; the body reports all six cases passing, and the exact-head UI E2E check passed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The browser regression times out after correct provider-specific setup navigation.
Reason: The maintainer-authored change restores useful coverage of intentional navigation without altering product behavior.

Merge readiness

✅ Ready for maintainer review

This PR correctly updates a stale browser assertion to match intentional provider-scoped navigation; no actionable patch defects were found, but the required CI gate remains red.

Priority: P3
Reviewed head: 89fa520874fa222fce01a9cd0207648f0bd6e4e6

Before merge

None.

Findings

None.

Agent review details

How this fits together

The browser suite supplies model availability through a mock Gateway and exercises the real composer, model picker, and Settings navigation.

flowchart LR
  A[Mock Gateway availability] --> B[Chat composer]
  B --> C[Model picker auth state]
  C --> D[Provider navigation helper]
  D --> E[Models connection route]
  E --> F[Browser URL assertion]
Loading

Technical review

Best possible solution:

Retain this one-line assertion update so browser coverage follows the existing provider-aware navigation owner.

Do we have a high-confidence way to reproduce the issue?

The linked main failure annotation identifies the stale URL assertion, and current production source independently confirms the provider-scoped destination; no target code was run during this review.

Is this the best way to solve the issue?

The assertion update is the smallest complete repair: it preserves provider-specific recovery, authentication gating, draft checks, and existing timeouts without adding machinery or duplicate coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against bf91a8134039.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit d6e1f01 adds ui/src/e2e/chat-composer-redesign.e2e.test.ts:19 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d6e1f019f088; files: ui/src/e2e/chat-composer-redesign.e2e.test.ts)
  • Vyctor H. Brzezowski: Raw commit ab2da2b adds ui/src/e2e/chat-composer-redesign.e2e.test.ts:64 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ab2da2bfe8c4; files: ui/src/e2e/chat-composer-redesign.e2e.test.ts)

PR surface

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

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

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 P3: This repairs a browser-test expectation without changing user-facing behavior.
  • 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:

  • P3: This repairs a browser-test expectation without changing user-facing behavior.
  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Resolve the required browser-check failure through CI triage, attributing it before assigning any patch repair.

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 follows the weaker of proof and patch quality; ✨ 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 24, 2026, 9:56 AM ET / 14:56 UTC.

@vincentkoc
vincentkoc disabled auto-merge November 24, 2026 15:01
@vincentkoc
vincentkoc merged commit 28d42b7 into main Nov 24, 2026
160 of 164 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-composer-provider-navigation-20261124 branch November 24, 2026 15:04
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

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