Repository navigation
fix(arcee): preserve model rows and use the selected credentials - #142898
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. |
|
landpr-approve-admin-merge |
|
Codex review: blocked before merge. Reviewed September 9, 2026, 6:14 AM ET / 10:14 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR preserves authored Arcee models and carries the selected endpoint, credentials, and logical model identity through onboarding, catalog selection, sessions, and execution. Merge readiness⛔ Blocked before merge - 6 items remain The prior onboarding-helper finding is resolved, and no remaining blocking code defect was identified. The credential repair remains necessary on current main; this maintainer-engaged PR is not a cleanup-close candidate. Priority: P1 Review scores
Verification
How this fits togetherArcee’s provider plugin connects setup and model discovery to OpenClaw’s shared credential selection and agent execution. The selected model endpoint determines which stored credential realm supplies the request, while logical model identity keeps catalog rows and reply diagnostics consistent. flowchart LR
A[Setup and saved model settings] --> B[Arcee provider plugin]
B --> C[Logical model catalog]
C --> D[Selected model endpoint]
E[Stored accounts and session pins] --> F[Endpoint-aware credential selection]
D --> F
F --> G[Provider request]
G --> H[Reply and route receipt]
Decision needed
Why: Repository policy requires listed-owner involvement for these authentication paths, and the available approval markers do not verify that role. Before merge
Agent review detailsSecurityNone. PR surfaceSource +430, Tests +1793, Docs +12. Total +2235 across 77 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the provider-owned endpoint aliases and shared onboarding helper, preserving existing accounts and authored rows through a coordinated host/plugin release. Do we have a high-confidence way to reproduce the issue? Yes: isolated Arcee-via-OpenRouter onboarding followed by an Arcee agent turn exercises the documented mismatch, and current-main source still lacks the required alias. This review inspected source and retained observations without executing a reproduction. Is this the best way to solve the issue? Yes: the revised branch reuses the canonical setup helper and preserves the shipped Arcee model identity instead of migrating users to a different provider namespace. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 588436b7eaa4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
|
landpr-approve-admin-merge |
|
landpr-approve-admin-merge |
|
landpr-approve-admin-merge |
|
Landed in 8bc0bac after a clean exact-head local review and required CI.
The recorded owner-review approval covered the procedural ownership hold. Code, security, proof and required CI passed their normal gates. The existing paired host/plugin release process remains required. Earlier failed and incomplete attempts remain preserved; this success does not classify the earlier Telegram network failure. |
…nclaw#142898) Arcee setup could save an OpenRouter account that the first reply did not use. This repair keeps model identity, the selected endpoint and the account consistent through setup, catalog selection, session creation and execution. Related: openclaw#112747, openclaw#113097 ## Changes - Registered setup uses the shared connection-config helper to save connection settings and retain authored rows. Replace mode generates detached model rows through lazy catalog builders, so editing one setup result cannot change later defaults. Public preset helpers retain eager catalog behavior. - Credential readiness, session pins and execution use the selected model endpoint. Endpoint-conditioned auth aliases extend the existing manifest value shape; string aliases remain supported. Stored credential realms, explicit bindings, linked accounts and account order stay authoritative. - Provider-owned identity joins wire and logical model names without duplicate picker rows or false fallback notices. Exact authored rows retain their endpoint, headers, limits, aliases and precedence. Genuine provider/model changes remain distinct. - Identity lookup uses selected, trusted installed-plugin metadata when the provider is outside the core package. Empty/captured metadata and loader failures retain their existing meanings. - Catalog lookup binds the provider policy once per synchronous search. It preserves first-match order, canonical aliases, unique case-insensitive fallback and providerless ambiguity, while removing repeated registry work for each scanned row. This lookup change adds no cross-call cache or new data. ## Validation - Main reproduced the OpenRouter credential failure. Retained candidate and direct/both-account/mixed-endpoint controls reach the real Gateway path through isolated synthetic transport. - Authenticated account-link and session-creation proof distinguishes stored and received credentials. The candidate retains the linked work account; the baseline sends the other account. Later primary selection and incompatible-endpoint controls keep their original results. - Authored-row and competing-row observations preserve endpoint, header, credential, run budget and exact-row precedence after selecting a shortened catalog ID. - Six compiled helper controls, two real interactive setup routes, profile/precedence/cancellation observations and the same independent source-blind review pass all seven original and four supplemental clauses at their recorded scopes. - The canonical core tarball passed its complete integrity checker. Arcee was separately installed through the normal npm-prefixed CLI against an isolated registry serving the actual built package. Public inspection reports genuine official trust and the expected registry integrity; all nine installed files match the archive. Normal package lifecycle and consent ran without manual marker or trust changes. - That installed plugin then handled normal setup, authenticated `models.list`, `sessions.create` and the first visible reply. The catalog exposes the logical Arcee ID; transport uses the stored OpenRouter account and its wire ID. The completed receipt correctly reports no model switch. Config remains unchanged after the turn, and all consumers stop. - The resolved merge with pinned target `894dc67cbfd95b5218bc1afab8eddaa4f0fd414c` preserves separate public and runtime catalog rows and inherited manifest fields. The affected catalog-route file passes 18 cases; Arcee visibility passes four cases, including the new unmanaged-row identity check. Normal formatting, commit hooks and SSH signing pass on `0f25a8723c45016b1a93591f3525021783a85789`. - The registered direct and OpenRouter setup routes both reproduced shared generated-cost mutation. The shared-helper correction passes all 29 cases in the affected Arcee index file, including both new clone regressions, with zero lint warnings/errors, normal formatting, hooks and SSH signing. This result belongs to `8f564706c77d5c6da37aedd7f7eb0300058abb13`; earlier package and public observations retain their original identities. - CI on the merge found one stale import and a command-file size limit. The follow-up removes the unused import and reuses the existing auth-lookup options object. Targeted lint reports zero warnings and errors for both files; normal formatting, hooks and signed commits pass. The existing behavior reports retain their tested identities. - The current lookup correction reduces 400 real source lookups from 80,600 policy reads / 2.57 seconds to 400 reads / 0.043 seconds. Five existing identity controls, formatting, lint, import-cycle and whitespace checks pass. The unchanged 400-model, 11-agent required CI test remains the final performance check on this new revision; the earlier compiled timeout is retained. Package proof uses build `5ef331fa92c3c9f71ed260203cb6a2459225797e` from raw input `4d560b9e47640c7e5ce1cfc2967baa390cb1e854`. The subsequent test-only correction, lookup optimization and shared setup-helper cutover are not restamped into that package. Earlier compiled `621dcb063135e31ea0c41878bcd57792ee2f8771` and source proofs keep their original identities. All traffic is synthetic; browser interaction and real vendor authentication are not claimed. Earlier failed layouts, memory stops, wrapper errors and incomplete attempts remain available with their resolving evidence. Fresh exact-head review and required CI precede merge. Replaces openclaw#141541 because its PR record does not reflect the pushed head. This replacement preserves the signed contribution history and original author, @obviyus, and resolves the actual target-branch conflicts. The original PR stays open until verified replacement landing; its reviews and failure history remain part of the record. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Provider setup could save an account that the first reply did not use. Model names, endpoints, and selected credentials could diverge across setup and execution.
Why This Change Was Made
Setup shares connection configuration and produces detached model rows. Credential selection follows the selected endpoint, while provider-owned identity joins catalog and wire names without duplicate choices. Catalog lookup resolves policy once per search.
User Impact
Setup, catalog selection, session creation, and replies use the intended endpoint and account. Authored rows, explicit bindings, linked accounts, and account order retain precedence.
Evidence
Real Gateway setup, account-link, session-creation, and first-reply checks with controlled transport reproduced the wrong credential before the fix and selected the linked account afterward. Normal installed-plugin setup and replies passed. Focused identity and row-isolation tests passed; 400 lookups reduced policy reads from 80,600 to 400. Installed-package proof predates later setup-helper and lookup changes; live authentication and browser interaction were not claimed.
Related: #112747, #113097. Replaces #141541 and preserves the original contribution by @obviyus.