Skip to content

improve: put waiting for a free agent under automation timing - #201282

Merged
daniel-lxs merged 9 commits into
mainfrom
openclaw/marine-lobster-4
Nov 29, 2026
Merged

daniel-lxs merged 9 commits into
mainfrom
openclaw/marine-lobster-4

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Co-authored by Vyctor Brzezowski.

Work sessions

Linked for team reference; these sessions aren’t public.

Related: #201219

What Problem This Solves

When I set up an automation to wait for a free agent, I have to look under Conditions rather than Timing. The scratch option beside it answers a different question: does the checklist contain anything to do?

User Impact

I can find Wait until the agent is free under Advanced → Timing. Skip when scratch is empty stays under Conditions for agent tasks. For chat delivery, Direct messages → Block stays under Results. No saved setting changes and no migration is needed.

Why This Change Was Made

Waiting affects when the run starts. Empty scratch is a test of checklist contents, which is why I kept it with the other conditions from #201219. I moved the existing wait control without changing its binding or exposing cron-only timing options on other schedules.

Evidence

I compared the production editor on main (935d6230719e) and this head (b2a92ee521bc) against two isolated, real Gateways. I used the same paused 09:30 UTC agent task and light-theme Chromium viewport for both captures.

Clean comparison

Main: both switches are in Conditions.

Main: wait and scratch in Conditions, direct messages blocked under Results

This head: only the wait switch moved to Timing.

Head: wait in Timing, scratch in Conditions, direct messages blocked under Results

Annotated comparison

Main: wait row highlighted under Conditions

Head: the same wait row highlighted under Timing

On both revisions I saved the three settings, reloaded, and reopened the editor. A separate read-only Gateway connection confirmed both switches were on and direct messages were blocked. Cron showed its time zone and exact-time controls; intervals hid them. Waiting remained available on both. Scratch was hidden for system events, and direct-message policy was hidden for webhook and no delivery. I did not run the scheduler or send messages.

The rendered placement assertion failed on the previous PR head and passed on this head. All 47 focused checks passed, as did the UI typecheck, targeted lint and formatting. Local ClawSweeper reviewed the entire committed PR range at this head and found no code or security issues.

CI: Two checks in this head’s CI run failed outside the one-file editor diff: Doctor’s 21 expired compatibility deadlines and Workboard’s extra Solid untrack call. The separate repairs are #207854 and #207858.

Worked on by

roboclaw-bot and others added 2 commits November 18, 2026 14:34
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: c0050abb-db0a-89a5-b384-3b8d7d96145d
@clawsweeper

clawsweeper Bot commented Nov 18, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes scripts Repository scripts commands Command implementations agents Agent runtime and tooling plugin: knowledge size: XL labels Nov 18, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR moves “Wait until the agent is free” from Conditions to Timing in the automation editor.

Example: Edit a paused agent task scheduled for 09:30 UTC.

  • Before: The wait switch and empty-scratch switch both appear under Advanced → Conditions.
  • After: The wait switch appears under Advanced → Timing, while the empty-scratch switch stays under Conditions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The minimal patch preserves existing contracts, but visual evidence could not be inspected and exact-head CI remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) The proof exemption applies; the body reports production-editor saves and reloads against isolated Gateways at b2a92ee, but unavailable screenshots prevent independent visual confirmation and the report predates the merge head.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: People looking for when an automation starts must search Conditions to find the wait-for-free-agent switch.
Reason: Maintainer authorship supplies direction for this modest discoverability improvement, which preserves existing settings and execution behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a focused, approved presentation change that current main does not provide, with no introduced correctness or security defects identified.

Reviewed head: 078c1da9e27f767560cc761f35e9769b095bcf40

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI automation editor displays Gateway-owned job settings and submits edits through the existing cron form and save operations.

flowchart LR
  A[Automation editor] --> B[Advanced settings]
  B --> C[Timing wait switch]
  C --> D[Existing form state]
  D --> E[Gateway cron operations]
  E --> F[Scheduler]
