Skip to content

feat: make provider sign-in easy to find in plugin settings - #203379

Merged
hannesrudolph merged 10 commits into
openclaw:mainfrom
daniel-lxs:macos-welcome-gemini-setup-vs
Nov 22, 2026
Merged

hannesrudolph merged 10 commits into
openclaw:mainfrom
daniel-lxs:macos-welcome-gemini-setup-vs

Conversation

@daniel-lxs

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

Copy link
Copy Markdown
Member

Closes #203371

What Problem This Solves

If I start on an installed provider plugin’s page, I have to go to Models separately to find its sign-in.

User Impact

An enabled provider plugin with a guided sign-in has Sign in under Settings → Accounts → Models. It opens the existing Models dialog with that plugin’s methods.

The provider picker uses the plugin’s labels. The declared method label also supplies the default guided action text, and explicit action-label overrides keep their existing presentation. After guided sign-in, Choose a model lets me start a new chat with an available model and keep my current default.

Why This Change Was Made

The plugin already declares its sign-in methods. OpenClaw can use that metadata for the entry point and the visible action text. Plugins without guided sign-in keep their existing Settings controls.

Evidence

GitHub Copilot plugin settings comparison

  • The signed app comparison shows the plugin Settings entry on main and with the feature.
  • Live Gateway regression covers sign-in from Settings through a reply in a new chat with the selected model. The default is preserved. The same regression on main fails at the missing sign-in action.
  • In the built Control UI, Sign in opened Gemini’s existing dialog with Sign in with Google and the action-label override omitted.
  • 70 focused tests, UI typechecking, and Swift syntax passed. The tests cover guided label defaults, explicit overrides, and account connection through the OAuth callback. The live Model Setup probe hit a host Codex detection timeout.

@clawsweeper

clawsweeper Bot commented Nov 22, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos app: web-ui App: web-ui gateway Gateway runtime extensions: google size: L labels Nov 22, 2026
@daniel-lxs
daniel-lxs marked this pull request as ready for review November 22, 2026 01:40
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

✅ Maintainer security changes approved

A maintainer approved this revision with an explicit security approval comment.

A later push requires a fresh approval comment for an external contributor's PR.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 22, 2026
@clawsweeper

clawsweeper Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

Adds provider sign-in to plugin settings, uses declared action labels, and offers a model chooser after sign-in.

Example: Open an enabled GitHub Copilot plugin’s Settings.

  • Before: Finding sign-in requires navigating separately to Models.
  • After: Accounts → Models → Sign in opens the existing provider dialog; choosing a chat model preserves the saved default.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent implementation supported by real product-path evidence and visual comparisons; the latest merge preserves the reviewed feature paths.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots cover plugin settings and web/native labels; the public isolated-Gateway report exercises Settings sign-in through a selected-model reply with the saved default intact, using a loopback test provider.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users starting from a provider plugin’s settings must discover a separate Models page to sign in and cannot freely choose an available model afterward.
Reason: The maintainer-authored direction addresses a concrete navigation gap while reusing existing authentication, catalog, and chat operations.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: this maintainer-authored PR delivers the requested Settings entry point and model choice, with convincing behavior proof and no actionable defects found.

Priority: P2
Reviewed head: 5b48d650b469f2705d7a2c9c6199d34d0c7ecf9e

Before merge

  • Await maintainer action - Review the sensitive changes and approve head 5b48d65 through the repository’s enforced security approval mechanism.

Findings

None.

Agent review details

How this fits together

Plugin metadata supplies eligible sign-in methods to Gateway inspection and Models; Control UI delegates authentication and new-chat creation to their existing owners.

flowchart LR
  A[Plugin manifest] --> B[Gateway inspection]
  B --> C[Plugin settings]
  C --> D[Models sign-in dialog]
  D --> E[Existing auth owner]
  E --> F[Available model chooser]
  F --> G[Existing session creation]
Loading

Technical review

Best possible solution:

Keep the shared Models authentication and session-creation paths, with plugin-scoped discovery and chat-only model selection.

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

Current-main source confirms the missing Settings action, and the supplied built-Gateway comparison reports failure at that action before the change.

Is this the best way to solve the issue?

The implementation fits existing ownership: manifest metadata controls eligibility, Models owns authentication, and session creation applies the chosen model without changing the default.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Credential-only sign-in and default preservation keeps the original intent (b342541: Separate provider login from model activation so connecting an account preserves the selected model and settings.)
  • Reconnect and reload recovery keeps the original intent (75886fc: Keep the same provider sign-in available after leaving or reloading the Control UI tab.)
  • Public credential inspection keeps the original intent (3263224: Expose installed account and credential presence without exposing secret values or reference identifiers.)
  • Guided setup presentation changes intended behavior with a stated reason (7ed7eeb: Share inference-option presentation while preserving optional labels and filtering; this PR explicitly changes the default action text to the declared choice label while retaining explicit overrides.)
  • Provider search normalization keeps the original intent (ebf1361: Match canonically equivalent Unicode in local search comparisons without changing original labels or identities.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 75886fc adds ui/src/pages/model-providers/login-sign-in.ts:54 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 75886fc2a70d; files: ui/src/pages/model-providers/login-sign-in.ts)
  • Patrick Erichsen: Raw commit 04ce867 adds src/plugins/credential-inspection.ts:39 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 04ce86783632; files: src/plugins/credential-inspection.ts)

