Skip to content

Cron Remove deletes on the first click and Run Now starts a disabled job #2032

Open

Description

@SebTardif

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. OnRemoveClick adds the id, then calls RemoveCronJobAsync. OnRunNowClick calls RunCronJobDetailedAsync(jobId) with no confirm.
  • Force default: OpenClawGatewayClient.cs RunCronJobDetailedAsync parameter force = 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.

Compare: https://github.com/openclaw/openclaw-windows-node/compare/main...SebTardif:fix/f058-cron-confirm?expand=1

Fork pull request, where I provide the fix: SebTardif#2

Activity

  1. added
    clawsweeper:intake:bug
    clawsweeper:intake:needs-repro
    P2
    clawsweeper:bulk-filed
    clawsweeper:linked-pr-open
    clawsweeper:needs-product-decision
    clawsweeper:no-new-fix-pr
    clawsweeper:source-repro
    impact:ux-friction
    issue-rating: 🦞 diamond lobster
    and removed
    clawsweeper:intake:bug
    clawsweeper:intake:needs-repro
    on Nov 6, 2026
  2. clawsweeper commented on Nov 6, 2026

    @clawsweeper

    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

    • Question: Should Run Now ask for confirmation when the selected automation is paused?
    • Recommendation: Confirm paused-job execution: Use the existing confirmation UI before executing paused jobs, leaving enabled-job execution and Gateway force semantics unchanged.
    • Why: The removal defects are addressed, while current code deliberately permits forced manual execution independently of the schedule's enabled state.

    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:

    • No recorded maintainer decision establishes whether manually running a paused job should require confirmation.

    Codex review notes: model internal, reasoning medium; reviewed against 66b9b5a559a0.

    Label changes

    Label changes:

    • add P3: The remaining request is a confirmation-policy improvement after the concrete removal defects were addressed.
    • remove 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:

    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed November 14, 2026, 7:46 PM ET / November 15, 2026, 00:46 UTC.

  3. SebTardif commented on Nov 6, 2026

    @SebTardif
    ContributorAuthor

    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

  4. added
    clawsweeper:intake:bug
    clawsweeper:intake:needs-repro
    P3
    and removed
    P2
    clawsweeper:intake:bug
    clawsweeper:intake:needs-repro
    on Nov 15, 2026
  5. github-actions commented on Nov 29, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3clawsweeper:bulk-filedclawsweeper:linked-pr-openclawsweeper:needs-product-decisionclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:ux-frictionissue-rating: 🦞 diamond lobsterstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions