Skip to content

feat(calendar): add --send-updates flag to update and delete commands#163

Merged
steipete merged 4 commits intoopenclaw:mainfrom
tonimelisma:feat/calendar-send-updates
Feb 14, 2026
Merged

feat(calendar): add --send-updates flag to update and delete commands#163
steipete merged 4 commits intoopenclaw:mainfrom
tonimelisma:feat/calendar-send-updates

Conversation

@tonimelisma
Copy link
Copy Markdown
Contributor

Summary

  • Add --send-updates flag to CalendarUpdateCmd and CalendarDeleteCmd to control notification behavior when modifying or canceling events with attendees
  • This follows the existing pattern from the create command which already has this flag

Problem

When updating or deleting calendar events with attendees, the attendees are not notified because the --send-updates flag was missing. This causes:

  • Stale events remaining in attendees' calendars
  • Duplicate/overlapping events when updates are made
  • Data synchronization issues for systems that manage calendars at arm's length (e.g., OpenClaw creating events with attendees)

Test plan

  • Run existing calendar tests: go test ./internal/cmd/... -run Calendar
  • Add validation tests for invalid --send-updates values on update/delete
  • Add integration tests verifying SendUpdates is passed to the API
  • Manual verification:
    • Create event with attendee: gog calendar create primary --summary "Test" --from ... --to ... --attendees "test@example.com" --send-updates all
    • Update event: gog calendar update primary <eventId> --summary "Updated" --send-updates all (attendee should be notified)
    • Delete event: gog calendar delete primary <eventId> --send-updates all (attendee should be notified of cancellation)

🤖 Generated with Claude Code

tonimelisma and others added 2 commits February 1, 2026 22:43
Add --send-updates flag to CalendarUpdateCmd and CalendarDeleteCmd to
control notification behavior when modifying or canceling events with
attendees.

Without this flag, attendees are not notified of updates or cancellations,
causing:
- Stale events remaining in attendees' calendars
- Duplicate/overlapping events when updates are made
- Data synchronization issues for systems managing calendars at arm's length

Changes:
- Add SendUpdates field to CalendarUpdateCmd and CalendarDeleteCmd
- Validate SendUpdates value (all, externalOnly, none)
- Pass SendUpdates to Patch and Delete API calls
- Update truncateParentRecurrence helper to accept sendUpdates parameter
- Add tests for validation and API integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add TestCalendarSendUpdates Go integration test and shell live test
that verify attendee notifications are sent on create/update/delete.

Tests are opt-in via GOG_IT_ATTENDEE / GOG_LIVE_CALENDAR_ATTENDEE env vars.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@tonimelisma
Copy link
Copy Markdown
Contributor Author

Added integration tests for --send-updates flag (504094e).

Manual verification completed:

  • go test -tags=integration ./internal/integration/... -run TestCalendarSendUpdates passes
  • ✅ Attendee receives invitation email on event creation
  • ✅ Attendee receives update notification on event modification
  • ✅ Attendee receives cancellation email on event deletion

Tests are opt-in via GOG_IT_ATTENDEE (Go) / GOG_LIVE_CALENDAR_ATTENDEE (shell) environment variables.

@steipete steipete merged commit 2c74267 into openclaw:main Feb 14, 2026
1 check passed
klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
…openclaw#163)

* feat(calendar): add --send-updates flag to update and delete commands

Add --send-updates flag to CalendarUpdateCmd and CalendarDeleteCmd to
control notification behavior when modifying or canceling events with
attendees.

Without this flag, attendees are not notified of updates or cancellations,
causing:
- Stale events remaining in attendees' calendars
- Duplicate/overlapping events when updates are made
- Data synchronization issues for systems managing calendars at arm's length

Changes:
- Add SendUpdates field to CalendarUpdateCmd and CalendarDeleteCmd
- Validate SendUpdates value (all, externalOnly, none)
- Pass SendUpdates to Patch and Delete API calls
- Update truncateParentRecurrence helper to accept sendUpdates parameter
- Add tests for validation and API integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(calendar): add integration tests for --send-updates flag

Add TestCalendarSendUpdates Go integration test and shell live test
that verify attendee notifications are sent on create/update/delete.

Tests are opt-in via GOG_IT_ATTENDEE / GOG_LIVE_CALENDAR_ATTENDEE env vars.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(calendar): polish --send-updates landing

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
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