Repository navigation
fix(ui): clear saved automation timeout overrides - #149274
Conversation
|
🦞👀 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. Reviewed September 15, 2026, 2:22 PM ET / 18:22 UTC (Revision 4). ClawSweeper reviewWhat this changesClearing an automation’s timeout now removes its saved override through the shared Gateway update contract, with documentation, regression coverage, and a deterministic Codex test-fixture repair. Merge readiness⛔ Blocked before merge - 1 item remains The fix remains necessary on current main. No actionable correctness or security defects were found, and the existing-state proof resolves the previous compatibility concern. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI and agent automation tool submit job changes to the Gateway. Its cron service merges those changes into saved jobs, which determine subsequent execution budgets. flowchart LR
A[Automation editor] --> C[Gateway update validation]
B[Agent automation tool] --> C
C --> D[Payload merge]
D --> E[Saved job]
E --> F[Default or explicit runtime budget]
E --> G[UI reload and CLI readback]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +32, Tests +221, Docs +2. Total +255 across 20 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep timeout clearing in the existing payload merge owner, preserving omitted values, numeric bounds, and established runtime defaults. Do we have a high-confidence way to reproduce the issue? Yes: save a numeric automation timeout, clear it, save, and reload. Current-main source preserves the old value, and the supplied before/after evidence exercises that flow; this reviewer did not execute it. Is this the best way to solve the issue? Yes. Explicit null follows the existing override-clear pattern and is consumed before persistence, avoiding a competing state owner or migration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 273b6c5e1146. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
|
Compatibility proof for the schema-review checkbox: this changes the update request contract, not the persisted job schema. I tested the candidate at After a graceful Gateway shutdown and restart against that same state, both UI reload and independent CLI readback still showed the override cleared. The served UI asset matched the candidate build byte-for-byte, and the browser reported no errors. The job stayed paused throughout. No data migration is required. Focused tests also cover command/script updates, script default normalization, and rejection of null in create/reported payloads. The first full changed-code check passed. CI fixture repairs now pass 303 focused tests and independent review; the post-rebase changed-code check and fresh hosted CI are running. Maintainer disposition after ClawSweeper revision 2: the repeated automatic data-model checkbox is satisfied by this proof. That review explicitly confirms the compatibility concern is resolved and verifies that the relevant production blobs match the proven revision. The detector flags a protocol-schema path; this patch does not change persisted data format or require migration. |
3e236db to
414b3a1
Compare
Adopt the test-only cleanup repair from #149274 and assert the canonical timeout result. Production deadlines and cleanup behavior are unchanged.
Clearing the timeout field now restores the default after save and reload. Accept null only as an update instruction, consume it at the existing payload merge owner, and preserve numeric create and stored payload contracts. Script updates retain the existing default normalization.
67e6b18 to
fe192ad
Compare
* fix: finish yielded tasks and attribute child failures * test(codex): control model attribution timeout and cleanup Adopt the test-only cleanup repair from #149274 and assert the canonical timeout result. Production deadlines and cleanup behavior are unchanged.
|
Merged via squash.
|
…w#149261) * fix: finish yielded tasks and attribute child failures * test(codex): control model attribution timeout and cleanup Adopt the test-only cleanup repair from openclaw#149274 and assert the canonical timeout result. Production deadlines and cleanup behavior are unchanged.
* fix(ui): clear saved automation timeout overrides Clearing the timeout field now restores the default after save and reload. Accept null only as an update instruction, consume it at the existing payload merge owner, and preserve numeric create and stored payload contracts. Script updates retain the existing default normalization. * test: refresh automation timeout prompt snapshots * test(codex): make model attribution cleanup deterministic * test(codex): assert canonical timeout at harness boundary
What Problem This Solves
Fixes the saved automation timeout returning after users clear Timeout (seconds), save, and reload the Control UI.
User Impact
Users can restore the default timeout by clearing the field. Explicit numeric values, including zero and fractional values where supported, keep their existing behavior. No stored-data migration or new configuration is required.
Why This Change Was Made
Omission in an update preserves the previous value, so an empty form needs an explicit clear instruction.
cron.updatenow acceptstimeoutSeconds: null; normalization retains that intent and the existing payload merge owner consumes it. Create and reported payloads stay numeric-only. Script jobs use their existing default normalization. The UI and agent tool use the same contract.Evidence
The regression failed on the original implementation: clearing a saved 90-second timeout still returned 90 through both the UI and independent CLI readback. The rebuilt Gateway now removes the override, the browser stays empty after reload, and explicit 0 and 0.25 save correctly. Jobs remained paused throughout.
Inspected synthetic proof below excludes account/sidebar content.
Before: clearing, saving, and reloading restores the old 90-second override.
After: the same flow leaves the field empty and restores the default.