Skip to content

feat(routines): add timezone-aware runs and result navigation - #748

Merged
Harry19081 merged 1 commit into
fix/orgtrack-audit-batch0from
codex/routine-autopilot-parity
Aug 9, 2026
Merged

feat(routines): add timezone-aware runs and result navigation#748
Harry19081 merged 1 commit into
fix/orgtrack-audit-batch0from
codex/routine-autopilot-parity

Conversation

@Neonforge98

Copy link
Copy Markdown
Collaborator

Problem

Routine cron schedules were evaluated as UTC even when users expected local wall-clock time. Newly saved routines did not expose their next run until a scheduler tick, and run results were presented as opaque identifiers without a direct path to the resulting Session or Work Item. Failures were also hard to diagnose from the routine list.

Solution

Add an IANA-timezone field to cron triggers with UTC fallback for legacy data, validate it at the service boundary, and use one shared DST-aware schedule evaluator for definition and portable routine execution. Compute the next run immediately on save while preserving evaluation watermarks for non-trigger edits.

Project the latest run status, time, error, Session, and Work Item onto each routine; keep detailed history lazy and bounded; surface Run Now outcomes; and make rows easier to expand. Run results now open the matching Session or Work Item in My Station, including standalone Work Items. The wizard uses the configured timezone and can display valid local zones that are not in the curated city list.

Potential risks

  • Scheduling is still owned by the desktop process: it continues while the app is hidden or minimized, but stops after the app fully quits.
  • Legacy cron payloads without a timezone intentionally continue to run in UTC.
  • Local production compilation and app bundling completed, but final codesigning could not finish because the configured Developer ID certificate is not installed on this machine.

@Harry19081 Harry19081 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Harry19081
Harry19081 merged commit bc150bf into fix/orgtrack-audit-batch0 Aug 9, 2026
1 check passed
@Harry19081
Harry19081 deleted the codex/routine-autopilot-parity branch August 9, 2026 05:24
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.

2 participants