Skip to content

feat: add Asia/Shanghai to cron timezone suggestions - #65936

Merged
steipete merged 5 commits into
openclaw:mainfrom
finallylly:add-timezone-asia-shanghai
Jul 29, 2026
Merged

steipete merged 5 commits into
openclaw:mainfrom
finallylly:add-timezone-asia-shanghai

Conversation

@finallylly

@finallylly finallylly commented Apr 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds `Asia/Shanghai` to the `CRON_TIMEZONE_SUGGESTIONS` list in ui/src/ui/app-render.ts
  • Useful for users in the Asia region who want to use their local timezone in cron schedules

Test plan

  • Lint passes
  • Type check passes

What Problem This Solves

Users creating a recurring Cron task cannot discover the valid Asia/Shanghai IANA timezone from the timezone suggestions in the actual Control UI. Preserve @finallylly original one-line intent after the Cron UI moved to its current owner.

Why This Change Was Made

Add Asia/Shanghai only to the current Cron UI suggestion list and cover its real rendered datalist with a Chromium end-to-end regression. No scheduler, timezone-execution, DST, provider, configuration, or default behavior changes.

User Impact

Users can select Asia/Shanghai directly while creating a Cron task.

Evidence

  • Before: real Chromium, actual Vite Control UI, mocked Gateway, Cron > New task > cron schedule; the timezone regression failed because the rendered suggestion list did not contain Asia/Shanghai.
  • After: the full real-Chromium Cron end-to-end file passed all 10 tests, including input/list association and actual rendered datalist options.
  • Independent live browser screenshot selected Asia/Shanghai; SHA-256: 22a909cfc31ff66c7537bbe3e0a195aa413dacf9163d6563f915779bc51133e0.
  • Complete Control UI suite: 485 test files and 7,023 tests passed.
  • Production Control UI build, compressed-asset and performance checks, changed-file format/lint/dead-export/typecheck/i18n checks, and the 519/519 environment-count guard passed on Blacksmith Testbox.
  • Fresh extra-high-effort independent structured review: no actionable findings.
  • Final original-contributor PR head c878e20 contains exactly the same two reviewed and validated file blobs; its exact-head real Chromium regression, independently rendered screenshot, all 485 Control UI test files and 7,023 tests, production build, complete changed gate, and 519/519 environment guard passed on Blacksmith Testbox.
  • Original contributor, original pull request, original commit ancestry, and GitHub-verified signatures preserved.

Adds Asia/Shanghai to the CRON_TIMEZONE_SUGGESTIONS list for users
in the Asia region who want to use their local timezone in cron schedules.
@greptile-apps

greptile-apps Bot commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds Asia/Shanghai to the CRON_TIMEZONE_SUGGESTIONS dropdown list in the Control UI. The change is a one-line addition of a valid IANA timezone identifier to an existing suggestions array.

Confidence Score: 5/5

Safe to merge — minimal, additive change with no risk.

Asia/Shanghai is a valid IANA timezone identifier and the change is purely additive to a suggestion list with no logic impact.

No files require special attention.

Reviews (1): Last reviewed commit: "feat: add Asia/Shanghai to cron timezone..." | Re-trigger Greptile

@clawsweeper

clawsweeper Bot commented Apr 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 29, 2026, 10:03 AM ET / 14:03 UTC.

ClawSweeper review

What this changes

This PR adds Asia/Shanghai to the Cron form’s common IANA timezone suggestions and verifies in Chromium that the rendered datalist exposes that option.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep this PR open for normal maintainer merge review. The branch is a focused Control UI improvement, its exact head includes rendered-browser coverage, and the July 29 review cycle found no actionable patch defect; it is neither abandoned nor superseded by an implemented main-branch change in the supplied evidence.

Likely related people: steipete is the strongest routing candidate (high confidence) through the Cron UI owner refresh and the final focused implementation commits.

Priority: P3
Reviewed head: c878e20acff0d26054d8670c5222c2d473130435

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused, current-owner UI patch with direct rendered-browser proof and no actionable review finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The PR body documents an exact-head real Chromium run through the Cron form, a rendered-datalist assertion, and an independently captured browser screenshot; redact private details if future proof is reposted.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR body documents an exact-head real Chromium run through the Cron form, a rendered-datalist assertion, and an independently captured browser screenshot; redact private details if future proof is reposted.
Evidence reviewed 5 items Focused implementation and rendered regression: The PR adds one timezone entry in the current Cron suggestion owner and an end-to-end test that opens the Cron form, checks the input-to-datalist association, and asserts that the rendered options contain Asia/Shanghai.
Exact-head behavior proof: The PR body records an exact-head Chromium run against the actual Vite Control UI and mocked Gateway, including the rendered datalist assertion and an independently captured browser screenshot; the supplied context marks that proof sufficient.
Review continuity: The latest completed ClawSweeper review at the same head reported no findings and identified only routine required-check completion before merge; this review found no evidence that reintroduces a prior blocker.
Findings None None.
Security None None.

How this fits together

The Control UI Cron form helps operators create scheduled tasks by presenting common timezone identifiers alongside free-form input. The selected timezone is passed into the task’s schedule settings; this PR changes only the discoverability list, not timezone validation or scheduler execution.

