openclaw/src/cron
issaba1 10ac6ead6b
fix: complete cron isolated model-switch retry (#57972) (thanks @issaba1)
* fix: handle LiveSessionModelSwitchError in cron isolated sessions

The main agent runner catches LiveSessionModelSwitchError and retries
with the requested model, but cron isolated sessions hit this error
and fail immediately. This extends the retry to cover cron execution.

When a cron job with `sessionTarget: 'isolated'` specifies a `model`
different from the agent's primary, the embedded runner throws
LiveSessionModelSwitchError (because the session initialized with the
wrong model). The fix wraps the initial runPrompt call in a retry loop
that catches this error, updates provider/model state, and re-runs —
mirroring the existing retry logic in agent-runner-execution.ts.

Fixes #57206

* fix: carry auth profile through cron model retry

* fix: complete cron isolated model-switch retry (#57972) (thanks @issaba1)

---------

Co-authored-by: Isaac Saba <isaacsaba@Isaacs-Mac-mini.local>
Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-03-31 10:03:37 +05:30
..
isolated-agent fix: complete cron isolated model-switch retry (#57972) (thanks @issaba1) 2026-03-31 10:03:37 +05:30
service refactor(cron): split main and detached dispatch (#57482) 2026-03-30 13:59:55 +09:00
cron-protocol-conformance.test.ts
delivery.failure-notify.test.ts
delivery.test.ts
delivery.ts
heartbeat-policy.test.ts
heartbeat-policy.ts Plugin SDK: route reply payload through public subpath 2026-03-18 12:01:15 -07:00
isolated-agent.auth-profile-propagation.test.ts
isolated-agent.delivers-response-has-heartbeat-ok-but-includes.test.ts Tests: fix green check typing regressions 2026-03-16 12:54:01 +00:00
isolated-agent.delivery-awareness.test.ts cron: queue isolated delivery awareness 2026-03-25 15:21:14 +05:30
isolated-agent.delivery-target-thread-session.test.ts test: move extension-owned coverage into plugins 2026-03-27 15:11:33 +00:00
isolated-agent.delivery.test-helpers.ts
isolated-agent.direct-delivery-core-channels.test.ts refactor: move remaining channel seams into plugins 2026-03-15 23:47:30 -07:00
isolated-agent.direct-delivery-forum-topics.test.ts fix(cron): deliver full announce output instead of last chunk only (#57322) 2026-03-30 01:24:45 +02:00
isolated-agent.helpers.test.ts fix(cron): deliver full announce output instead of last chunk only (#57322) 2026-03-30 01:24:45 +02:00
isolated-agent.lane.test.ts test: harden no-isolate mock and timer cleanup 2026-03-22 13:32:59 -07:00
isolated-agent.mocks.ts
isolated-agent.model-formatting.test.ts perf: extract lightweight runtime seams 2026-03-22 05:03:10 +00:00
isolated-agent.skips-delivery-without-whatsapp-recipient-besteffortdeliver-true.test.ts fix(cron): deliver full announce output instead of last chunk only (#57322) 2026-03-30 01:24:45 +02:00
isolated-agent.subagent-model.test.ts Agents: fix subagent model precedence 2026-03-31 08:38:24 +05:30
isolated-agent.test-harness.ts
isolated-agent.test-setup.ts refactor(plugin-sdk): remove channel-specific sdk shims 2026-03-30 01:03:24 +01:00
isolated-agent.ts
isolated-agent.uses-last-non-empty-agent-text-as.test.ts fix(gateway): preserve async hook ingress provenance 2026-03-22 22:21:49 -07:00
legacy-delivery.ts
normalize.test.ts feat(cron): support custom session IDs and auto-bind to current session (#16511) 2026-03-14 16:48:46 +11:00
normalize.ts feat(cron): support custom session IDs and auto-bind to current session (#16511) 2026-03-14 16:48:46 +11:00
parse.ts
payload-migration.ts
run-log.test.ts
run-log.ts
schedule.test.ts
schedule.ts
service.armtimer-tight-loop.test.ts
service.delivery-plan.test.ts
service.every-jobs-fire.test.ts
service.failure-alert.test.ts
service.get-job.test.ts
service.heartbeat-ok-summary-suppressed.test.ts
service.issue-13992-regression.test.ts
service.issue-16156-list-skips-cron.test.ts
service.issue-17852-daily-skip.test.ts
service.issue-19676-at-reschedule.test.ts
service.issue-22895-every-next-run.test.ts
service.issue-35195-backup-timing.test.ts
service.issue-regressions.test-helpers.ts test: speed up plugin-sdk and cron suites 2026-03-24 17:49:25 +00:00
service.issue-regressions.test.ts test: speed up core runtime suites 2026-03-31 02:25:02 +01:00
service.jobs.test.ts test: dedupe config and utility suites 2026-03-28 00:46:53 +00:00
service.jobs.top-of-hour-stagger.test.ts
service.list-page-sort-guards.test.ts
service.main-job-passes-heartbeat-target-last.test.ts
service.persists-delivered-status.test.ts
service.prevents-duplicate-timers.test.ts
service.read-ops-nonblocking.test.ts
service.rearm-timer-when-running.test.ts
service.restart-catchup.test.ts
service.runs-one-shot-main-job-disables-it.test.ts Reduce lint suppressions in core tests and runtime 2026-03-27 02:11:26 -05:00
service.session-reaper-in-finally.test.ts refactor: split tracked ClawHub update flows 2026-03-23 20:01:51 -07:00
service.skips-main-jobs-empty-systemevent-text.test.ts
service.store-load-invalid-main-job.test.ts test: cover invalid main job store load 2026-03-17 07:06:25 +00:00
service.store-migration.test.ts feat(cron): support custom session IDs and auto-bind to current session (#16511) 2026-03-14 16:48:46 +11:00
service.store.migration.test.ts feat(cron): support custom session IDs and auto-bind to current session (#16511) 2026-03-14 16:48:46 +11:00
service.test-harness.ts refactor: split tracked ClawHub update flows 2026-03-23 20:01:51 -07:00
service.ts
session-reaper.test.ts
session-reaper.ts perf: optimize cold import paths 2026-03-26 23:11:00 +00:00
stagger.test.ts
stagger.ts
store-migration.test.ts test(models): refresh example model fixtures 2026-03-22 23:00:18 -07:00
store-migration.ts feat(cron): support custom session IDs and auto-bind to current session (#16511) 2026-03-14 16:48:46 +11:00
store.test.ts perf: reduce cron persistence churn 2026-03-22 21:28:16 +00:00
store.ts refactor: continue plugin seam cleanup 2026-03-27 13:46:16 +00:00
types-shared.ts
types.ts fix(gateway): preserve async hook ingress provenance 2026-03-22 22:21:49 -07:00
validate-timestamp.ts
webhook-url.ts