Skip to content

Keep title-only occurrence edits at their local time across DST - #657

Merged
robzolkos merged 3 commits into
mainfrom
fix/590-occurrence-title-time
Nov 16, 2026
Merged

robzolkos merged 3 commits into
mainfrom
fix/590-occurrence-title-time

Conversation

@robzolkos

@robzolkos robzolkos commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Durable browser/CLI regression checks fresh stored values and independent calendar display, with checked fixture cleanup and preference restoration.
  • Unit coverage includes fall/spring DST, UTC date boundaries, source/destination zones, missing-zone refusal, realized days and future-boundary guards.
  • Independent agents reproduced baseline red / candidate green against updated Haystack. Local build, formatting, lint, uncached full unit tests and offline harness regressions passed.
  • Final-head runtime replay and automatic-zone preflight safety check: regression plus three neighboring occurrence cases passed, and automatic mode refused without changing the identity.
  • CI green, zero unresolved review threads, final independent source review found no material issues. Copilot runtime-proof concern answered. Cubic quota-blocked; Greptile requested without a report, neither counted as an approval.

No SDK/backend changes, new framework or CI gate. Private runtime receipts are not uploaded.

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.
@robzolkos
robzolkos requested a review from a team as a code owner November 16, 2026 20:44
Copilot AI balanced review requested due to automatic review settings November 16, 2026 20:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 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 run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to 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

@robzolkos

robzolkos commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 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.

@robzolkos
robzolkos merged commit 8145386 into main Nov 16, 2026
26 checks passed
@robzolkos
robzolkos deleted the fix/590-occurrence-title-time branch November 16, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants