Skip to content

fix(ui): clear saved automation timeout overrides - #149274

Merged
steipete merged 4 commits into
mainfrom
codex/fix-automation-timeout-clear
Sep 15, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/fix-automation-timeout-clear

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

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.update now accepts timeoutSeconds: 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.

  • 316 focused backend, protocol, and agent tool tests passed.
  • 202 Control UI controller tests passed.
  • 19 browser tests passed, including the real Gateway save/reload flow, editing, cloning, failure alerts, and filters; no skipped cases in the completed run.
  • Full build passed. Independent Codex review found no actionable P0–P2 issues.
  • Initial CI caught stale generated prompt snapshots. The four affected snapshots were regenerated; all seven snapshots now pass the canonical check, and the follow-up passed independent review.
  • The original timeout fix passed the full changed-code check. Before the final rebase, all local typechecks and completed contract guards passed. The duplicate full-core lint pass was stopped under local memory/swap pressure; hosted lint subsequently passed in the complete CI run below.
  • Existing-state compatibility proof: the prior Gateway’s saved job loads, clears through the real UI, and stays cleared after a full Gateway restart; unrelated job fields remain intact.
  • CI recovery uses the repository-identity fixture repair now landed in #149294. The redundant local fixture commit was dropped during conflict resolution. This PR retains the deterministic Codex model-attribution/cleanup test repair (29 tests passed), including the unchanged watchdog and a direct canonical timeout assertion. Independent reviews found no actionable issues.
  • Complete pre-rebase CI passed, including lint, typechecks, and all browser/Node jobs.
  • All four retained commits are patch-identical after the final rebase; seven prompt snapshots remain current. Complete hosted CI on the final rebased head passed, including browser, real Gateway, Node, lint, and type checks.

Inspected synthetic proof below excludes account/sidebar content.

Before: clearing, saving, and reloading restores the old 90-second override.

Before: saved timeout returns after clearing

After: the same flow leaves the field empty and restores the default.

After: cleared timeout remains empty after reload

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 15, 2026 16:34
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: M maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 15, 2026, 2:22 PM ET / 18:22 UTC (Revision 4).

ClawSweeper review

What this changes

Clearing 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
Reviewed head: fe192ad877265e1bd9337bd4792f22edea2c7082

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with strong visible and existing-state proof and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots and the linked real-Gateway account show the editor’s clear instruction reaching saved job state, surviving UI reload and Gateway restart, with independent CLI readback and preserved unrelated fields; relevant production blobs match the proven revision.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after screenshots and the linked real-Gateway account show the editor’s clear instruction reaching saved job state, surviving UI reload and Gateway restart, with independent CLI readback and preserved unrelated fields; relevant production blobs match the proven revision.
Evidence reviewed 12 items Current main still needs the fix: The current UI omits a blank timeout, while the current payload merge only applies numeric timeout updates; omission consequently preserves the previous override.
Latest release lacks timeout clearing: The v2026.9.4 payload merge also accepts numeric updates without a null-clear branch.
Clear instruction stays at the existing owner: Normalization preserves null; the merge owner deletes the timeout for agent, command, and script updates. Replacement payloads include only numeric timeouts, and the existing script normalization restores its default.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +32, Tests +221, Docs +2. Total +255 across 20 files.

View PR surface stats
Area Files Added Removed Net
Source 7 47 15 +32
Tests 12 288 67 +221
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 20 337 82 +255

Review metrics

Metric Value Why it matters
Timeout update contract 1 existing field gains clear semantics across 3 payload kinds; 0 persisted-format changes The extension is confined to update requests and does not require a stored-data migration.

Stored data model

