Files
openclaw/test
Anuj Bolewar 1328a53930 fix: keep cron trigger once when editing only the script body (#120226)
* fix: keep cron trigger once when editing only the script body

* test: cover cron trigger once preservation on script edit

* test: clean up temp script fixture in cron edit once test

The test leaked the mkdtemp directory under os.tmpdir. Remove it in a
finally block so repeated runs do not accumulate temp fixtures.

Fixes #120226

* test: prove trigger.once survives script edit via real gateway store

* fix(cron): preserve trigger metadata on script edits

Validate trigger script input before any Gateway lookup, retain existing trigger metadata during script-only edits, and replace mock-only handler coverage with isolated CLI-to-Gateway persistence proof.

Co-authored-by: Anuj Bolewar <bolewara@gmail.com>

* test(cron): normalize trigger-script rejection cases

Keep the table rows type-stable so the cron edit regression suite passes test type checking.

Co-authored-by: Anuj Bolewar <bolewara@gmail.com>

* style(cron): format trigger preservation tests

Co-authored-by: Anuj Bolewar <bolewara@gmail.com>

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-09 04:54:50 -07:00
..