Skip to content

fix(ui): derive cron timezone suggestions - #115973

Merged
vincentkoc merged 1 commit into
mainfrom
fix/cron-timezone-suggestions
Jul 29, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/cron-timezone-suggestions

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Related: #65936

What Problem This Solves

Fixes an issue where Control UI users creating cron jobs received a hand-maintained shortlist of timezone suggestions, causing valid regions to be added one city at a time even though cron accepts arbitrary IANA timezones.

Why This Change Was Made

The Control UI now derives suggestions from the browser's supported IANA catalog, prioritizes the browser timezone and UTC, and preserves timezones already used by loaded cron jobs. The input remains free-form because the Gateway and Croner remain authoritative for validation.

The help text also states that leaving the field blank uses the Gateway host timezone, which may differ from the browser running Control UI.

User Impact

Users can discover the timezone their browser supports without waiting for OpenClaw to add their city to a static list. Existing aliases and manually entered values remain usable.

Evidence

  • node scripts/run-vitest.mjs ui/src/pages/cron/timezone-suggestions.test.ts ui/src/pages/cron/view.test.ts: 44 tests passed.
  • Blacksmith Testbox changed-surface checks passed, including UI typecheck, lint, formatting, i18n verification, and dead-export scans.
  • Blacksmith Testbox mocked-Gateway Chromium E2E: ui/src/e2e/cron-filters.e2e.test.ts, 10 tests passed.
  • Testbox run: https://github.com/openclaw/openclaw/actions/runs/30465430254
  • Structured autoreview: no findings; patch judged correct at 0.95 confidence.
  • The native datalist popup is browser-owned and not stable screenshot evidence; the Chromium test asserts the browser timezone, UTC, a full catalog, and unrestricted free-form entry directly.

AI-assisted implementation; reviewed, understood, and validated by the author.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Jul 29, 2026
@vincentkoc vincentkoc self-assigned this Jul 29, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 29, 2026 15:34
@vincentkoc
vincentkoc force-pushed the fix/cron-timezone-suggestions branch from 71877be to cde746b Compare July 29, 2026 15:36
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 29, 2026
@clawsweeper

clawsweeper Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 29, 2026, 11:52 AM ET / 15:52 UTC.

ClawSweeper review

What this changes

The PR replaces the Control UI’s static cron timezone list with browser-supported IANA suggestions, prioritizes relevant existing values, and clarifies that an empty value uses the Gateway host timezone.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

This member-authored PR is still necessary: it generalizes the newly merged one-city cron suggestion improvement into a browser-derived catalog while preserving free-form Gateway/Croner validation. The earlier changelog-only finding is resolved at the current head, and I found no new actionable patch defect from the supplied diff, current-main context, tests, or related PR discussion.

Priority: P3
Reviewed head: db79df1105ff61f6918d0b121c03be40080205b5

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-covered Control UI improvement with direct rendered-form evidence and no remaining actionable review finding.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; independently, the PR body includes after-change mocked-Gateway Chromium evidence that directly exercises the rendered datalist and free-form input.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; independently, the PR body includes after-change mocked-Gateway Chromium evidence that directly exercises the rendered datalist and free-form input.
Evidence reviewed 5 items Current PR behavior: At head db79df1, the new resolver prioritizes the browser timezone, UTC, timezones already stored on cron jobs, and then the supported browser catalog; the cron page passes those derived suggestions into the rendered form.
Free-form compatibility remains: The Chromium E2E coverage explicitly fills Etc/GMT+3 after checking the datalist, confirming the UI does not constrain input to the suggestions.
Prior review request resolved: The previous ClawSweeper cycle requested removal of a release-owned CHANGELOG.md entry. The current six-file diff contains no CHANGELOG.md change, so that P3 finding is fixed.
Findings None None.
Security None None.

How this fits together

The Control UI loads cron jobs from the Gateway and builds form suggestions for cron schedules. This change derives the timezone datalist from browser capabilities and existing jobs, while the Gateway and Croner continue to validate the value submitted by the user.

flowchart LR
  A[Gateway cron jobs] --> B[Control UI cron page]
  C[Browser timezone catalog] --> D[Timezone suggestion resolver]
  B --> D
  D --> E[Cron form datalist]
  E --> F[Free-form timezone input]
  F --> G[Gateway and Croner validation]
Loading

Before merge

  • Complete next step (P2) - No repair lane is needed: the prior requested revision is present and the remaining action is ordinary maintainer review once the current CI run reaches a terminal state.
Agent review details

Security

None.

PR surface

Source +35, Tests +35. Total +70 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 4 53 18 +35
Tests 2 41 6 +35
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 94 24 +70

Review metrics

None.

Root-cause cluster

Relationship: canonical
Canonical: #115973
Summary: This PR is the active generalization of the cron-timezone suggestion problem; the earlier merged PR addressed one city within the same UI surface.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep the derived browser catalog, preserve the unrestricted input and existing-job values, and complete normal maintainer review against the current head.

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

Not applicable as a feature-level Control UI discoverability improvement. The supplied current-main and related-PR context establishes the prior static suggestion list and this PR’s direct rendered-form coverage checks the intended replacement behavior.

Is this the best way to solve the issue?

Yes. Deriving browser-supported IANA values while retaining free-form entry and preserving timezones already used by cron jobs is narrower and less maintenance-heavy than extending a hand-maintained city list.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5bfc65d7f46a.

Labels

