bug(calendar): events --page with several calendars sends one calendar's token to all of them
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
Start with internal/cmd/calendar_list.go at the loadPagedItems(page, …) call around line 168, then check the calendar events command's tests. Confirm how nextPageTokens represents per-calendar tokens and how multi-calendar --page input is handled. Done means a token from one calendar no longer causes the other calendars' requests to fail silently; an open linked pull request already addresses this issue.
Written by the indexing model from the issue text.
Description
Summary
With --cal/--calendars/--all, --page is passed to every selected calendar's events.list. A page token belongs to one calendar, so the others reject it. Each rejection is only a stderr line, and the command exits 0.
Current (v0.47.1)
gog calendar events --cal 1 --cal 2 --page <token from calendar 1>
# calendar <calendar 2 id>: googleapi: Error 400: Invalid page token value., invalid
# No events (exit 0)
calendar_list.go#L168 calls loadPagedItems(page, …) with the same page for each calendar. The JSON output's nextPageTokens lists tokens per calendar, but there is no way to pass one back for its calendar.
Suggested
Either reject --page with more than one calendar (pointing to --all-pages), or accept per-calendar tokens, such as --page CALENDAR_ID=TOKEN (repeatable), matching nextPageTokens.
Environment
gog v0.47.1 (main at 82e7fd6). Reproduced against a local fake of the Calendar API through GOG_GOOGLE_API_BASE_URL.
- Dominant language
- Go
- Stars
- 8.5k
- Forks
- 721
- Avg merge
- 17h 48m
- Merged PRs (30d)
- 52
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No 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 openclaw/gogcli
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
openclaw/gogcli#1291 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
openclaw/gogcli#1283 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
bug(calendar): multi-calendar events JSON uses the key CalendarID instead of calendarIdPossibly taken @i098 claimed this 1 day ago. Openclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openclaw/gogcli#1282 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
feat(gmail): make gmail get --format raw text output the exact message, like drafts get --format rawOpenclawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openclaw/gogcli#1276 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Docs commands exit 1 on a 404 instead of not_found (5)Possibly taken @HardMax71 claimed this 2 days ago. Openclawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster P2
Difficulty 3/5 1-2 days Newbie friendliness 72/100
openclaw/gogcli#1288 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
Fix mode unpins a reusable workflow call when the same repository is also used as a step actionOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
github/gh-actions-lock#261 ·
Maintainers usually reply within 1 day
-
bug documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
labmonkeys-space/nl6#974 ·
Maintainers usually reply within 1 day
-
model:sonnet phase-2-optimize runtime:claude security size:S
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
FootprintAI/Containarium#3471 ·
Maintainers usually reply within 1 day
-
[BUG] serviceenvupdater filter does not update KUBERNETES_SERVICE_HOST/PORT in init containersPossibly taken @RaphaelFakhri claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openyurtio/openyurt#2845 ·
Maintainers usually reply within 7 days
-
fuzz.yml skips three fuzz targets, and the Action's user input describes only ~/.claudePossibly taken @predictor2718 claimed this today. Opengithub_actions P3 tests
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day