Skip to content

fix(ui): keep automation model provider choices distinct - #164574

Merged
obviyus merged 3 commits into
openclaw:mainfrom
ooiuuii:fix/cron-model-provider-164572
Oct 4, 2026
Merged

obviyus merged 3 commits into
openclaw:mainfrom
ooiuuii:fix/cron-model-provider-164572

Conversation

@ooiuuii

@ooiuuii ooiuuii commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

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 saved shared-model instead of the intended provider.

Reuse the existing qualified-model helper at the catalog publication boundary. The picker now offers alpha/shared-model and beta/shared-model, and selecting beta saves beta/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 is 6cc4dd6e151095bad305f1c9467666f9bf8a74ad. 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.

  • Base: both configured provider catalogs expose raw shared-model; only one bare option appears. Selecting that available option and saving yields payload.model: "shared-model" in real cron list --all --json. There is no beta option to select.
  • Candidate: both provider-qualified choices appear. Click beta, create the automation, then read back payload.model: "beta/shared-model" through the CLI.
  • Controls: configured qualified suggestions remain; custom beta/custom-model is saved verbatim. Separate browser/CLI controls verify aliases and an already-saved bare override without migration.
  • Regression: cron-page.lifecycle.test.ts fails 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.
  • Live smoke: one real gpt-5-mini Responses call through a passive proxy, reasoning low, max_output_tokens: 4096, HTTP 200, successful local agent result. No credentials entered the contributor container.

Before: provider identity lost

Baseline Automations picker offers only ambiguous shared-model

After: distinct provider-qualified choices

Candidate Automations picker offers alpha/shared-model and beta/shared-model

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.

@clawsweeper

clawsweeper Bot commented Oct 3, 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.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 12:32 AM ET / 04:32 UTC (Revision 5).

ClawSweeper review

What this changes

The 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
Reviewed head: 6cc4dd6e151095bad305f1c9467666f9bf8a74ad

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with convincing before/after evidence and meaningful save-boundary coverage is now quality-ready.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Chromium screenshots exercise CronPage’s changed catalog publication on the real Gateway Automations page; the captured body records beta selection and CLI readback of beta/shared-model at the pinned candidate head. Compatibility controls cover existing bare overrides, aliases, configured suggestions, and custom input; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after Chromium screenshots exercise CronPage’s changed catalog publication on the real Gateway Automations page; the captured body records beta selection and CLI readback of beta/shared-model at the pinned candidate head. Compatibility controls cover existing bare overrides, aliases, configured suggestions, and custom input; no stored-data contract changes.
Evidence reviewed 8 items Pinned introduced change: The verified merge-base-to-head diff changes only catalog qualification and related tests. Comparing the previously reviewed head with the current head shows no changes to these three files.
Current main still needs the repair: Fetched main still publishes entry.id without its provider. The inspected catalog, qualification helper, and suggestion merger are unchanged between the pinned base and fetched main. The latest-release blob inspection failed because its object could not be retrieved; no release implementation claim is made.
Existing qualification owner: The reused helper preserves already-prefixed values, qualifies nested raw IDs, and leaves providerless values intact. Existing chat and new-session callers use this same helper. Its legacy-provider import is OpenClaw configuration normalization and does not establish a dependency on the separate Codex runtime.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +1, Tests +111. Total +112 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 2 1 +1
Tests 2 120 9 +111
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 122 10 +112

Review metrics

Metric Value Why it matters
Production versus test growth production +1 net line; tests +111 net lines Production growth reuses an existing helper; additional coverage protects provider selection through the save boundary.
Focused regression cost 20 cases; reported 3.21 s test duration, 4.96 s wall time The measured lifecycle regression stays within the repository’s five-second target.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #164572
Summary: This PR is the explicit candidate fix for the paired provider-identity bug.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after Chromium screenshots exercise CronPage’s changed catalog publication on the real Gateway Automations page; the captured body records beta selection and CLI readback of beta/shared-model at the pinned candidate head. Compatibility controls cover existing bare overrides, aliases, configured suggestions, and custom input; no stored-data contract changes.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after Chromium screenshots exercise CronPage’s changed catalog publication on the real Gateway Automations page; the captured body records beta selection and CLI readback of beta/shared-model at the pinned candidate head. Compatibility controls cover existing bare overrides, aliases, configured suggestions, and custom input; no stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after Chromium screenshots exercise CronPage’s changed catalog publication on the real Gateway Automations page; the captured body records beta selection and CLI readback of beta/shared-model at the pinned candidate head. Compatibility controls cover existing bare overrides, aliases, configured suggestions, and custom input; no stored-data contract changes.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This repairs incorrect model-provider selection in Automations with a limited UI boundary.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after Chromium screenshots exercise CronPage’s changed catalog publication on the real Gateway Automations page; the captured body records beta selection and CLI readback of beta/shared-model at the pinned candidate head. Compatibility controls cover existing bare overrides, aliases, configured suggestions, and custom input; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after Chromium screenshots exercise CronPage’s changed catalog publication on the real Gateway Automations page; the captured body records beta selection and CLI readback of beta/shared-model at the pinned candidate head. Compatibility controls cover existing bare overrides, aliases, configured suggestions, and custom input; no stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after Chromium screenshots exercise CronPage’s changed catalog publication on the real Gateway Automations page; the captured body records beta selection and CLI readback of beta/shared-model at the pinned candidate head. Compatibility controls cover existing bare overrides, aliases, configured suggestions, and custom input; no stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The verified merge-base-to-head diff changes only catalog qualification and related tests. Comparing the previously reviewed head with the current head shows no changes to these three files. (ui/src/pages/cron/cron-page.ts:362, 6cc4dd6e1510)
  • Current main still needs the repair: Fetched main still publishes entry.id without its provider. The inspected catalog, qualification helper, and suggestion merger are unchanged between the pinned base and fetched main. The latest-release blob inspection failed because its object could not be retrieved; no release implementation claim is made. (ui/src/pages/cron/cron-page.ts:361, 2e76e316c286)
  • Existing qualification owner: The reused helper preserves already-prefixed values, qualifies nested raw IDs, and leaves providerless values intact. Existing chat and new-session callers use this same helper. Its legacy-provider import is OpenClaw configuration normalization and does not establish a dependency on the separate Codex runtime. (ui/src/lib/chat/model-ref.ts:10, 6cc4dd6e1510)
  • Existing-state compatibility: Configured suggestions and saved job overrides remain independent inputs to the suggestion merger. Editing reads the existing payload.model unchanged, and saving uses the form’s selected string. The patch changes neither stored format nor migration behavior. (ui/src/pages/cron/form-suggestions.ts:64, 6cc4dd6e1510)
  • Inspected real browser proof: Both prepared images were inspected locally. The baseline screenshot shows only shared-model; the candidate screenshot shows alpha/shared-model and beta/shared-model. The captured PR body identifies the baseline and candidate SHAs, isolated Chromium/real Gateway environment, beta selection, and CLI readback payload.model: "beta/shared-model". It also records custom input, alias, configured-suggestion, and saved-bare-override controls. The unrelated provider smoke is supplemental. (6cc4dd6e1510)
  • Prior requests addressed: The previous review requested before/after provider-choice and qualified-save proof plus focused test timing. The captured body supplies both: baseline 4 failed/16 passed versus candidate 20 passed, with 3.21 seconds Vitest duration and 4.96 seconds command wall time. The new table-driven regression exercises actual page selection and cron.add payload construction with and without configured alternatives. These results were reported by the contributor; no tests were executed during this read-only review. (ui/src/pages/cron/cron-page.lifecycle.test.ts:24, 6cc4dd6e1510)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • shakkernerd: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-03T22:18:17.018Z sha d0d997e :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-03T22:27:05.265Z sha d0d997e :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-03T22:38:17.373Z sha 9e1f422 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-03T22:49:38.643Z sha 9e1f422 :: needs real behavior proof before merge. :: none

@obviyus

obviyus commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator

@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.

@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 4, 2026
@obviyus
obviyus merged commit 7e18441 into openclaw:main Oct 4, 2026
110 of 113 checks passed
@obviyus

obviyus commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator

Landed as 7e18441. Thanks @ooiuuii!

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
…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]>
@ooiuuii

ooiuuii commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui 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. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Automations model suggestions drop provider identity for shared model IDs

2 participants