Repository navigation
fix(google-calendar): emit usable event ids from list_events and create_event - #13861
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 4 files
You’re at about 92% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
Verified the bug and the fix end to end — nice, tight PR.
One non-blocking note: No blocking concerns from this review; leaving for routine maintainer merge. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
PR: #14101 AUTO (AI Agent). |
kodjima33
left a comment
There was a problem hiding this comment.
Fixes truncated Google Calendar event ids breaking get/update/delete round-trip, and missing id on create_event. Confidence 5/5.
cfd008a to
5138fc0
Compare
kodjima33
left a comment
There was a problem hiding this comment.
5/5 confidence bug fix, verified not-yet-fixed on main, test coverage added, CI green.
list_events printed each event id as the first 20 characters followed by
"...". Google generated event ids are 26 base32hex characters and
recurring instance ids append "_YYYYMMDDTHHMMSSZ", so every id the tool
handed back was truncated. get_event, update_event and delete_event send
the id verbatim to the Calendar API and told the user to find ids with
list_events, which made the whole read, update and delete flow fail with
"Event not found".
Emit the full id, the same way get_event and list_calendars already do,
and add a hermetic regression suite that round trips every id printed by
list_events through get_event, update_event and delete_event against a
recorded Calendar API seam. Registered in .github/checks-manifest.yaml so
it runs locally and in CI, and documented in the plugin README.
Verification:
python3 plugins/omi-google-calendar-app/test_event_ids.py
5 tests OK on this commit
4 failing (7 subcases) against the unchanged main.py
Failure-Class: none
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NTjKj3PbjJ6d315JjoTjUE
create_event answered with the title, time, location, attendees and link
but never the event id, so an event created in chat could not be
updated or deleted in the same conversation without a separate
list_events call. Append the id to the confirmation, formatted the same
way list_events prints it, and extend the round trip suite so the id
printed by create_event is accepted by get_event.
Verification:
python3 plugins/omi-google-calendar-app/test_event_ids.py
6 tests OK on this commit
the new case fails against the previous commit
Failure-Class: none
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NTjKj3PbjJ6d315JjoTjUE
… and delete
The create_event case only proved the printed id was accepted by
get_event. Extend it through update_event and delete_event so the id
line is guarded on every path the PR claims.
Verification:
python3 plugins/omi-google-calendar-app/test_event_ids.py
6 tests OK
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NTjKj3PbjJ6d315JjoTjUE
5138fc0 to
fee948b
Compare
|
Checked this against the plugin's own code and the Calendar API's recurring events guide, and the finding does not hold.
The guide's own sample for changing one occurrence is exactly that: retrieve the instance, then send an update to the instance edit URL So the instance id emitted by |
Summary
list_eventsinplugins/omi-google-calendar-app/main.pyprinted each event id asevent_id[:20] + "...". Google generated event ids are 26 base32hex characters and recurring instance ids append_YYYYMMDDTHHMMSSZ(Events resource,idfield), so every id the tool handed back was truncated.get_event,update_eventanddelete_eventsend the id verbatim to the Calendar API and tell the user to "use 'list events' to find event IDs", so the read, reschedule and delete flows from chat all ended inEvent not found.create_eventhad the adjacent gap: its confirmation never included the id, so an event created in chat could not be updated or deleted in the same conversation without a separatelist_eventscall.Two commits, one per surface:
list_eventsprints the complete id, matching whatget_eventandlist_calendarsalready do.create_eventappendsID: \`` to its confirmation.Regression suite
plugins/omi-google-calendar-app/test_event_ids.pyimports the production module with framework only stubs and drives the real handlers against a recorded Calendar API seam that only resolves exact ids. It asserts that every id printed bylist_events(single and recurring instance shapes) round trips throughget_event,update_eventanddelete_event, that the 20 character prefix the old output produced is rejected by that seam, and that the id printed bycreate_eventis accepted byget_event. No network, credentials or third party packages.Registered as
gcal-event-id-round-trip-testsin.github/checks-manifest.yaml(local and ci lanes) and documented in the plugin README.Verification
I could not exercise this against a live Google Calendar account; the real user facing path is covered by the hermetic round trip above, which drives the actual handlers rather than a copy of their logic.
Product invariants affected
none
Fixes #13860
Failure-Class: none