Skip to content

Fix cron timezone resolution and delete drift#149

Merged
jamiepine merged 1 commit into
mainfrom
feat/cron-timezone-reliability
Feb 22, 2026
Merged

Fix cron timezone resolution and delete drift#149
jamiepine merged 1 commit into
mainfrom
feat/cron-timezone-reliability

Conversation

@jamiepine

Copy link
Copy Markdown
Member

Summary

  • add cron_timezone config support at defaults and per-agent levels, plus SPACEBOT_CRON_TIMEZONE env fallback with validation and system-time fallback
  • switch active-hour checks to use the resolved timezone, and expose timezone context in cron list API and tool output
  • fix cron tool delete behavior to unregister in-memory scheduler timers before deleting from storage
  • update cron/config docs to explain timezone precedence and behavior

Testing

  • cargo check
  • cargo test test_cron_timezone_ --lib
  • cargo test hour_in_active_window --lib

@jamiepine
jamiepine marked this pull request as ready for review February 22, 2026 22:52
@jamiepine
jamiepine merged commit 4b0367e into main Feb 22, 2026
0 of 3 checks passed
rktmeister pushed a commit to rktmeister/spacebot that referenced this pull request Mar 11, 2026
…ezone-reliability

Fix cron timezone resolution and delete drift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant