Skip to content

fix(cron): route CLI-runtime cron models through compatible backend#76319

Merged
clawsweeper[bot] merged 3 commits intomainfrom
clawsweeper/automerge-openclaw-openclaw-75840
May 3, 2026
Merged

fix(cron): route CLI-runtime cron models through compatible backend#76319
clawsweeper[bot] merged 3 commits intomainfrom
clawsweeper/automerge-openclaw-openclaw-75840

Conversation

@clawsweeper
Copy link
Copy Markdown
Contributor

@clawsweeper clawsweeper Bot commented May 3, 2026

Repair plan for #75840:

  • Keep the useful contributor fix on the existing branch.
  • In src/cron/isolated-agent/model-selection.ts, after normal model precedence resolves provider/model, derive a CLI execution provider with resolveCliRuntimeExecutionProvider using the resolved provider and cfgWithAgentDefaults. Replace the returned provider only when that helper returns a compatible CLI runtime such as claude-cli for anthropic models.
  • Add regression coverage in src/cron/isolated-agent.model-formatting.test.ts for the positive claude-cli plus anthropic case and the negative mismatched claude-cli plus openai override case from the ClawSweeper review.
  • Add a single-line CHANGELOG.md fix entry under Unreleased/Fixes crediting @vishutdhar.
  • Run pnpm test src/cron/isolated-agent.model-formatting.test.ts and pnpm check:changed, then rerun ClawSweeper /review on the exact repaired head before any merge-capable router proceeds.

ClawSweeper 🐠 replacement reef notes:

fish notes: model gpt-5.5, reasoning high; reviewed against 02b6b6c.

@clawsweeper clawsweeper Bot added size: S clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge clawsweeper Tracked by ClawSweeper automation labels May 3, 2026
@chatgpt-codex-connector
Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@clawsweeper
Copy link
Copy Markdown
Contributor Author

clawsweeper Bot commented May 3, 2026

Codex review: passed.

Summary
The PR routes isolated cron executions through compatible configured CLI runtimes, threads agent identity into cron model selection, adds cron regression coverage, and records a changelog fix.

Reproducibility: yes. The source PR describes cron jobs for agents with agentRuntime.id="claude-cli" selecting Anthropic models, and the repaired PR adds focused unit coverage showing those canonical Anthropic attempts execute through claude-cli while OpenAI overrides stay on OpenAI.

Next step before merge
No repair lane is needed because the repaired exact head has no actionable review findings; automerge can rely on the normal exact-head check gate.

Security
Cleared: The diff only changes cron runtime-routing logic, tests, and changelog text; it does not add dependencies, workflow execution, secret handling, or broader permissions.

Review details

Best possible solution:

Land this narrow runtime-routing fix after the remaining exact-head checks finish green, preserving canonical model selection while using compatible CLI backends for execution.

Do we have a high-confidence way to reproduce the issue?

Yes. The source PR describes cron jobs for agents with agentRuntime.id="claude-cli" selecting Anthropic models, and the repaired PR adds focused unit coverage showing those canonical Anthropic attempts execute through claude-cli while OpenAI overrides stay on OpenAI.

Is this the best way to solve the issue?

Yes. Resolving the CLI backend inside the cron executor after canonical fallback selection mirrors the interactive path and avoids rewriting provider/model state for incompatible overrides.

What I checked:

Likely related people:

  • steipete: Recent mainline history touches the cron executor, model-selection hardening, and runtime alias helper paths central to this PR. (role: recent maintainer; confidence: high; commits: 59fb9e5ca7fe, 732aa11f2bec, 343f2d724593; files: src/cron/isolated-agent/run-executor.ts, src/cron/isolated-agent/model-selection.ts, src/agents/model-runtime-aliases.ts)
  • vincentkoc: Introduced/maintained the provider runtime normalization and cron runtime seam work that this PR reuses. (role: adjacent owner; confidence: medium; commits: aa27e27f3606, 35176f3cb730; files: src/agents/model-runtime-aliases.ts, src/cron/isolated-agent/model-selection.ts)
  • jalehman: Recent cron isolated-run maintenance appears in the same executor area, including self-removal and context-engine/session-key fixes. (role: adjacent cron maintainer; confidence: medium; commits: 12c52963ea80, a3c51f91c58a, 8ba82534e6c9; files: src/cron/isolated-agent/run-executor.ts, src/cron/isolated-agent/run.ts)

Remaining risk / open question:

  • One exact-head check-run, check-additional-boundaries, was still in progress during this read-only review; required checks should gate merge.

Codex review notes: model gpt-5.5, reasoning high; reviewed against 06cdb17ad281.

@clawsweeper
Copy link
Copy Markdown
Contributor Author

clawsweeper Bot commented May 3, 2026

🦞🦞
ClawSweeper merged this PR after the passing review.

Source: clawsweeper[bot]
Feedback: structured ClawSweeper verdict: pass (sha=ba2781de8fceefabe18216bd97648920288dbe41)
Merge status: merged by ClawSweeper automerge
Merged at: 2026-05-03T00:31:32Z
Merge commit: 004e8716569c