Label justifications:

  • P3: This is a small Control UI discoverability improvement with no scheduler, configuration, provider, or stored-state behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; independently, the PR body includes after-change mocked-Gateway Chromium evidence that directly exercises the rendered datalist and free-form input.

Evidence

What I checked:

Likely related people:

  • finallylly: Authored the merged prior Control UI change that established the current cron timezone suggestion surface; this PR generalizes that same user-facing behavior. (role: feature introducer; confidence: medium; commits: 25f1e7048044; files: ui/src/pages/cron/form-suggestions.ts, ui/src/e2e/cron-filters.e2e.test.ts)

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 (1 earlier review cycle)
  • reviewed 2026-07-29T15:41:44.022Z sha cde746b :: needs changes before merge. :: [P3] Remove the release-owned changelog entry

@vincentkoc
vincentkoc force-pushed the fix/cron-timezone-suggestions branch from cde746b to db79df1 Compare July 29, 2026 15:47
@vincentkoc
vincentkoc merged commit a47d81e into main Jul 29, 2026
167 of 173 checks passed
@vincentkoc
vincentkoc deleted the fix/cron-timezone-suggestions branch July 29, 2026 17:12
vincentkoc added a commit to ZengWen-DT/openclaw that referenced this pull request Jul 29, 2026
* origin/main: (446 commits)
  fix(daemon): refuse duplicate launchd gateway managers (openclaw#97285)
  fix(memory-lancedb): share the recall cooldown with the auto-recall prompt-build hook (openclaw#112927)
  fix(test): isolate plugin install fixtures (openclaw#116008)
  fix(feishu): guard Object.assign against prototype pollution in webhook payload merge (openclaw#111729)
  fix(sms): isolate validated webhook quotas per sender (openclaw#104862)
  fix(sessions): recover deleted chats without endless retries (openclaw#115974)
  fix(restart): log errors from restart hook callbacks instead of swallowing (openclaw#108847)
  feat(ui): enable tool-loop detection from Labs (openclaw#115983)
  fix(telegram): catch unhandled rejections in webhook and ingress worker shutdown (openclaw#100998)
  fix(memory): keep rollbacks compatible after recall metadata upgrade (openclaw#116003)
  fix(ui): derive cron timezone suggestions (openclaw#115973)
  fix(scripts): bound dependency pin git lookups (openclaw#110570)
  fix(skills): preserve configless workshop apply upgrades (openclaw#115982)
  fix(gateway): cancel unread cron webhook bodies before SSRF release (openclaw#111236)
  fix(voice-call): pin Twilio webhook verification to the configured public path (openclaw#112800)
  fix(memory): make legacy session backfill rollback re-applicable (openclaw#116004)
  fix(security): fence external hook job name in isolated-agent prompts (openclaw#112501)
  fix(channels): mark durable webhook acceptance on Zalo, Google Chat, SMS, Feishu, Nextcloud Talk, and Synology Chat (openclaw#115586)
  fix(test): restore stdin TTY descriptors (openclaw#115985)
  fix(plugins): remove incorrect modifying hook timeout fallback in getClaimingHookTimeoutMs (openclaw#107996)
  ...

# Conflicts:
#	extensions/openai/realtime-quicksilver-wire.ts
vincentkoc added a commit to nvtoroy/openclaw that referenced this pull request Jul 29, 2026
* origin/main: (683 commits)
  fix(discord): bound webhook send body reads (openclaw#109076)
  fix(ui): preserve initials for missing user avatars (openclaw#115976)
  feat(ui): add provider icons to coding catalogs (openclaw#115956)
  fix(daemon): refuse duplicate launchd gateway managers (openclaw#97285)
  fix(memory-lancedb): share the recall cooldown with the auto-recall prompt-build hook (openclaw#112927)
  fix(test): isolate plugin install fixtures (openclaw#116008)
  fix(feishu): guard Object.assign against prototype pollution in webhook payload merge (openclaw#111729)
  fix(sms): isolate validated webhook quotas per sender (openclaw#104862)
  fix(sessions): recover deleted chats without endless retries (openclaw#115974)
  fix(restart): log errors from restart hook callbacks instead of swallowing (openclaw#108847)
  feat(ui): enable tool-loop detection from Labs (openclaw#115983)
  fix(telegram): catch unhandled rejections in webhook and ingress worker shutdown (openclaw#100998)
  fix(memory): keep rollbacks compatible after recall metadata upgrade (openclaw#116003)
  fix(ui): derive cron timezone suggestions (openclaw#115973)
  fix(scripts): bound dependency pin git lookups (openclaw#110570)
  fix(skills): preserve configless workshop apply upgrades (openclaw#115982)
  fix(gateway): cancel unread cron webhook bodies before SSRF release (openclaw#111236)
  fix(voice-call): pin Twilio webhook verification to the configured public path (openclaw#112800)
  fix(memory): make legacy session backfill rollback re-applicable (openclaw#116004)
  fix(security): fence external hook job name in isolated-agent prompts (openclaw#112501)
  ...

# Conflicts:
#	CHANGELOG.md
#	src/agents/tool-search-catalog.ts
#	src/agents/tool-search.test-support.ts
#	src/agents/tool-search.ts
vincentkoc added a commit to ryanrhughes/openclaw that referenced this pull request Jul 29, 2026
* commit 'a47d81e7b33bf89c316a6aba857fafb0d5924167':
  fix(ui): derive cron timezone suggestions (openclaw#115973)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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