Repository navigation
fix(ui): keep automation model provider choices distinct - #164574
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: needs maintainer review before merge. Reviewed October 4, 2026, 12:32 AM ET / 04:32 UTC (Revision 5). ClawSweeper reviewWhat this changesThe PR preserves provider-qualified model choices in Automations and adds selection/save regressions while updating existing browser-test expectations. Merge readiness✅ Ready for maintainer review The fix remains necessary on current main. The new evidence satisfies the previous proof requests, and no blocking correctness or security findings remain. Priority: P2 Review scores
Verification
How this fits togetherThe Automations page receives the selected agent’s model catalog from the Gateway and builds model choices for scheduled tasks. The selected value becomes the task’s saved model override. flowchart LR
A[Agent model catalog] --> B[Selectable catalog rows]
B --> C[Preserve provider and model]
D[Configured and saved overrides] --> E[Automation model picker]
C --> E
E --> F[Gateway saves task]
F --> G[Scheduled agent model]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +1, Tests +111. Total +112 across 3 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep one shared qualification helper and preserve the operator’s chosen provider through task creation without rewriting existing overrides. Do we have a high-confidence way to reproduce the issue? Yes: two providers advertising the same raw model ID reach current main’s provider-dropping projection and collapse during string deduplication. Supplied baseline browser proof corroborates this; the reviewer did not execute target code. Is this the best way to solve the issue? Yes: qualifying catalog rows before deduplication repairs the producing boundary with the existing helper while preserving configured suggestions and saved overrides. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2e76e316c286. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
@clawsweeper re-review Head 6cc4dd6 now has real Chromium before/after screenshots embedded in the PR body, real Gateway save/readback for the duplicate raw model IDs, baseline-failing/candidate-passing regression coverage, serial test timing, compatibility controls, and one successful gpt-5-mini live smoke. Please assess the exact head with this evidence. |
|
🦞👀 Re-review progress:
|
…4574) Fixes openclaw#164572. The Automations model picker lost provider metadata when discovered models from different providers shared a raw model ID, so it showed a single bare entry and saved jobs resolved to the wrong provider. The catalog publication boundary now keeps provider-qualified ids through the existing qualified-model helper. Configured suggestions, aliases and custom qualified input are unchanged, and already-saved bare overrides are not migrated. Proof: in real Chromium against a built Gateway with two providers that both list `shared-model`, base collapsed them into one `shared-model` entry and saved a bare override. With this change the picker shows `alpha/shared-model` and `beta/shared-model`, and choosing beta saved `beta/shared-model`, verified via the cron list. Before and after screenshots are in the PR. The regression tests fail on base and pass here. A live gpt-5-mini smoke call passed. Co-authored-by: Ayaan Zaidi <[email protected]>
|
Thanks for adding the browser screenshots and actual Gateway save/readback checks. Verifying that the selected provider-qualified model survives persistence is particularly useful beyond the focused tests. I appreciate the extra validation and landing work. |
Closes #164572
What Problem This Solves
Automations discarded the provider when publishing discovered model suggestions. When two providers exposed
shared-model, the picker deduplicated them into one ambiguous bare choice and savedshared-modelinstead of the intended provider.Reuse the existing qualified-model helper at the catalog publication boundary. The picker now offers
alpha/shared-modelandbeta/shared-model, and selecting beta savesbeta/shared-model. Runtime resolution and catalog-refresh ownership are unchanged. Existing configured suggestions, aliases, custom qualified inputs and saved bare overrides are preserved; no migration.Thanks to @ooiuuii for the report, fix and regression coverage. Contributor commits are retained. No overlap with Pash/Sarah changes.
Evidence
Built runtime and Control UI in an isolated Node 24.21.0 Docker container; actual Chromium against the real Gateway Automations page, not a mocked transport or component mount. Baseline is current main
8a0b0c458bbdac520a8f99b4735144722f698be7; candidate is6cc4dd6e151095bad305f1c9467666f9bf8a74ad. For the negative control, the candidate's sole production change was replaced with that baseline file and its UI rebuilt against the same Gateway build identity.shared-model; only one bare option appears. Selecting that available option and saving yieldspayload.model: "shared-model"in realcron list --all --json. There is no beta option to select.payload.model: "beta/shared-model"through the CLI.beta/custom-modelis saved verbatim. Separate browser/CLI controls verify aliases and an already-saved bare override without migration.cron-page.lifecycle.test.tsfails on the baseline publication code (4 failed / 16 passed, including both provider selection cases); candidate passes all 20 cases. Serial command:node scripts/run-vitest.mjs run --config ui/vitest.config.ts ui/src/pages/cron/cron-page.lifecycle.test.ts --maxWorkers=1(3.21 seconds Vitest duration, 4.96 seconds command wall time). Prior native CI lifecycle module cost was 2.223 seconds within its parallel shard; current-head CI cost is reported by its jobs.gpt-5-miniResponses call through a passive proxy, reasoninglow,max_output_tokens: 4096, HTTP 200, successful local agent result. No credentials entered the contributor container.Before: provider identity lost
After: distinct provider-qualified choices
Exact-head CI run 37177097289 passed, including all selected UI shards, both real-Gateway E2E shards, types, lint and
openclaw/ci-gate. ClawSweeper reviewed this exact SHA and is ready with no blocking findings.