Repository navigation
fix(qqbot): honor Gateway timezone for recurring reminders - #116294
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 4:21 AM ET / 08:21 UTC. ClawSweeper reviewWhat this changesThe PR removes QQBot’s implicit Merge readinessKeep this maintainer-authored PR open for explicit merge review. The patch is a focused, internally consistent correction: new QQBot recurring reminders without an explicit timezone defer to the canonical Gateway cron default, while explicitly zoned reminders retain their zone; the remaining judgment is whether that bounded future-job behavior change is the intended QQBot upgrade contract. Priority: P2 Review scores
Verification
How this fits togetherQQBot’s reminder tool converts a model-requested recurring reminder into a Gateway cron job. The cron job’s schedule is then persisted and evaluated by the shared scheduler, which uses an explicit timezone when present and the host timezone when it is omitted. flowchart LR
A[QQBot user reminder request] --> B[QQBot reminder tool]
B --> C{Timezone supplied?}
C -->|Explicit IANA zone| D[Trim and store timezone]
C -->|Omitted or blank| E[Leave timezone unset]
D --> F[Gateway cron job]
E --> F
F --> G[Shared scheduler]
G --> H[Reminder delivery]
Decision needed
Why: The code has a narrow implementation and regression coverage, but selecting the default schedule timezone is an operator-visible compatibility decision for future reminders and this PR is protected for maintainer handling. Before merge
Agent review detailsSecurityNone. PR surfaceSource +3, Tests +48. Total +51 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the shared Gateway cron timezone rule for newly created QQBot reminders, preserve already persisted explicit Do we have a high-confidence way to reproduce the issue? Source-reproducible: the supplied diff identifies the old unconditional QQBot timezone fallback and adds direct tests for omitted and explicit timezone inputs. A live current-main reproduction was not independently run because the read-only shell could not start. Is this the best way to solve the issue? Yes, conditionally: delegating an omitted timezone to the canonical Gateway cron scheduler avoids a competing channel-specific default, provided maintainers confirm the intended future-job compatibility behavior. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against cc570a74532e. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…n-dedupe * origin/main: (25 commits) fix(qqbot): use Gateway timezone for reminders (#116294) test(openai): cover out-of-order named mark acks docs(openai): clarify cumulative playback marks test(openai): cover sustained unnamed mark acknowledgements fix(openai): preserve playback acknowledgement order test(openai): verify bounded playback acknowledgements fix(openai): bound realtime playback marks test(agents): mock incremental registry persistence (#116307) fix(memory-core): MEMORY.md compaction deletes user notes written under a promotion-style heading (#116180) feat(reply): annotate recent history images (#100866) chore(ios): refresh native i18n inventory fix(ios): isolate capability router handlers docs(ios): cut 2026.7.22 release notes docs(hooks): document validation responses test(qa): assert hook account rejection reasons fix(gateway): validate hook delivery accounts perf(gateway): bound prepared runtime startup work (#116261) fix(agents): prevent registry stalls during large fan-outs (#116286) fix(sqlite): preserve replaced snapshot targets on Windows (#116284) fix(ci): load frozen shard runner without repository fetch (#116273) ...
…n-dedupe * origin/main: (25 commits) fix(qqbot): use Gateway timezone for reminders (openclaw#116294) test(openai): cover out-of-order named mark acks docs(openai): clarify cumulative playback marks test(openai): cover sustained unnamed mark acknowledgements fix(openai): preserve playback acknowledgement order test(openai): verify bounded playback acknowledgements fix(openai): bound realtime playback marks test(agents): mock incremental registry persistence (openclaw#116307) fix(memory-core): MEMORY.md compaction deletes user notes written under a promotion-style heading (openclaw#116180) feat(reply): annotate recent history images (openclaw#100866) chore(ios): refresh native i18n inventory fix(ios): isolate capability router handlers docs(ios): cut 2026.7.22 release notes docs(hooks): document validation responses test(qa): assert hook account rejection reasons fix(gateway): validate hook delivery accounts perf(gateway): bound prepared runtime startup work (openclaw#116261) fix(agents): prevent registry stalls during large fan-outs (openclaw#116286) fix(sqlite): preserve replaced snapshot targets on Windows (openclaw#116284) fix(ci): load frozen shard runner without repository fetch (openclaw#116273) ...
What Problem This Solves
Fixes an issue where QQBot recurring reminders without an explicit timezone always ran in
Asia/Shanghai, regardless of the Gateway host timezone. This made the plugin disagree with core cron behavior and surprised operators outside that zone.Why This Change Was Made
QQBot now omits
schedule.tzwhen the model does not supply a timezone, allowing the canonical Gateway cron scheduler to use its host timezone. Explicit IANA timezone values are trimmed and preserved.The fixed fallback originated in the QQBot reminder implementation and was later named while #98032 tightened guardrails; that PR explicitly preserved the existing default rather than establishing a cross-product timezone contract.
User Impact
Recurring QQBot reminders now follow the same rule as every other Gateway cron job: an explicit timezone wins, otherwise the Gateway host timezone applies. Existing reminders with an explicit timezone are unchanged.
Upgrade semantics are bounded: the previous QQBot implementation always persisted
tz: "Asia/Shanghai"when creating a reminder without an explicit timezone. Those existing jobs retain that stored timezone and are not rewritten by this change. Only newly created QQBot reminders with an omitted timezone adopt Gateway-local behavior; manually created existing cron jobs that already omittzalready use Gateway-local behavior.Evidence
tzand reportsgateway local;America/New_Yorkis trimmed and preserved.src/cron/schedule.ts: omittedtzresolves through the Gateway process timezone.Alternatives Considered
Asia/Shanghai: rejected because it is a plugin-specific global default with no operator signal.timezonefield and canonical Gateway default already cover both needs.AI-assisted implementation; the runtime path, history, core scheduler, and dependency contract were manually inspected.