What merged:

  • The PR routes isolated cron executions through compatible configured CLI runtimes, threads agent identity into cron model selection, adds cron regression coverage, and records a changelog fix.
  • Reproducibility: yes. The source PR describes cron jobs for agents with agentRuntime.id="claude-cli" selecti ... howing those canonical Anthropic attempts execute through claude-cli while OpenAI overrides stay on OpenAI.

Fixups included:

  • Included follow-up commit: fix(cron): route CLI-runtime cron models through compatible backend
  • Included follow-up commit: fix(clawsweeper): address review for automerge-openclaw-openclaw-7584…
  • Ran the ClawSweeper repair loop before final review.

The automerge loop is complete.

Automerge progress:

  • 2026-05-03 00:05:16 UTC review requested repair [`02b6b6c04410`](https://github.com/openclaw/openclaw/commit/02b6b6c0441095bf2d44745ffd8033466611f203) (structured ClawSweeper marker: fix-required (finding=review-feedback sha=02b6b6...)
  • 2026-05-03 00:05:33 UTC repair queued [`02b6b6c04410`](https://github.com/openclaw/openclaw/commit/02b6b6c0441095bf2d44745ffd8033466611f203) (autonomous) Run: https://github.com/openclaw/clawsweeper/actions/runs/25265232234
  • 2026-05-03 00:26:50 UTC repair completed [`ba2781de8fce`](https://github.com/openclaw/openclaw/commit/ba2781de8fceefabe18216bd97648920288dbe41) (branch updated) in 18m 37s Run: https://github.com/openclaw/clawsweeper/actions/runs/25265232234 initial automerge rebase is delegated to Codex repair
  • 2026-05-03 00:26:50 UTC review queued [`ba2781de8fce`](https://github.com/openclaw/openclaw/commit/ba2781de8fceefabe18216bd97648920288dbe41) (after repair)
  • 2026-05-03 00:31:23 UTC review passed [`ba2781de8fce`](https://github.com/openclaw/openclaw/commit/ba2781de8fceefabe18216bd97648920288dbe41) (structured ClawSweeper verdict: pass (sha=ba2781de8fceefabe18216bd97648920288db...)
  • 2026-05-03 00:31:35 UTC merged [`ba2781de8fce`](https://github.com/openclaw/openclaw/commit/ba2781de8fceefabe18216bd97648920288dbe41) (merged by ClawSweeper automerge)

@clawsweeper clawsweeper Bot force-pushed the clawsweeper/automerge-openclaw-openclaw-75840 branch from 02b6b6c to ba2781d Compare May 3, 2026 00:26
@clawsweeper clawsweeper Bot merged commit 004e871 into main May 3, 2026
89 of 90 checks passed
@clawsweeper clawsweeper Bot deleted the clawsweeper/automerge-openclaw-openclaw-75840 branch May 3, 2026 00:31
lxe pushed a commit to lxe/openclaw that referenced this pull request May 6, 2026
…penclaw#76319)

Summary:
- The PR routes isolated cron executions through compatible configured CLI runtimes, threads agent identity into cron model selection, adds cron regression coverage, and records a changelog fix.
- Reproducibility: yes. The source PR describes cron jobs for agents with agentRuntime.id="claude-cli" selecti ... howing those canonical Anthropic attempts execute through claude-cli while OpenAI overrides stay on OpenAI.

ClawSweeper fixups:
- Included follow-up commit: fix(cron): route CLI-runtime cron models through compatible backend
- Included follow-up commit: fix(clawsweeper): address review for automerge-openclaw-openclaw-7584…
- Ran the ClawSweeper repair loop before final review.

Validation:
- ClawSweeper review passed for head ba2781d.
- Required merge gates passed before the squash merge.

Prepared head SHA: ba2781d
Review: openclaw#76319 (comment)

Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Co-authored-by: vishutdhar <68405187+vishutdhar@users.noreply.github.com>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
…penclaw#76319)

Summary:
- The PR routes isolated cron executions through compatible configured CLI runtimes, threads agent identity into cron model selection, adds cron regression coverage, and records a changelog fix.
- Reproducibility: yes. The source PR describes cron jobs for agents with agentRuntime.id="claude-cli" selecti ... howing those canonical Anthropic attempts execute through claude-cli while OpenAI overrides stay on OpenAI.

ClawSweeper fixups:
- Included follow-up commit: fix(cron): route CLI-runtime cron models through compatible backend
- Included follow-up commit: fix(clawsweeper): address review for automerge-openclaw-openclaw-7584…
- Ran the ClawSweeper repair loop before final review.

Validation:
- ClawSweeper review passed for head ba2781d.
- Required merge gates passed before the squash merge.

Prepared head SHA: ba2781d
Review: openclaw#76319 (comment)

Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Co-authored-by: vishutdhar <68405187+vishutdhar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge clawsweeper Tracked by ClawSweeper automation size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants