calendar +agenda silently returns incomplete results
Maintainers usually reply within 1 day
@manrods is already working on this.
Since Aug 21, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
Research direction
Start in crates/google-workspace-cli/src/helpers/calendar.rs at the calendar list and event request code linked in the issue. Reproduce with more than 50 matching events and inspect how request, response, and JSON errors are handled. Done means pagination is followed and per-calendar failures are surfaced or explicitly reported as partial results, including any intentional truncation.
Written by the indexing model from the issue text.
Description
Summary
gws calendar +agenda says that it shows events across all calendars, but it can silently omit calendars and events.
At commit a3768d0e82ad83cca2da97724e46bea4ff0e6dbd:
- The helper reads only the first
calendarListpage and ignoresnextPageToken: https://github.com/googleworkspace/cli/blob/a3768d0e82ad83cca2da97724e46bea4ff0e6dbd/crates/google-workspace-cli/src/helpers/calendar.rs#L261-L289 - Each calendar request hard-codes
maxResults=50and ignores the eventnextPageToken: https://github.com/googleworkspace/cli/blob/a3768d0e82ad83cca2da97724e46bea4ff0e6dbd/crates/google-workspace-cli/src/helpers/calendar.rs#L322-L359 - A request error, non-success response, or JSON decode error is converted to an empty event list: https://github.com/googleworkspace/cli/blob/a3768d0e82ad83cca2da97724e46bea4ff0e6dbd/crates/google-workspace-cli/src/helpers/calendar.rs#L334-L356
This makes a partial result indistinguishable from a complete agenda with no events.
Reproduction
- Put more than 50 matching events in one calendar within the requested range.
- Run
gws calendar +agendafor that range. - The output contains at most 50 events from that calendar and reports no truncation.
A provider error for one secondary calendar also produces a successful result that omits that calendar.
Expected behavior
- Follow
nextPageTokenforcalendarList.listand everyevents.listrequest until it is absent. - Do not convert per-calendar failures into empty calendars. Return an error, or return an explicit partial-result status with the failed calendar and cause.
- If the command has an intentional caller limit, expose the limit and report that the result is truncated.
- Dominant language
- Rust
- Stars
- 32.3k
- Forks
- 2k
- Avg merge
- 16h 3m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from googleworkspace/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
googleworkspace/cli#984 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
googleworkspace/cli#983 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
googleworkspace/cli#958 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
googleworkspace/cli#921 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
googleworkspace/cli#920 ·
Maintainers usually reply within 1 day
All issues in googleworkspace/cli
Similar issues
-
area:cli area:security bug priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
status: new topic: ga4gh-sdk type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
comp-rbac
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ClickHouse/ClickHouse#131875 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
bug(python): read_transaction raises TypeError on a Rewrite with rewritten indicesPossibly taken @Borg93 claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
lance-format/lance#11117 ·
Maintainers usually reply within 2 days