openclaw/src/cron/service
kkhomej33-netizen e7d9648fba
feat(cron): support custom session IDs and auto-bind to current session (#16511)
feat(cron): support persistent session targets for cron jobs (#9765)

Add support for `sessionTarget: "current"` and `session:<id>` so cron jobs can
bind to the creating session or a persistent named session instead of only
`main` or ephemeral `isolated` sessions.

Also:
- preserve custom session targets across reloads and restarts
- update gateway validation and normalization for the new target forms
- add cron coverage for current/custom session targets and fallback behavior
- fix merged CI regressions in Discord and diffs tests
- add a changelog entry for the new cron session behavior

Co-authored-by: kkhomej33-netizen <kkhomej33-netizen@users.noreply.github.com>
Co-authored-by: ImLukeF <92253590+ImLukeF@users.noreply.github.com>
2026-03-14 16:48:46 +11:00
..
initial-delivery.ts fix(cron): preserve manual timeoutSeconds on add 2026-03-08 00:48:57 +00:00
jobs.schedule-error-isolation.test.ts
jobs.ts feat(cron): support custom session IDs and auto-bind to current session (#16511) 2026-03-14 16:48:46 +11:00
locked.ts
normalize.ts
ops.ts fix: restore cron manual run type narrowing 2026-03-13 16:51:59 +00:00
state.ts fix(cron): stagger missed jobs on restart to prevent gateway overload 2026-03-09 06:07:43 +00:00
store.ts Cron: enforce cron-owned delivery contract (#40998) 2026-03-09 20:12:37 +01:00
timeout-policy.test.ts
timeout-policy.ts
timer.ts cron: record lastErrorReason in job state (#14382) 2026-03-10 00:01:45 -05:00