Repository navigation
feat(android): complete Models settings and provider connections - #158582
roboclaw-bot wants to merge 24 commits into
Conversation
Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]> OpenClaw-Publication: f4fd5aa3-136a-42dd-ab33-561b12e265cc
|
🦞👀 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: blocked before merge. Reviewed September 27, 2026, 9:04 AM ET / 13:04 UTC (Revision 29). ClawSweeper reviewWhat this changesThe branch adds Android controls for shared model defaults, installed agents, and provider connections, extends Gateway and plugin capability metadata and the Web provider chooser, accepts pasted remote ChatGPT callbacks, and adjusts iOS simulator preparation. Merge readiness⛔ Blocked before merge - 7 items remain Current main still lacks the Android Models settings workflow, so this PR remains useful. The earlier Web duplicate-action finding is fixed at the reviewed head. The combined screen still needs an Android product-owner decision, the bounded remote ChatGPT sign-in proof needs auth-owner acceptance, and the PR is currently draft with a merge conflict. Priority: P2 Review scores
Verification
How this fits togetherAndroid Models settings reads model inventory and provider choices from the Gateway, then sends protected configuration and sign-in requests back to it. Gateway configuration and credential owners save changes and return updated model and connection status. flowchart LR
A[Provider plugin metadata] --> B[Gateway model and auth status]
B --> C[Android Models settings]
C --> D[Provider choice or model edit]
D --> E[Gateway authority check]
E --> F[Config and credential owners]
F --> G[Updated models and connection status]
G --> C
Decision needed
Why: The requester expanded the original provider-only request, but the PR body does not claim a product-owner decision; source review cannot choose the Android screen's product scope. Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep Android as a client of Gateway-owned model, configuration and credential contracts, with a clear combined screen and separate non-executable setup guidance where a provider requires computer-side setup. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: current-main source shows the older Android provider list, and the PR requests a new settings workflow. Is this the best way to solve the issue? Yes for the ownership boundary: Android consumes Gateway metadata and existing config/auth operations. Approval of the combined screen and acceptance of the bounded remote sign-in proof remain open. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e374c800cd88. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (28 earlier review cycles; latest 8 shown)
|
Merge current main for the shared-kit CI repairs, keep generated locale artifacts in their owning workflow, and complete the diff-scoped cleanup. Co-authored-by: IWhatsskill <[email protected]>
Co-authored-by: IWhatsskill <[email protected]>
Incorporate the upstream ControlUiRootState import repair (da8149b) after CI run 36217135725 failed on its synthetic merge. The five original type graphs pass; 29 focused Android tests, KtLint, native i18n verification, and diff checks pass. Co-authored-by: IWhatsskill <[email protected]>
Co-authored-by: IWhatsskill <[email protected]>
Co-authored-by: IWhatsskill <[email protected]>
Co-authored-by: IWhatsskill <[email protected]>
|
@clawsweeper re-review Current head:
Exact-head CI is running; the prior candidate completed all 151 active jobs. No merge or auto-merge is requested. |
|
🦞👀 Re-review progress:
|
Preserve provider-family choices and credential targets across Android and Web. Expose setup-only paths, clarify subscription tokens, and handle cancellation. Co-authored-by: IWhatsskill <[email protected]>
Co-authored-by: IWhatsskill <[email protected]>
Utility Model preview and compatibility follow-upCandidate: Android now requests the Gateway's automatic Utility Model preview. The same real Models screen shows the selected model instead of only Auto. Both captures use the same isolated Gateway configuration, retained app data/pairing, 480×800 viewport and light theme. No vendor sign-in or credential entry was performed.
Observed in-place upgrade: the baseline APK and repaired APK were installed over the same retained app data. Pairing, selected-agent override, configuration and both stored credential profiles remained unchanged. The native before/after images are source-bound to the previous and current request implementation; the Gateway independently returned the preview only when Native configuration round trip: the Android UI changed Utility Model to Disabled and back to Auto. Gateway readback showed Fresh verification: 18/18 focused Android tests pass; the existing request assertion fails on the previous source and passes after the fix. Test + APK build: 15.09 s wall. Changed-scope checks and fresh focused AutoReview pass. This follow-up adds one production line and no additional tests. Complete source and compatibility: all 113 changed paths, all 96 prior blobs and all 113 candidate blobs were readable locally with lazy fetching disabled. Review the complete merge-base The earlier @clawsweeper re-review Please review this exact head and assess configuration/data compatibility from the complete introduced delta and the observed preservation evidence above. Keep any genuine uncertainty explicit; distinguish a capped context inventory from missing introduced-delta source. |
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
Recreate the PR merge-ref CI snapshot after main commit c0e6951 fixed the unrelated Cron fixtures. No source changes. Co-authored-by: IWhatsskill <[email protected]>
Refresh only initial registry discovery once under the original read admission and captured source paths. Keep repeated changes, source retirement and read failures terminal, with a controlled real-worker regression. Incorporate main 9bb171b and reconcile the Android Models integration with its ChatController cleanup without restoring retired wrappers or changing rendered Models components. Co-authored-by: IWhatsskill <[email protected]>
Incorporate main 665dca1 and keep its canonical removal of copied NVIDIA manifest assertions. Cover NVIDIA in the existing real no-credentials Gateway capability test instead; the unmodified main manifest fails this case without credentialOnly. Retained NVIDIA behavior and Gateway auth-status suites pass 113 cases. No Models UI or provider runtime behavior changes in this reconciliation. Co-authored-by: IWhatsskill <[email protected]>
Incorporate main 3d90381 and remove the superseded PR-local read retry and lower-level duplicate fixture. Keep the canonical owner covering initial discovery and final revalidation across registration admission and settlement. The integrated Talk, history, broadcast and source suites pass 93 tests; independent review through P2 is scoped-clean. Models feature source is unchanged. Co-authored-by: IWhatsskill <[email protected]>
Incorporate main 439940b and reconcile its Z.AI fixture/type simplification with the existing credential-only auth cases. Preserve both real method-run regressions byte-for-byte; no provider behavior is removed or expanded. The reconciled Z.AI suite passes all 17 tests. Models rendering and previously reviewed feature logic are unchanged. Co-authored-by: IWhatsskill <[email protected]>
Record bounded lstat and stat caller evidence alongside state-directory probes. Defer stack formatting until the original filesystem functions are restored so source-map reads cannot contaminate the counters. Preserve all six list/search comparisons, result checks, environment-allocation checks, and deadlines. The observed CI discrepancy remains unreproduced; this is diagnostic coverage, not a claimed root-cause fix. Current main and the failed merge already contain the existing projection isolation repair. Co-authored-by: IWhatsskill <[email protected]>
The machine choices intentionally remain open, and filling or pasting into the composer does not perform a pointer dismissal. Press Escape and observe the machine option becoming hidden before opening the account/model picker, matching the existing cloud dispatch fixture. Preserve every recovery assertion and deadline. The original 79-file, three-worker CI file set passed 340 tests locally; the repaired six-case file passes with one worker in 23.04 seconds. CI captured the original machine-option pointer interception. Changed checks and independent review through P2 pass. Co-authored-by: IWhatsskill <[email protected]>
Incorporate main 945ec9f and keep its Session Store benchmark byte-for-byte. Remove the superseded PR-local filesystem provenance extension. The canonical benchmark requires zero state-directory discovery probes in every pinned and automatic list/search case rather than comparing unrelated process-wide calls. The three-line cloud recovery fixture repair remains independently reviewed and verified. Current integration passes 106 Gateway auth-status and canonical benchmark cases in 58.00 seconds; native i18n verification passes without generated changes. Android Models implementation is unchanged. No PR merge or auto-merge is requested. Co-authored-by: IWhatsskill <[email protected]>
Prefer the advertised credential wizard over the generic quick-key shortcut when a login group supplies a secret method, matching Android. Keep every named OAuth, subscription, and key method, retain quick-key fallback for groups without secret methods, and leave the separate provider-card key editor untouched. Extend the existing rendered-page picker case: it fails on the duplicate before the repair and passes afterward. All 32 picker, login and account-recovery cases pass; the changed picker file costs 3.28 seconds with one worker. Real Chromium before/after proof verifies OAuth, the exact masked credential wizard, and the separate key editor. Changed checks and independent review through P2 pass. Resolves the late R23 finding without changing Gateway or Android behavior. Co-authored-by: IWhatsskill <[email protected]>
Web provider chooser — one API-key actionCandidate: Actual Control UI in Chromium, mocked Gateway, same light-theme 1280×900 viewport and OpenRouter fixture. Before: OAuth, the advertised API-key method, and a duplicate generic key shortcut. After: OAuth and one advertised API-key method.
The browser proof also starts the exact advertised credential wizard, checks its masked input, cancels it, and opens the separate provider-card key editor. Both paths remain available; no credentials were entered and no vendor login was performed. The existing rendered-picker regression fails before the repair and passes afterward. All 32 focused picker/login/recovery cases pass; the changed two-case file costs 3.28 s with one worker. Independent review found no actionable P0–P2 issue. |
Preserve main's auth-health refactor and the PR's terminal OAuth renewal status while resolving the overlap. Co-authored-by: IWhatsskill <[email protected]>
Co-authored-by: IWhatsskill <[email protected]>











Related: #158541.
What Problem This Solves
Android lacks complete Models settings and hides or separates connection choices that the Gateway offers under one provider.
Confirmed scope: the requester explicitly expanded the earlier provider-only proposal to complete Android Models parity, including shared model defaults and Installed Agents. The original provider-only limitation in #158541 is superseded for this PR; these sections are not an unrequested expansion. The existing work-session link below records that discussion.
User Impact
Why This Change Was Made
The app is a generic client, not a bundle of provider implementations. Provider plugins, authentication execution and credential storage remain on the Gateway. Android and Web group presentation while dispatching the exact original provider/method; setup-only methods are not executable login options. The existing configuration and credential owners remain authoritative.
The updated grouping needs the updated app and Gateway together. Older Gateways retain their advertised choices and omit unsupported optional metadata. No configuration/database schema, credential format, protocol-version, dependency or permission change is introduced. Protected writes, current-authority checks and admission settlement remain enforced.
The current diff is 114 files, +6,516/−1,696 lines. It includes regression tests, extracted fixtures, generated metadata and 44 provider manifests, not 44 Android SDKs. The production growth implements the complete Models controls and shared provider presentation. Deslop consolidates parsing and JSON construction; file extraction is not claimed as a net code reduction. The two-file CI follow-up changes only simulator preparation order and its existing executable regression. Current-main cleanup is preserved, including retired ChatController wrappers and the removal of copied NVIDIA manifest assertions.
Evidence
Candidate:
52a26ed152c1f3e838ee16c0167c25d30a992900, incorporating main2b4a2749587ebfbf66c84bdae2ea46d1302f5031. The conflict refresh preserves main's shared-profile auth-health refactor and this PR's distinction between pending and terminally failed OAuth renewal; it introduces no new UI or provider behavior. The canonical main registry repair and the Session Store benchmark repair from945ec9ff5611are incorporated. The latter now owns the exact benchmark source; the temporary PR-local diagnostic extension is removed. Its invariant is zero conventional state-directory discovery in every pinned/automatic list/search case, not parity between unrelated process-wide filesystem calls. Native Android rendering and provider implementation patches remain unchanged. The final Web follow-up removes the duplicate generic key shortcut when an advertised secret method already exists; named OAuth/subscription/key choices and the separate key editor remain available.CI and required checks for this PR are authoritative for readiness; local passes are not substituted for that gate. No merge or auto-merge is requested.
Actual UI and upgrade proof
agents.defaults.utilityModel; readback restores the original configuration hash. Agent overrides, unrelated configuration, one pairing and both credential profiles remain intact.These are retained native captures, not a new live-device execution of every incorporated main change. The reconciled APK and current tests are verified below. No completed external vendor sign-in is claimed; OAuth/device-code dispatch, masked input, callback validation and credential ownership have isolated boundary coverage. Earlier Web captures predate the grouping helper extraction; the linked deduplication comparison above exercises the final Web helper and does not claim a real vendor sign-in.
Current checks and review
Exact-head CI is green. Run 36290739286 completed successfully on
52a26ed152c1: 178 successful jobs, 11 skipped, no failed jobs. Both requiredopenclaw/ci-gateentries pass. The native watcher confirms an effective green rollup with no pending checks; superseded historical entries remain in the raw GitHub aggregate. GitHub reports this headMERGEABLE/CLEAN. Sweeper R27 found no actionable code or security findings but retains its documented owner-decision status below. The PR remains open with auto-merge disabled; no merge was performed.git diff --check, and fresh independent P0–P2 review pass. Cold boot now precedes the unchanged SimSlim reconfiguration budget and final profile verification. Exact-head macOS CI passes: iPhone screenshots 1,230 s, iPad screenshots 1,467 s, smoke 1,859 s (complete job costs, not incremental test costs). Per-file hosted timing for the changed regression was not available in the inspected logs.2b4a2749587git diff --checkpass. Independent review found no P0–P2 integration regressions. The sole conflict retains both main's auth-health refactor and the PR's failed-renewal flag. No new tests or UI changes; fresh CI is attached to the updated head.credentialOnly; it passes with the candidate. This replaces the copied-manifest assertion without adding a separate test case.Sweeper R27 reviewed the current head
52a26ed152c1and found no actionable code or security findings. The earlier duplicate Web API-key action is fixed and covered by the failing-before/passing-after rendered-page assertion, 32 focused cases and inspected browser evidence. No score or review marker was edited.Requester authorization for the combined Models scope is recorded above; this is not represented as separate product-owner merge approval. A completed external remote ChatGPT login remains unverified: callback validation, exchange dispatch, cancellation and persistence have synthetic/isolated boundary proof, not a real account login. Acceptance of that proof limit remains a maintainer decision. Configuration compatibility and retained-state upgrade evidence are documented below;
unknown-truncated-pull-filesdescribes the capped review inventory, not an identified storage migration. The full 64-method source audit remains below.Diff size by responsibility
More than half of added lines are tests/fixtures. The 44 manifests add metadata, not provider SDKs to Android. These are source-diff counts against incorporated main, not a claim that moving code between files reduced the total.
Complete credential-only method audit — 64/64 choices
Audited all 64 newly opted-in auth choices in 44 manifests, mapping every choice to its runtime implementation and credential provider (48 provider IDs; zero unmapped methods). All new opt-ins are secret/token methods, not newly enabled OAuth. Existing OAuth flows retain their own eligibility and authority gates.
The shared persistence owner keeps profiles/notes and only provider/plugin connection configuration. It removes advisory default models, agent defaults, routing and unrelated configuration roots before persistence, skips external CLI import, and reconciles the proposal against current configuration. Model-access consent remains enforced. The Gateway validates current admin authority and the exact advertised plugin/provider/method; the OpenAI setup adapter forwards to its real API-key implementation.
Retained intentional behavior: provider endpoints/transport/catalog configuration, OpenCode and StepFun shared-key sibling profiles, and Arcee's OpenRouter credential binding. Normal post-save catalog refresh can make network requests; the entire lifecycle is not claimed to be network-free. This is exhaustive source/contract coverage, not 64 live vendor sign-ins. No provider SDK or auth runtime is added to the APK.
Complete source, compatibility and retained test evidence
All original feature 112 changed paths, 95 prior blobs and 112 candidate blobs were read successfully with lazy fetching disabled. The added cloud-recovery fixture path was read in full, reviewed and exercised; canonical benchmark and Android source identity were verified after current-main integration. None of these source paths are missing. Sweeper's 80-file overview cap is not evidence of a storage migration.
The editor uses existing
agents.defaults.*andplugins.entries.acpx.config.nativeAgents.*fields through revision-guardedconfig.patch. Existing schema owners, credential formats and profile-reference semantics remain unchanged. Optional wire additions (tagsScope,renewalFailed,groupId,setupOptions) have absence handling.includeDefaultModelsalready existed in the original PR base. Tests cover fresh revision/CAS writes, string/object model forms, retained fallback tails, nullable defaults, authority changes and uncertain-write reconciliation.Earlier retained proof: 29 focused Android cases; 152 Gateway/Web auth, picker, recovery and helper cases; 101 registered login/wizard/WizardSession cases; 122 credential-binding cases. These overlap and are not summed into a unique-test total. Recorded wall costs: Android 25 s; Gateway auth-status 105 cases 54.99 s cold; Web login 21 cases 7.93 s, picker 2 cases 3.24 s, recovery 9 cases 3.80 s; cancellation 101 cases 38.44 s; binding 122 cases 38.41 s including its 15-case suite at 2.49 s Vitest. The Utility Model follow-up passed 18 cases plus APK build in 15.09 s; its existing request assertion failed before the one-line repair. Earlier scoped review's proposed coding-runtime card change was rejected against the canonical Web owner; the full model catalog remains selectable.
The prior candidate's full CI job costs were 435 s Android Play, 409 s third-party, 442 s Wear and 345 s Kotlin lint. Those are complete job costs, not incremental costs of the new cases. The exact current PR checks remain the final CI gate.
Original CI failures, canonical fixes and remaining limits
Missing Cron scheduler fixtures were unchanged main code. Canonical fix c0e6951d6f02 resolved all four diagnostics. Redundant side PR fix(ci): restore cron fixture typechecks #159131 was closed without merging.
Run 36268598300, attempt 1 passed the iPad build, then exhausted simslim's fixed ten-minute bootstrap context during reboot. The capture ledger was
attempts: []; no app test ran. GitHub fail-fast cancelled the remaining smoke job. One diagnosed infrastructure replay reran both screenshot families in the same attempt, as their provenance guard requires. No test or timeout was weakened.Attempt 2 exposed
AgentDatabaseRegistryChangedErrorin the Talk custody case; 71 Node jobs were cancelled as a consequence. We reproduced the initial discovery race. Canonical main fix 3d903819c564 now covers discovery and revalidation across registration admission/settlement while retaining captured authority and physical bindings. It replaces the temporary PR-local fix; no duplicate production owner remains.That attempt also recorded a macOS presence test expecting two clear calls but observing one at its four-second boundary. MainActor delays make fixture timing plausible, not proven. No authorized local/disposable Mac route was available; no assertion or deadline was changed. The later
df6ba7macOS test job passed in 567 s; that pass is not claimed as a fix for unchanged code.An older unchanged Session Store test observed one extra
statSync. Original shard order passed 268/268 in 240.27 s; a focused run passed 10/10 in 70.17 s with six measured stat counts zero. The extra path was not identified, and local Node 26.10 differed from that CI's 24.19; its cause remains unproven. Passing replays are not called fixes. CI at the previous head reproduced a related strict-counter failure: two extralstatSynccalls during automatic search, with no captured state-directoryexistsSyncprobe. Both the unmodified exact 22-file/two-worker group and a diagnostic-only replay passed 291/291 on the exact CI merge with Node 24.21.0; the former took 169.67 s. No unexpected filesystem provenance was observed locally; those passes were not claimed as a fix. Main subsequently supplied canonical repair 945ec9ff5611: require zero state-directory discovery independently in every case, excluding unrelated process-wide work from this specific performance contract. That exact source is now incorporated; the temporary PR diagnostics were removed. Earlier unmerged-base lint failures were repaired on main.Run 36276792357 failed the cloud-create recovery browser case: a
machine:standardoption intercepted the account/model-picker click. Other jobs were cancelled by fail-fast, not independently failing. Current main was checked first; it had no repair for this UI path. The exact unmodified 79-file/three-worker set passed 340/340 locally in 307.21 s, so that pass is not claimed as a fix. Source confirms machine choices intentionally keep their menu open; the sibling cloud-dispatch fixture already dismisses it explicitly. This PR now adds that ordinary Escape action and an observed-hidden wait to the recovery fixture, with all six cases and original recovery assertions retained. No product UI was changed.Candidate
ec930791357subsequently completed CI run 36278728127: 182 successful jobs, 9 skipped, including both iOS screenshot lanes and the required CI gate. R23 then identified the Web duplicate described above. That completed run is retained evidence for the prior head, not represented as the final head's CI. The current checks link at the top owns the final result.Run 36287494382, attempt 1 on head
b6bb01e6401passed 204 check runs but failed the iPhone screenshot job atXCUIApplication.launch(): XCTest could not acquire the target app background assertion. The iOS test build succeeded; no screenshot-readiness or visual assertion was reached. The tested merge was108e4005c57b(basee6fae68631f87plus this PR head). The failure artifact records one failed Control capture; no PNG was produced. The sibling iPad capture, smoke and screenshot-evidence jobs were cancelled by fail-fast. Attempt 2 passed iPhone screenshots and iOS smoke, but failed iPad preparation before any test started: the cold boot consumed approximately 8m15s of SimSlim 0.8.0's shared ten-minute boot-and-reconfiguration context, leaving too little time for its required reboot. The iPad artifact contains a successful build log and an empty capture ledger, with no PNG or xcresult. The iPhone recovery is not claimed as a durable repair of its original XCTest launch failure.The owning preparation script now runs its existing native cold-boot readiness barrier before SimSlim. The pinned upstream
cmdOn/ensureimplementation already waits for the post-change reboot and reads back the profile, so the finalverifyremains authoritative. This matches the existing smoke caller's preboot contract. No timeout, test assertion, retry policy, service profile, dependency pin or app UI is weakened or changed. The existing executable Bash ordering/failure cases fail on the original script and pass after the repair; 44/44 owner and lifecycle sibling cases pass in 4.59 s wrapper wall. Fresh independent P0–P2 review found no actionable issue. Exact-head macOS CI now passes in run36290739286, attempt 1. Its tested merge945022f24e7fhas parents main247f33e105f0and candidate52a26ed152c1. Both device logs show cold-boot readiness, successful SimSlim reconfiguration/reboot, and verification that all 13 expected daemons are disabled. The run-bound manifests and PNG hashes verify 4 iPhone and 4 iPad captures, each with a first-attempt passed xcresult and zero failed tests. The screenshot-evidence collector and iOS smoke job also pass. This verifies the preparation repair without claiming that the separate earlier XCTest launch failure was durably fixed.No baseline, retry policy, provenance guard, score, bot marker or timeout was weakened to manufacture readiness. The canonical main benchmark now asserts its named state-discovery contract directly. No merge or deployment is requested by this PR update.
Worked on by
Work sessions
View the OpenClaw team session