Loading

Technical review

Best possible solution:

Retain the focused control relocation and the existing form, persistence and scheduler owners.

Do we have a high-confidence way to reproduce the issue?

Current-main source establishes the reported placement under Conditions; this is a discoverability preference rather than a demonstrated scheduler defect.

Is this the best way to solve the issue?

Relocating the existing row is the smallest complete change, preserving its callback, saved value and availability while leaving cron-specific options conditional.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Advanced settings grouping changes intended behavior with a stated reason (70e2850: Group related settings into separate sections, with admission checks under Conditions and cron-specific controls under Timing.)
  • Automation execution-policy controls keeps the original intent (ec5d369: Expose migrated heartbeat execution policies on ordinary editable automations while preserving their behavior.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

  • Pinned introduction preserves existing contracts: The introduced diff moves the existing idleOnly ToggleRow, makes Timing available across schedule types, and keeps timezone, exact-time and stagger controls inside the cron-only condition; scratch visibility and delivery controls remain unchanged. (ui/src/pages/cron/view-delivery.tsx:305, 078c1da9e27f)
  • Current main retains the previous placement: Fetched main still renders idleOnly under Conditions and renders Timing only for cron schedules. (ui/src/pages/cron/view-delivery.tsx:326, ba0a7a5fac3e)
  • Existing form and persistence owners remain: ToggleRow still reads the selected form field and invokes onFormChange; loading and saving retain the existing idleOnly representation, with existing enabled/disabled save-and-reopen coverage. (ui/src/lib/cron/editor-save.node.test.ts:83, 078c1da9e27f)
  • Earlier grouping has a documented reason: The merged predecessor improve: make automation Advanced settings grouped and easy to read #201219 grouped admission checks under Conditions; this PR explains the narrower change by distinguishing waiting for capacity from checking scratch contents. (ui/src/pages/cron/view-delivery.tsx:331, 70e28507bc8b)
  • Prior review concerns reconciled: The pinned introduction contains no Doctor repair or migration changes, and the current body contains no do-not-land hold; the earlier review's historical hold is not a current instruction. (078c1da9e27f)
  • Visual evidence retrieval limit: All four prepared screenshot entries report “download failed: curl: (22) The requested URL returned error: 404”; opening the same attachment URLs through the browser fallback returned “Cache miss”. No screenshots could be inspected. (078c1da9e27f)

Likely related people:

  • Vyctor H. Brzezowski: Raw commit dce9dd1 adds ui/src/pages/cron/view-delivery.tsx:290 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dce9dd13b53e; files: ui/src/pages/cron/view-delivery.tsx)
  • RoboClaw: Raw commit 70e2850 adds ui/src/pages/cron/view-delivery.tsx:329 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 70e28507bc8b; files: ui/src/pages/cron/view-delivery.tsx)

PR surface

Source -1. Total -1 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 11 12 -1
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 11 12 -1

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on maintainer: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-11-18T15:16:49.802Z sha 2d66f9f :: blocked before merge. :: [P2] Exclude unsupported delivery rows from heartbeat-option repair
  • reviewed 2026-11-27T07:07:54.428Z sha 641fe0f :: blocked before merge. :: [P3] Correct the obsolete Doctor migration claims
  • reviewed 2026-11-28T20:20:58.394Z sha 8fd00b4 :: blocked before merge. :: none

Reviewed November 28, 2026, 10:52 PM ET / November 29, 2026, 03:52 UTC (Revision 4).

Merge main while keeping unsupported delivery rows untouched. Preserve saved routes and valid execution bindings across neutral repairs, and give manual runs actionable guidance for retired options.
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed the status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. label Nov 27, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS and removed docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes scripts Repository scripts commands Command implementations agents Agent runtime and tooling plugin: knowledge size: XL labels Nov 28, 2026
@daniel-lxs daniel-lxs changed the title improve: simplify proactive checks and automation delivery controls refactor(ui): group proactive automation checks under Timing Nov 28, 2026
@daniel-lxs
daniel-lxs marked this pull request as ready for review November 28, 2026 20:16
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Nov 28, 2026
@roboclaw-bot roboclaw-bot changed the title refactor(ui): group proactive automation checks under Timing improve: put waiting for a free agent under automation timing Nov 29, 2026
Keep the set-hours window below the schedule and move the wait-for-free switch to Advanced Timing. Keep the empty-scratch check in Conditions.
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. labels Nov 29, 2026
@daniel-lxs
daniel-lxs merged commit c2a7e05 into main Nov 29, 2026
84 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/marine-lobster-4 branch November 29, 2026 04:08
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…enclaw#201282)

Move “Wait until the agent is free” into Advanced → Timing for both hourly and interval automations. Keep the empty-scratch check in Conditions and the execution window below the schedule.

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: c0050abb-db0a-89a5-b384-3b8d7d96145d
vincentkoc added a commit that referenced this pull request Nov 29, 2026
* commit '99b4afc696081eda8aefd8e91250c112f53a8a73': (564 commits)
  test(ios): verify send-at-tap feedback and work grouping (#207913)
  test(agents): reject unsuccessful live replay completions (#207724)
  fix(cron): keep a started cron turn running when its job is edited (#207947)
  improve(ui): put waiting for a free agent under automation timing (#201282)
  chore(ui): refresh control ui locales (#207514)
  fix: distinguish unresolved delivery failures from delivery history (#207897)
  test(doctor): require security check in proxy ordering assertion (#207912)
  fix: keep update rollback tests in sync with shipped workers (#207822)
  test(agents): fix provider header filtering coverage (#207732)
  refactor: remove the bundled GBrain adapter (#207924)
  improve(ui): show optional run limits beside the automation schedule (#201283)
  test(onboarding): inspect recorded output for credential leaks (#207872)
  perf(exec): reduce host memory sampler allocations (#207927)
  test(mcp-relay): isolate the Connected apps fallback locale (#207923)
  fix(acp): deliver bound channel replies to the pending question (#207035)
  fix(cron): keep required reports from going silent when nothing changes (#207044)
  test(sessions): assert participant queue rollback state (#207891)
  perf(gateway): skip session display preparation for transcript recall (#207916)
  test(agents): verify complete bracketed paste payload (#207733)
  test: stop timing out the cron recovery settlement test on slow runners (#207920)
  ...
vincentkoc added a commit that referenced this pull request Nov 29, 2026
* commit '1b246c09b0c1d41ed0f090f07fc50381decba90d': (574 commits)
  fix: stop the manual handoff UI test from hanging after completion (#207945)
  fix: surface favorites and recommended models in picker search (#201450)
  fix: show the saved quota reset when chat skips its only model (#207210)
  fix: avoid reloading unchanged plugins after Gateway boot (#207949)
  fix: keep Task progress double-clicks from changing the window (#207937)
  fix(doctor): continue repairs past retained conflicting exec approvals (#207951)
  test(reply): make account isolation assertion decisive (#207793)
  fix: keep task progress compact when reopening Details (#207943)
  fix(ui): restore the saved reading position after an empty search (#207673)
  fix: remove four Memory Wiki settings that had no effect (#207882)
  test(ios): verify send-at-tap feedback and work grouping (#207913)
  test(agents): reject unsuccessful live replay completions (#207724)
  fix(cron): keep a started cron turn running when its job is edited (#207947)
  improve(ui): put waiting for a free agent under automation timing (#201282)
  chore(ui): refresh control ui locales (#207514)
  fix: distinguish unresolved delivery failures from delivery history (#207897)
  test(doctor): require security check in proxy ordering assertion (#207912)
  fix: keep update rollback tests in sync with shipped workers (#207822)
  test(agents): fix provider header filtering coverage (#207732)
  refactor: remove the bundled GBrain adapter (#207924)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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.

2 participants