flowchart LR
  A[Operator opens Cron form] --> B[Selects Cron schedule]
  B --> C[Timezone input]
  C --> D[Common timezone datalist]
  D --> E[Asia/Shanghai selectable]
  E --> F[Scheduled task settings]
Loading

Before merge

  • Resolve merge risk (P1) - The PR is mergeable but behind main; required checks for the exact merge result should finish or be refreshed before landing.
Agent review details

Security

None.

PR surface

Source +1, Tests +34. Total +35 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 0 +1
Tests 1 34 0 +34
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 35 0 +35

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the focused suggestion-list addition once required checks validate the exact merge result, retaining the rendered Cron-form regression so future UI moves cannot silently remove the option.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the focused suggestion-list addition once required checks validate the exact merge result, retaining the rendered Cron-form regression so future UI moves cannot silently remove the option.

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

Not applicable as a defect reproduction: this is a targeted UI discoverability improvement. The after-fix path is directly exercised in Chromium by opening the Cron form and inspecting the rendered datalist.

Is this the best way to solve the issue?

Yes. Adding the valid IANA identifier at the form’s existing suggestion owner, with a rendered-datalist regression test, is narrower and less error-prone than changing scheduler validation, configuration, or timezone execution behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4278fdfd5ede.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P3: The patch is a small Cron-form discoverability improvement with no scheduler, configuration, persistence, or delivery behavior change.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR body documents an exact-head real Chromium run through the Cron form, a rendered-datalist assertion, and an independently captured browser screenshot; redact private details if future proof is reposted.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body documents an exact-head real Chromium run through the Cron form, a rendered-datalist assertion, and an independently captured browser screenshot; redact private details if future proof is reposted.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body documents an exact-head real Chromium run through the Cron form, a rendered-datalist assertion, and an independently captured browser screenshot; redact private details if future proof is reposted.

Evidence

What I checked:

  • Focused implementation and rendered regression: The PR adds one timezone entry in the current Cron suggestion owner and an end-to-end test that opens the Cron form, checks the input-to-datalist association, and asserts that the rendered options contain Asia/Shanghai. (ui/src/pages/cron/form-suggestions.ts:22, c878e20acff0)
  • Exact-head behavior proof: The PR body records an exact-head Chromium run against the actual Vite Control UI and mocked Gateway, including the rendered datalist assertion and an independently captured browser screenshot; the supplied context marks that proof sufficient. (ui/src/e2e/cron-filters.e2e.test.ts:142, c878e20acff0)
  • Review continuity: The latest completed ClawSweeper review at the same head reported no findings and identified only routine required-check completion before merge; this review found no evidence that reintroduces a prior blocker. (c878e20acff0)
  • Feature-history routing: The final branch commit explicitly moved the original one-line contribution to the current Cron UI owner and added the rendered regression; the earlier refresh commit indicates continued ownership of the same UI boundary. (ui/src/pages/cron/form-suggestions.ts:1, c878e20acff0)
  • Current release boundary: The supplied latest release is v2026.7.1 at 2d2ddc4, while this open PR remains unmerged; there is no basis to call the requested UI suggestion shipped or implemented on main. (c878e20acff0)

Likely related people:

  • steipete: Authored the branch’s focused owner refresh and final implementation that relocates the suggestion to the current Cron UI owner and adds rendered Chromium coverage. (role: current Cron UI boundary contributor; confidence: high; commits: 598400680089, c878e20acff0; 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-29T13:50:07.046Z sha c878e20 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels May 20, 2026
@clawsweeper

clawsweeper Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat.

Where did the egg go?
  • The egg game starts only after the PR passes the real-behavior proof check.
  • Before that, no creature or rarity is rolled. The treat waits for real proof.
  • This is still just collectible flavor: proof affects review readiness, not creature quality.

@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. label May 20, 2026
@RomneyDa

Copy link
Copy Markdown
Member

Heads up: this PR needs to be updated against current main before the new required Dependency Guard check can pass.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jun 14, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jun 15, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Jun 16, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added stale Marked as stale due to inactivity triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed stale Marked as stale due to inactivity labels Jul 18, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jul 29, 2026
steipete added 2 commits July 29, 2026 09:42
Preserve @finallylly original PR openclaw#65936; move its one-line IANA timezone suggestion to the current cron UI owner and cover the actual rendered Chromium datalist.
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jul 29, 2026
@clawsweeper clawsweeper Bot added 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. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 29, 2026
@steipete
steipete merged commit 25f1e70 into openclaw:main Jul 29, 2026
269 of 287 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* feat: add Asia/Shanghai to cron timezone suggestions

Adds Asia/Shanghai to the CRON_TIMEZONE_SUGGESTIONS list for users
in the Asia region who want to use their local timezone in cron schedules.

* fix(ui): preserve original cron contribution during main refresh

* fix(ui): suggest Asia/Shanghai for cron schedules

Preserve @finallylly original PR openclaw#65936; move its one-line IANA timezone suggestion to the current cron UI owner and cover the actual rendered Chromium datalist.

---------

Co-authored-by: Peter Steinberger <[email protected]>
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants