Repository navigation
Description
What happens
On the Cron page, Remove sends cron.remove on the first click. The job id is stored in _removedJobIds before the gateway accepts the remove. If the remove is rejected, that id stays stored, so a later one-shot completion notice for the same id is suppressed.
Run Now calls cron.run with force: true, which is the client default, including when the job is turned off. The Sessions page asks before a destructive action. These two do not.
Where
Checked on 122bda71.
- Remove and Run Now: CronPage.xaml.cs.
OnRemoveClickadds the id, then callsRemoveCronJobAsync.OnRunNowClickcallsRunCronJobDetailedAsync(jobId)with no confirm. - Force default: OpenClawGatewayClient.cs
RunCronJobDetailedAsyncparameterforce = true.
Suggested fix
Ask before remove, and ask before Run Now when the job is disabled. Remember the id only for the gateway call, and forget it when remove is not accepted.
Environment
Windows 11. .NET 10. OpenClaw Companion source on main at 122bda71.
Fix
I have a fix on my fork, branch fix/f058-cron-confirm, commit 12c236d6eec5ba3d31b0e126ada1ebb6bd33e6a4.
Fork pull request, where I provide the fix: SebTardif#2
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsBacklog
Activity
clawsweeper commentedon Nov 6, 2026
Codex review: this still needs some work.
Summary
Removal confirmation and failed-removal cleanup are implemented on main, but disabled-job Run Now still skips confirmation and the author's paired fork PR remains open.
Reproducibility: Current source establishes immediate forced execution of paused jobs and the repaired removal paths; no live reproduction or tests ran, WinApp is unavailable, and the inspected screenshots show the older Cron UI rather than current behavior.
Maintainer decision needed
Next step
Decide whether paused-job Run Now needs confirmation and reconcile the author's open fork PR with the current Automations implementation.
Review details
Best possible solution:
Resolve disabled-job confirmation in the current Automations UI while retaining response-aware removal handling.
Do we have a high-confidence way to reproduce the issue?
Current source establishes immediate forced execution of paused jobs and the repaired removal paths; no live reproduction or tests ran, WinApp is unavailable, and the inspected screenshots show the older Cron UI rather than current behavior.
Is this the best way to solve the issue?
A paused-job confirmation can use the existing modal owner without changing the Gateway contract; the old CronPage fork implementation needs reconciliation with the replacement UI.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 66b9b5a559a0.
Label changes
Label changes:
P3: The remaining request is a confirmation-policy improvement after the concrete removal defects were addressed.P2: Current review triage priority is P3, so this older priority label is no longer current.Label justifications:
P3: The remaining request is a confirmation-policy improvement after the concrete removal defects were addressed.impact:ux-friction: Paused jobs can still execute immediately through Run Now without an additional warning.Evidence reviewed
What I checked:
src/OpenClaw.Tray.WinUI/Automations/AutomationDetail.cs:105, 66b9b5a559a0)src/OpenClaw.Shared/Cron/AutomationsStore.cs:1021, 66b9b5a559a0)src/OpenClaw.Shared/Cron/CronGatewayRequests.cs:66, 66b9b5a559a0)src/OpenClaw.Tray.WinUI/Automations/AutomationDetail.cs:122, 66b9b5a559a0)src/OpenClaw.Tray.WinUI/Automations/AutomationDetail.cs:105, 994539b8b6f5)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed November 14, 2026, 7:46 PM ET / November 15, 2026, 00:46 UTC.
SebTardif commentedon Nov 6, 2026
The fork fix follows the recommendation in this review. Remove asks first. Run Now asks only when the job is disabled. Enabled Run Now is unchanged. If the gateway does not accept the remove, the id is forgotten, so a later one-shot completion can still notify.
The fix is on my fork: SebTardif#2
github-actions commentedon Nov 29, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updated OpenClaw Windows details or it will be closed.