Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 17255a076b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: blocked before merge. What this changesAdds a configure scope choice that writes model settings and provider credentials either to one agent or to shared fleet defaults. Example: An explicit fleet contains alpha and beta, and the operator configures Anthropic.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this PR open: it provides a distinct fleet setup capability with no concrete introduced defect found, but an area owner must approve the new shared setup direction. Priority: P2 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherThe configure wizard translates operator selections into existing model configuration and authentication stores, which the Gateway uses to resolve each agent's provider requests. flowchart TD
A[Operator runs configure] --> B[Model scope selection]
B --> C[One agent]
B --> D[Shared defaults]
C --> E[Agent policy and auth store]
D --> F[Shared policy and auth store]
E --> G[Gateway model resolution]
F --> G
G --> H[Provider request]
Technical reviewBest possible solution: Approve an opt-in shared setup path through the existing model and credential owners while preserving and explaining agent-local overrides. Do we have a high-confidence way to reproduce the issue? Current-main source confirms configure targets one agent, and the contributor supplies matching CLI and Gateway traces; this review executed no target code. Is this the best way to solve the issue? The implementation reuses existing model mutation and authentication owners, and the simplification pass found no unnecessary production layer or test scaffolding requiring removal. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d2c70ddbf19f. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +174, Tests +517, Docs +7, Other -1. Total +697 across 14 files. Added test files: 1. View PR surface stats
Review metrics
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 follows the weaker of proof and patch quality; ✨ 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 (3 earlier review cycles)
Reviewed October 22, 2026, 1:09 PM ET / 17:09 UTC (Revision 4). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Additional real-world reproduction on Linux, now with version and control case:
The failure occurs before the custom-provider key prompt opens; no key was entered or submitted. It reproduces with the URL entered with and without the Expected: the interactive flow should establish Automatic model discovery is a separate implementation path and is already represented by merged PR #173300; this report concerns the custom-provider flow aborting before it can reach auth/discovery. The shared-defaults implementation remains proposed in this PR and is not in 2026.11.3. |
|
Not planned. |
Closes #180126
Related: #123871, #131153
What Problem This Solves
openclaw configure --section modelalways writes the model setup and the provider credential to one agent, so a fleet-wide model and provider setup takes one configure run per agent.User Impact
One agent(default, unchanged behavior) orShared defaults.Shared defaultswrites primary, catalog and allowlist toagents.defaultsand stores the provider credential in the shared auth store, so every agent that inherits defaults resolves both the model and the credential.One agent, single-agent installs and agents with their own model settings keep the current write path.Why This Change Was Made
configure.model-scope.tsasks for the scope;One agentkeeps the agent-owned path from refactor(cli): make multi-agent operations agent-owned #123871.promptAuthConfigtakes a model write target: shared mode writesagents.defaults, starts the model pickers fromagents.defaultsand sends the credential write to the shared main auth store.Shared defaultsgets configure's existing agent question for the credential and catalog owner.applyCustomApiConfig) checkagents.defaults, so an alias one agent uses privately does not block a shared alias.Evidence
openclaw configure --section modeldriven in a terminal session.agents.list,models.listper agent, and one agent turn per agent.alpha/beta, System Agentalpha, Anthropic API key test value.[email protected](1b58cb9),[email protected](fe06181).main80ae18c (this branch's merge base).models.listpendingProvidersdiffers between runs both ways:One agenthead["anthropic"],main[]; single agent head[],main["anthropic"].main80ae18calphagetsanthropic/claude-opus-5-5and the key;betastays onopenai/gpt-6-astra,available=false;beta's turn sends no provider requestShared defaultswith the keybetaonanthropic/claude-opus-5-5,available=true;beta's turn sends the keybetaavailable=false; its turn sends no provider requestmodels auth logout anthropic:default --agent alphabetaavailable=false; its turn sends no provider request[email protected]: the release configuresalphawith the key whilebetakeeps its ownanthropic/claude-opus-5-5; a copy of that state per build runsopenclaw doctor --fix --non-interactive --yes, then the gatewaymain80ae18c, 07464c0doctorexit 0 on both builds;agents.list,models.listand both turns identical onmainand this head; against the release's own gateway onlyalpha'spendingProvidersdiffers;betakeeps its model;alpha's turn sends the key[email protected], same stepsmain80ae18c, 07464c0doctorexit 0 on both builds;agents.list,models.listand both turns identical onmain, this head and the release's own gateway (STABLE_VS_HEAD_IDENTICAL);betakeeps its model;alpha's turn sends the keyShared defaultswith the key on the upgraded 2026.10.5 and 2026.10.6 statesagents.defaultsgets the primary and allowlist;alphakeeps its primary, fallbacks and allowlist;betakeepsanthropic/claude-opus-5-5, nowavailable=true;beta's turn sends the keymain, read by this PR's gatewaymain80ae18c, 07464c0agents.list,models.listand both turns identical under both buildsOne agent(default) with the keymain80ae18c;pendingProvidersdiffersagents.ownershipmain80ae18c;pendingProvidersdiffers in the explicit-ownership caseShared defaultsWhich agent do you want to configure?; both agentsavailable=trueShared defaultswith a keyanthropic/claude-sonnet-4-6; both agentsavailable=trueauthInheritance.agentId: "alpha"beta's turn sends the key; the same state served again bymain's and this head's gateway reportsbetaavailable=true; afteropenclaw doctor --fix(shared auth profiles relocated into shared SQLite state)betastaysavailable=trueand its turn sends the keyagents.ownershipmain80ae18c:Shared defaults:Shared defaultswith the key; state B: same HOME and config, separate state root):[email protected]; the 2026.10.6 run (OpenClaw 2026.10.6 (fe06181)) has the same steps and exits, printsSTABLE_VS_HEAD_IDENTICAL, and otherwise differs inpendingProvidersvalues and the loopback port:configure.wizard,configure.gateway-auth.prompt-auth-config,configure.gateway-auth.credential-scope(new),onboard-custom,onboard-custom-config.main80ae18c andconfigure.model-scope.tsremoved: 13 failed, 81 passed.pnpm test <files> --maxWorkers=1, 40.2 s wall time).pnpm changed:lanes --base upstream/main: core, coreTests, docs.pnpm check:changed --base upstream/main: typecheck, lint, format and import cycles pass; four repo-wide lanes fail, none on a file this PR touches.main80ae18c: max-lines ratchet (threeui/src/pages/*files), first-party export baseline (threesrc/agents/worktrees/*lines), core test shard root budget (gateway-root 726, infra 735).test:changedagainstupstream/main: 15,358 passed, 3 failed outside this diff.src/claws/project.test.ts"rejects a workspace source that portably collides with CLAW.md" fails the same way onmain80ae18c.src/skills/loading/workspace-skill-sync.runtime.test.tsandsrc/skills/lifecycle/install-download.test.tspass alone at this head and onmain(65/65).