Persistent data-model change detected: unknown-data-model-change: packages/gateway-protocol/src/schema/cron-shared.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This repairs a bounded automation-editing defect where clearing an existing timeout fails to persist.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after screenshots and the linked real-Gateway account show the editor’s clear instruction reaching saved job state, surviving UI reload and Gateway restart, with independent CLI readback and preserved unrelated fields; relevant production blobs match the proven revision.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after screenshots and the linked real-Gateway account show the editor’s clear instruction reaching saved job state, surviving UI reload and Gateway restart, with independent CLI readback and preserved unrelated fields; relevant production blobs match the proven revision.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after screenshots and the linked real-Gateway account show the editor’s clear instruction reaching saved job state, surviving UI reload and Gateway restart, with independent CLI readback and preserved unrelated fields; relevant production blobs match the proven revision.

Evidence

What I checked:

  • Current main still needs the fix: The current UI omits a blank timeout, while the current payload merge only applies numeric timeout updates; omission consequently preserves the previous override. (ui/src/lib/cron/index.ts:1049, 273b6c5e1146)
  • Latest release lacks timeout clearing: The v2026.9.4 payload merge also accepts numeric updates without a null-clear branch. (src/cron/service/payload-merge.ts:139, 3a9d69db306c)
  • Clear instruction stays at the existing owner: Normalization preserves null; the merge owner deletes the timeout for agent, command, and script updates. Replacement payloads include only numeric timeouts, and the existing script normalization restores its default. (src/cron/service/payload-merge.ts:145, fe192ad87726)
  • Request-only contract change: Update schemas allow null for all three timeout-bearing payload kinds; create and reported payload schemas retain numeric bounds. Protocol regression coverage explicitly rejects null for create and reported jobs. (packages/gateway-protocol/src/schema/cron.ts:280, fe192ad87726)
  • Inspected before and after screenshots: Both prepared PR images were inspected locally: the before image shows 90 seconds and the after image shows the empty field. The captured PR body describes save/reload, independent CLI readback, and preservation of explicit 0 and 0.25 values. (3e236db022c1)
  • Existing-state compatibility and proof continuity: fix(ui): clear saved automation timeout overrides #149274 (comment) records clearing an existing paused job, preserving unrelated fields, and verifying the result after Gateway restart through UI and CLI. GitHub contents responses and local blob hashes matched for the UI builder, normalization, payload merge, types, and both protocol schema files at the proven revision. Historical revisions were unavailable locally, so blob identity was checked through GitHub instead. (src/cron/service/payload-merge.ts:145, fe192ad87726)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Solomon Neas: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-15T16:48:35.834Z sha 3e236db :: blocked before merge. :: none
  • reviewed 2026-09-15T17:11:02.565Z sha 414b3a1 :: blocked before merge. :: none
  • reviewed 2026-09-15T17:44:23.297Z sha 67e6b18064996ca217e79fa9589610192c5f897e :: blocked before merge. :: none

@steipete

steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Compatibility proof for the schema-review checkbox: this changes the update request contract, not the persisted job schema. null is consumed by the existing payload merge owner; stored and reported timeout values remain numeric or absent.

I tested the candidate at 3e236db022c175453a0ed1f4c8fb17250e4696fb against the existing SQLite QA state previously used by Gateway 77124fdbd35b2e907c6f6c1729f89825dc99cea0. An existing paused automation loaded with its saved 90-second override. Clearing the field through the real Control UI, saving, and reloading left it empty; independent CLI readback confirmed only payload.timeoutSeconds was removed. The job ID, creation time, enabled state, schedule, prompt, and tool settings were preserved.

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.

@steipete
steipete force-pushed the codex/fix-automation-timeout-clear branch from 3e236db to 414b3a1 Compare September 15, 2026 17:04
steipete added a commit that referenced this pull request Sep 15, 2026
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.
@steipete
steipete force-pushed the codex/fix-automation-timeout-clear branch from 67e6b18 to fe192ad Compare September 15, 2026 18:14
steipete added a commit that referenced this pull request Sep 15, 2026
* 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.
@steipete
steipete merged commit eee60cd into main Sep 15, 2026
208 checks passed
@steipete
steipete deleted the codex/fix-automation-timeout-clear branch September 15, 2026 18:56
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
…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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation extensions: codex gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant