Repository navigation
Keep title-only occurrence edits at their local time across DST - #657
Conversation
Block automatic time-zone beacons before the emulated browser opens settings and inspect the automatic switch without requiring the manual selector. Preserve known fixture cleanup when discovery fails, with the exact owned title retained for recovery.
There was a problem hiding this comment.
🔵 Needs a closer look
Final-head browser/CLI replay and automatic-zone preflight safety remain unverified without authorized Haystack/Chromium access, leaving persisted calendar behavior, fixture cleanup, and preference restoration unconfirmed.
No open issues 🎉
What changed in this PR
Fixes the CLI write-path portion of #590 so title-only edits to zoneless repeating occurrences preserve local time across daylight saving changes. Calendar API reads remain unchanged.
Changes:
- Expands virtual occurrences in the account’s source time zone, refusing writes when that zone is unavailable.
- Uses the same expansion for future-boundary safety checks while preserving realized occurrences’ stored times.
- Adds unit and browser/CLI regression coverage and documents the behavior.
[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or rungh pr ready --undo.
Click "Ready for review" or rungh pr readyto reengage.
| File | Description |
|---|---|
tests/smoke/events_zoneless_test.go |
Adds browser/CLI DST regression coverage with fixture cleanup and preference restoration. |
internal/cmd/events.go |
Updates edit help and passes account-zone context to deletion safety checks. |
internal/cmd/events_occurrence.go |
Expands zoneless occurrences in the account zone and updates future-boundary checks. |
internal/cmd/events_occurrence_zone_test.go |
Tests DST, source-zone refusals, destination zones, and realized occurrences. |
internal/cmd/events_occurrence_test.go |
Adapts expansion tests to the explicit account-location parameter. |
docs/cli.md |
Documents source-zone requirements and the write-only scope of the fix. |
Review effort: Balanced
|
🤖 Runtime verification is complete on this head. The final acceptance test still fails on the unpatched CLI's one-hour shift; the patched CLI and three neighboring occurrence cases pass against updated development Haystack. The automatic-zone refusal check leaves the preference unchanged. Fixture removal, preference restoration and owned-service shutdown were verified; private receipts are retained, not uploaded. CI is green, there are no unresolved review threads, and a fresh independent source review found no material issues. Copilot's runtime-proof concern is answered by these checks. Cubic could not review because its monthly quota is exhausted; Greptile was requested but did not report. Neither absence is counted as an approval. No review findings were declined. Rob authorized merging once green. Landing this verified head by rebase; no human action needed. This PR references #590 without automatically closing it. |
Renaming an occurrence of a zoneless repeating event can move the meeting by an hour across DST: the CLI expands the series in UTC rather than the account's local zone.
Expand the day in the account's source zone before writing it, retaining empty stored zone names. Refuse the write if that zone is unavailable, even when a destination zone was supplied. Use the same expansion for the existing future-boundary safety check; realized days keep their own times.
Refs #590. This changes the CLI write path, not calendar API reads. On the updated development backend, day/week reads are already correct, but the unpatched CLI still moves the meeting.
Verification
No SDK/backend changes, new framework or CI gate. Private runtime receipts are not uploaded.