Repository navigation
fix: show ended one-time automations in History - #201280
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 2c1ef7dc-3f82-80a3-a3dc-64b8feb80c43
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesThis PR records ended one-time occurrences and groups their retained automation definitions under History. Example: Send build notice finishes at 9:30 PM, but its notification is not delivered.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this PR open: it adds useful History behavior still absent on main, but the explicit do-not-land hold remains in force. Reviewed head: Before merge
FindingsNone. Agent review detailsHow this fits togetherThe cron scheduler persists occurrence status, Gateway projections publish it, and the Control UI groups saved definitions while the existing run-history reader serves execution records. flowchart LR
A[Timer or command exit] --> B[Cron scheduler worker]
B --> C[Persisted job runtime]
D[Legacy receipts and run records] --> B
C --> E[Gateway inventory and events]
E --> F[Active Paused and History]
F --> G[Original definition and runs]
Technical reviewBest possible solution: Keep occurrence disposition owned by the scheduler and use existing definition and run readers to present retained automations. Do we have a high-confidence way to reproduce the issue? Current-main grouping and the supplied before screenshot establish that retained ended jobs share Paused with resumable jobs; this read-only review ran no target code. Is this the best way to solve the issue? Persisting the scheduler’s occurrence disposition avoids guessing from the latest manual run, while the shared projections preserve existing retention and execution boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bc3700e9833e. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +208, Tests +182, Docs 0. Total +390 across 40 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (11 earlier review cycles; latest 8 shown)
Reviewed November 28, 2026, 7:01 PM ET / November 29, 2026, 00:01 UTC (Revision 12). |
Merge main without rewriting the PR history. Preserve running command lifetimes and hold legacy cleanup definitions until backed-up Doctor conversion. Co-authored-by: daniel-lxs <[email protected]>
Honor the retry reader view, migrate SQLite-only legacy policies, and record exact-cycle alert outcomes after retirement. Update focused fixtures to inspect retained history and preserve lifecycle, delivery, and authority assertions. Co-authored-by: daniel-lxs <[email protected]>
Keep the extracted scenario matrix without reindenting the existing authority proof. Co-authored-by: daniel-lxs <[email protected]>
Keep the recurring test job for manual runs. Revoking its invitation pauses the job, so wait for the failure alert to be refused before restoring access. Pass the cron service once in the plugin fixture. Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: daniel-lxs <[email protected]>
|
@clawsweeper re-review |
Report when a retained one-shot has ended using its scheduler state. Record command exits when the watcher is consumed and keep a manually expanded group open after clearing a filter.
Ordinary reads and edits use the stored disposition. Startup verifies and records older scheduled completions before dispatch. This avoids scanning unrelated history during mutations and gives passive pre-start readers a consistent view.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Both callers run in the cron database worker. Use the scheduler's enablement check so older definitions with no enabled field retain the default.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…or baseline * commit '2f2edbf36836a8ddc6758dfdcce872d4414a3a92': (520 commits) chore(doctor): hold expired doctor migrations as removal-pending (#207865) fix: show ended one-time automations in History (#201280) chore(release): update appcast for 2026.11.11 (#207504) fix: let updates back up deeply nested databases (#207756) fix(telegram): stop resending earlier messages to the model on every turn in DM topics (#207684) feat(workboard): choose which sessions appear on a board (#207781) fix: acknowledge updates when the Gateway first becomes ready (#207819) chore: stop the cron recovery test from failing CI on slow runners (#207837) fix: queue follow-ups when session creation reuses an active chat (#207800) feat(clawrouter): consume qualified native memory embeddings (#191874) fix: save the account for main-session prompts and converted reminders (#207776) test(infra): measure worker Buffer storage directly (#207663) feat(workboard): hide sessions and filter subagents per board (#207744) chore(i18n): refresh native locales (#207796) fix: name safe recovery when agent schema markers disagree (#207705) improve(ui): show only setup warnings on skill pages (#203750) fix(gateway): keep Linux legacy lock recovery explicit (#207340) fix: deliver a saved child answer after a Gateway crash (#207706) fix(ui): fold background command wakes into chat activity (#207305) fix: restore the Feishu proxy transport tests (#207782) ...
…aseline * commit '2f2edbf36836a8ddc6758dfdcce872d4414a3a92': (520 commits) chore(doctor): hold expired doctor migrations as removal-pending (#207865) fix: show ended one-time automations in History (#201280) chore(release): update appcast for 2026.11.11 (#207504) fix: let updates back up deeply nested databases (#207756) fix(telegram): stop resending earlier messages to the model on every turn in DM topics (#207684) feat(workboard): choose which sessions appear on a board (#207781) fix: acknowledge updates when the Gateway first becomes ready (#207819) chore: stop the cron recovery test from failing CI on slow runners (#207837) fix: queue follow-ups when session creation reuses an active chat (#207800) feat(clawrouter): consume qualified native memory embeddings (#191874) fix: save the account for main-session prompts and converted reminders (#207776) test(infra): measure worker Buffer storage directly (#207663) feat(workboard): hide sessions and filter subagents per board (#207744) chore(i18n): refresh native locales (#207796) fix: name safe recovery when agent schema markers disagree (#207705) improve(ui): show only setup warnings on skill pages (#203750) fix(gateway): keep Linux legacy lock recovery explicit (#207340) fix: deliver a saved child answer after a Gateway crash (#207706) fix(ui): fold background command wakes into chat activity (#207305) fix: restore the Feishu proxy transport tests (#207782) ...
…aseline * commit '2f2edbf36836a8ddc6758dfdcce872d4414a3a92': (520 commits) chore(doctor): hold expired doctor migrations as removal-pending (#207865) fix: show ended one-time automations in History (#201280) chore(release): update appcast for 2026.11.11 (#207504) fix: let updates back up deeply nested databases (#207756) fix(telegram): stop resending earlier messages to the model on every turn in DM topics (#207684) feat(workboard): choose which sessions appear on a board (#207781) fix: acknowledge updates when the Gateway first becomes ready (#207819) chore: stop the cron recovery test from failing CI on slow runners (#207837) fix: queue follow-ups when session creation reuses an active chat (#207800) feat(clawrouter): consume qualified native memory embeddings (#191874) fix: save the account for main-session prompts and converted reminders (#207776) test(infra): measure worker Buffer storage directly (#207663) feat(workboard): hide sessions and filter subagents per board (#207744) chore(i18n): refresh native locales (#207796) fix: name safe recovery when agent schema markers disagree (#207705) improve(ui): show only setup warnings on skill pages (#203750) fix(gateway): keep Linux legacy lock recovery explicit (#207340) fix: deliver a saved child answer after a Gateway crash (#207706) fix(ui): fold background command wakes into chat activity (#207305) fix: restore the Feishu proxy transport tests (#207782) ...
…line * commit '652611b9d924c754ac7a18d0081cce6e1ec765df': (527 commits) refactor(infra): simplify audit recovery write progress (#157141) fix: show restart blockers in service logs (#207879) test(infra): exercise group identity in session roundtrip (#207671) test(infra): exercise live owner expiry policy (#207672) feat: let Knowledge learn from your Gmail through Composio (#207266) test: stop the history-worker overload test from failing CI on slow runners (#207862) test(auth): assert SecretRef plaintext is absent from storage (#207698) chore(doctor): hold expired doctor migrations as removal-pending (#207865) fix: show ended one-time automations in History (#201280) chore(release): update appcast for 2026.11.11 (#207504) fix: let updates back up deeply nested databases (#207756) fix(telegram): stop resending earlier messages to the model on every turn in DM topics (#207684) feat(workboard): choose which sessions appear on a board (#207781) fix: acknowledge updates when the Gateway first becomes ready (#207819) chore: stop the cron recovery test from failing CI on slow runners (#207837) fix: queue follow-ups when session creation reuses an active chat (#207800) feat(clawrouter): consume qualified native memory embeddings (#191874) fix: save the account for main-session prompts and converted reminders (#207776) test(infra): measure worker Buffer storage directly (#207663) feat(workboard): hide sessions and filter subagents per board (#207744) ...
…line * commit 'c876514dc21154a07f3755320495d2a93584b46b': (538 commits) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) test(activity): check midnight refresh against the elapsed window (#207859) test(ui): use one persisted message ID in queued-image handoff (#207861) test(agents): release configured MCP fixture resources (#207716) fix(workboard): clear CI failures in the session filter editor (#207858) perf(ai): reduce allocation in OpenAI Responses streams (#207889) chore: stop the Workboard resident-owner CLI test from failing on main (#207898) test(agents): isolate endpoint-based overflow classification (#207688) chore(doctor): record why the root defaultModel migration stays (#207890) refactor(infra): simplify audit recovery write progress (#157141) fix: show restart blockers in service logs (#207879) test(infra): exercise group identity in session roundtrip (#207671) test(infra): exercise live owner expiry policy (#207672) feat: let Knowledge learn from your Gmail through Composio (#207266) test: stop the history-worker overload test from failing CI on slow runners (#207862) test(auth): assert SecretRef plaintext is absent from storage (#207698) chore(doctor): hold expired doctor migrations as removal-pending (#207865) fix: show ended one-time automations in History (#201280) ...
Record when a timed one-shot or watched command ends so owners can find its saved definition and delivery outcome in Automations → History. Recover older timed occurrences when their receipts and run records confirm completion. Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 2c1ef7dc-3f82-80a3-a3dc-64b8feb80c43
Warning
Do not land. Still in progress and under discussion. Talk to @vyctorbrzezowski.
What problem this solves
Paused automations include both work an owner may resume and one-time jobs that have already ended. When a notification fails to arrive, the owner needs the original command, delivery outcome and run record to decide whether to try again.
User impact
Open Automations → History for saved one-time jobs whose scheduled run or watched command ended. Each row shows the last run when one is available and opens the original automation. All runs opens the execution log, including when the last definition has been removed.
The scheduler records whether the occurrence ended. Opening History performs a read. A manual run of a paused job stays in Paused. Re-enabling a command watcher arms the original definition again. An explicitly resumed definition appears in Active, and its detail shows whether another run is scheduled. The existing successful-run deletion policy,
--keep-after-run, ownership and Run now permissions still apply. Retention use · Delivery and retention decisionOlder disabled definitions can be opened in Paused before the scheduler starts. At startup, a scheduled receipt and its matching run record can establish that an older timed job ended. The status survives run-history cleanup. An open sidebar refreshes when the saved status changes. An edit that arrives during startup preserves the evidence for its own definition. A pending retry or continuation keeps the definition out of History. Older watchers and other jobs whose records cannot establish that the occurrence ended remain available in Paused.
Evidence
The screenshots show main at
fbf1aaedon the left and the Control UI atf6f07ef9on the right. Both gateways opened the same synthetic data, with Paused and History expanded where available. The viewer had onlyoperator.read. The six retained definitions matched byte-for-byte. Startup added an ended flag to the three confirmed occurrences. Every pre-existing runtime field matched. Main fbf1aaed · PR f6f07ef9The notification command returned Build ready, but delivery failed. The owner could inspect the same saved command and the original run on both builds. With automation and host-command access, the owner explicitly chose Run now. Exactly one new run appeared under the same ID. A real watcher entered History after the owner rearmed it and its command exited. Manually running the paused watcher and the overdue paused timer left both in Paused. The grouping and original runs survived a gateway restart. The sidebar showed New automation to an administrator, who used it to create a saved job.
A separate upgrade from the published 2026.11.11 release preserved a retained job that had completed on schedule and then been run manually. Its History row linked the same definition and both original run IDs were available.
230 focused scheduler, Gateway and tool tests passed, along with 28 Control UI tests and three selected browser cases. Core, cron test and UI typechecks, protocol contracts, copy checks, lint and formatting passed. The independent source review of the inventory publication change found no blocking correctness or security issue.
The cron database worker owns legacy receipt recovery during startup and edits. The database-worker ratchet counted 167 main-thread SQLite call sites on both the PR base and the repaired source. Core lint shard 5, typed lint on all three affected files, core typechecking, formatting and 27 focused cron tests passed. CI repair b59345e2
The clean main and PR UI builds passed their bundle comparison. With all bundled plugin interfaces packaged, main already exceeds the absolute Chat budget. Both builds load 18 Chat requests. The UI in this PR adds 67 gzip bytes, 3 bytes over that comparison allowance. External channel delivery, native devices and PostgreSQL were outside the live comparison.
Co-authored with Vyctor Brzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by