mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 21:40:22 +00:00
fix(cron): preserve explicit to on mode override and always include mode in UI patches
- delivery.ts: preserve job-level explicit 'to' when overriding mode - UI: always include mode in failureAlert patch so users can switch between announce/webhook
This commit is contained in:
committed by
Tak Hoffman
parent
b33a57fba9
commit
62f71fa401
@@ -608,8 +608,8 @@ function buildFailureAlert(form: CronFormState) {
|
||||
...(cooldownMs !== undefined ? { cooldownMs } : {}),
|
||||
...(accountId ? { accountId } : {}),
|
||||
};
|
||||
// Only include mode if explicitly set to non-default value
|
||||
if (deliveryMode && deliveryMode !== "announce") {
|
||||
// Always include mode so users can switch between webhook/announce
|
||||
if (deliveryMode) {
|
||||
patch.mode = deliveryMode;
|
||||
}
|
||||
return patch;
|
||||
|
||||
Reference in New Issue
Block a user