PR surface

Source +321, Tests +222, Docs +9. Total +552 across 35 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 26 446 125 +321
Tests 8 273 51 +222
Docs 1 11 2 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 35 730 178 +552

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: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • remove rating: 🦞 diamond lobster: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: A bounded discoverability improvement with an existing in-product sign-in route through Models.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (7 earlier review cycles)
  • reviewed 2026-11-22T01:57:35.521Z sha 9a20180 :: blocked before merge. :: none
  • reviewed 2026-11-22T02:25:27.438Z sha 3ecddbb :: blocked before merge. :: none
  • reviewed 2026-11-22T05:32:09.978Z sha 0b4e49c :: blocked before merge. :: none
  • reviewed 2026-11-22T06:16:30.016Z sha 0b4e49c :: blocked before merge. :: none
  • reviewed 2026-11-22T06:26:03.014Z sha fae9bd0 :: blocked before merge. :: none
  • reviewed 2026-11-22T06:49:50.205Z sha 43040d2 :: blocked before merge. :: none
  • reviewed 2026-11-22T14:59:25.589Z sha f6c6f8d :: blocked before merge. :: none

Reviewed November 22, 2026, 2:20 PM ET / 19:20 UTC (Revision 8).

@daniel-lxs

Copy link
Copy Markdown
Member Author

I ran the same browser regression against a real isolated Gateway and its built Control UI on macOS, with a loopback-only test provider.

  • Main, e76922592a733ed039b84d997d86ce1ca0e1fd34. The plugin’s Settings page loaded. The test failed at the assertion that Sign in is available.
  • PR head, 3ecddbbe417236fae7d41f6d4ba8311a015372dd. Settings → Accounts → Models → Sign in opened the existing Models dialog. The Gateway saved the test account. I opened Choose a model, started a new chat with Local Proof Model, and confirmed the reply came back from that model. The saved default was still existing-fixture/existing-model after the reply.

The focused test-type check and type-aware lint passed. The 30 Bun UI tests and 22 plugin inspection tests passed.

@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Nov 22, 2026
@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 22, 2026
@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Nov 22, 2026
@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Nov 22, 2026
@hannesrudolph

Copy link
Copy Markdown
Member

/allow-security-sensitive-change

@hannesrudolph
hannesrudolph merged commit c00e185 into openclaw:main Nov 22, 2026
130 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 23, 2026
…#203379)

* feat(ui): make provider sign-in accessible from plugin settings

* fix(ui): stabilize provider sign-in validation

* fix(ui): default guided actions to the choice label

* test(ui): expect the declared label after OAuth

* chore(ci): retry interrupted ratchet check

* fix(ui): avoid shadowing the recovered sign-in choice
obviyus added a commit that referenced this pull request Nov 23, 2026
…icit nil (#204023)

Two scheduled-`main` reds are fixed: `test/scripts/sqlite-schema-assets.test.ts` and the `macos-swift (tests)` SwiftLint step.

Part of #204008.

## Problem

1. `sqlite-schema-assets.test.ts` (both cases) fails on `main` since the 06:45 UTC scheduled run: `TypeError: The "path" argument must be of type string. Received undefined` in `retainUpdateRuntimeImports`. #203901 changed that function's second argument from a list of paths to `{ sourcePath, identityPath }` records and updated its production caller. The test still passed bare paths.
2. `macos-swift (tests)` fails SwiftLint `implicit_optional_initialization` at `apps/macos/Sources/OpenClaw/OnboardingAISetupSupport.swift:295` (`var actionLabel: String? = nil`), added by #203379. Ordinary PRs do not run this lane, so only scheduled `main` CI saw it.

## Solution

- The test now builds `{ sourcePath, identityPath }` records (the same path for both, because the test does not relocate identity).
- Drop `= nil`. An optional `var` already defaults to `nil` in the memberwise initializer, and `Decodable` decoding is unchanged.

## Evidence

- `sqlite-schema-assets.test.ts`: the `main` copy fails both cases locally with the same `TypeError`; this branch passes both.
- SwiftLint 0.65.1 (the version `scripts/install-swift-tools.sh` pins) with `config/swiftlint.yml --strict`: `main` file 1 error (`implicit_optional_initialization` at 295:13), this branch 0 errors. Run with SourceKit disabled, because this host has no Xcode; this rule is syntax-only.

Co-authored-by: Ayaan Zaidi <[email protected]>
obviyus added a commit that referenced this pull request Nov 23, 2026
…04173)

`provider-browser-login-first-model.real-gateway.e2e.test.ts` passes again. It follows the sign-in dialog that #203379 introduced: choose a model, then start the chat.

Part of #204008.

## Problem

Since #203379 ("make provider sign-in easy to find in plugin settings"), a completed provider sign-in shows **Choose a model** first. "Start a new chat with …" appears after the user chooses. #203379's own test pins this for a verified sign-in (`model-providers-page.login-start-chat.test.ts`, case `verified: true`). The first-model e2e still expected the model name and the starter in the first render, so it has failed on every scheduled run since 20:25Z on 2026-11-22 (first red a63a429; the window from 8ab2464 contains #203379).

Measured locally from the page: the completion carried `modelActivation.modelRef = browser-login-fixture/ready`, and the refreshed catalog listed that model. The dialog showed "Fixture browser sign-in is ready" and "Choose a model".

## Solution

Test-only. The e2e clicks **Choose a model** and then uses the starter. The other assertions are unchanged: the agent primary is the account that signed in (`browser-login-fixture/ready@browser-login-fixture:default`), and the starter chat answers through the fixture provider. The test title now says what it proves.

## Evidence

- `provider-browser-login-first-model.real-gateway.e2e.test.ts`: fails on `main` (no "… is ready for your agent." text); passes on this branch against a fresh `pnpm ui:build`.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 24, 2026
…icit nil (openclaw#204023)

Two scheduled-`main` reds are fixed: `test/scripts/sqlite-schema-assets.test.ts` and the `macos-swift (tests)` SwiftLint step.

Part of openclaw#204008.

## Problem

1. `sqlite-schema-assets.test.ts` (both cases) fails on `main` since the 06:45 UTC scheduled run: `TypeError: The "path" argument must be of type string. Received undefined` in `retainUpdateRuntimeImports`. openclaw#203901 changed that function's second argument from a list of paths to `{ sourcePath, identityPath }` records and updated its production caller. The test still passed bare paths.
2. `macos-swift (tests)` fails SwiftLint `implicit_optional_initialization` at `apps/macos/Sources/OpenClaw/OnboardingAISetupSupport.swift:295` (`var actionLabel: String? = nil`), added by openclaw#203379. Ordinary PRs do not run this lane, so only scheduled `main` CI saw it.

## Solution

- The test now builds `{ sourcePath, identityPath }` records (the same path for both, because the test does not relocate identity).
- Drop `= nil`. An optional `var` already defaults to `nil` in the memberwise initializer, and `Decodable` decoding is unchanged.

## Evidence

- `sqlite-schema-assets.test.ts`: the `main` copy fails both cases locally with the same `TypeError`; this branch passes both.
- SwiftLint 0.65.1 (the version `scripts/install-swift-tools.sh` pins) with `config/swiftlint.yml --strict`: `main` file 1 error (`implicit_optional_initialization` at 295:13), this branch 0 errors. Run with SourceKit disabled, because this host has no Xcode; this rule is syntax-only.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 24, 2026
…enclaw#204173)

`provider-browser-login-first-model.real-gateway.e2e.test.ts` passes again. It follows the sign-in dialog that openclaw#203379 introduced: choose a model, then start the chat.

Part of openclaw#204008.

## Problem

Since openclaw#203379 ("make provider sign-in easy to find in plugin settings"), a completed provider sign-in shows **Choose a model** first. "Start a new chat with …" appears after the user chooses. openclaw#203379's own test pins this for a verified sign-in (`model-providers-page.login-start-chat.test.ts`, case `verified: true`). The first-model e2e still expected the model name and the starter in the first render, so it has failed on every scheduled run since 20:25Z on 2026-11-22 (first red 95d8741; the window from 7468e30 contains openclaw#203379).

Measured locally from the page: the completion carried `modelActivation.modelRef = browser-login-fixture/ready`, and the refreshed catalog listed that model. The dialog showed "Fixture browser sign-in is ready" and "Choose a model".

## Solution

Test-only. The e2e clicks **Choose a model** and then uses the starter. The other assertions are unchanged: the agent primary is the account that signed in (`browser-login-fixture/ready@browser-login-fixture:default`), and the starter chat answers through the fixture provider. The test title now says what it proves.

## Evidence

- `provider-browser-login-first-model.real-gateway.e2e.test.ts`: fails on `main` (no "… is ready for your agent." text); passes on this branch against a fresh `pnpm ui:build`.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos app: web-ui App: web-ui docs Improvements or additions to documentation extensions: google gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security-sensitive-changed size: L status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make provider sign-in easy to find in plugin settings

2 participants