Repository navigation
fix(ui): derive cron timezone suggestions - #115973
Conversation
71877be to
cde746b
Compare
|
Codex review: needs maintainer review before merge. Reviewed July 29, 2026, 11:52 AM ET / 15:52 UTC. ClawSweeper reviewWhat this changesThe 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 readinessThis 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 Review scores
Verification
How this fits togetherThe 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]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +35, Tests +35. Total +70 across 6 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
cde746b to
db79df1
Compare
* 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
* 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
* commit 'a47d81e7b33bf89c316a6aba857fafb0d5924167': fix(ui): derive cron timezone suggestions (openclaw#115973)
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.ui/src/e2e/cron-filters.e2e.test.ts, 10 tests passed.AI-assisted implementation; reviewed, understood, and validated by the author.