Motivation
Polling for new comments without a since-filter forces clients to pull all comments and diff client-side. The Drive comments REST API supports startModifiedTime on comments.list — exposing it as a flag is a small change but a meaningful efficiency win for poll loops.
Verified against current source (v0.21.x): internal/cmd/drive_comments.go DriveCommentsListCmd and internal/cmd/docs_comments.go DocsCommentsListCmd expose --include-resolved, --max, --page, --all, --fail-empty — no time filter.
Repro
# Today, polling for comments touched in the last minute:
gog drive comments list <DOC_ID> --all -j | jq '.comments[] | select(.modifiedTime > "2026-06-04T10:00:00Z")'
# Fetches every page of every comment.
# Wanted:
gog drive comments list <DOC_ID> --since=2026-06-04T10:00:00Z
Proposed surface
gog drive comments list <fileId> --since=<RFC3339>
gog docs comments list <docId> --since=<RFC3339>
Wired to the startModifiedTime query parameter on comments.list.
Acceptance criteria
--since accepts RFC3339 with timezone, rejects naked datetimes with a clear error.
- Server-side filtering verified via the same call returning fewer items than without
--since.
- Combines correctly with
--include-resolved, --max, --all.
References
Motivation
Polling for new comments without a since-filter forces clients to pull all comments and diff client-side. The Drive comments REST API supports
startModifiedTimeoncomments.list— exposing it as a flag is a small change but a meaningful efficiency win for poll loops.Verified against current source (v0.21.x):
internal/cmd/drive_comments.goDriveCommentsListCmdandinternal/cmd/docs_comments.goDocsCommentsListCmdexpose--include-resolved,--max,--page,--all,--fail-empty— no time filter.Repro
Proposed surface
Wired to the
startModifiedTimequery parameter oncomments.list.Acceptance criteria
--sinceaccepts RFC3339 with timezone, rejects naked datetimes with a clear error.--since.--include-resolved,--max,--all.References
comments.listparameters (startModifiedTime): https://developers.google.com/workspace/drive/api/reference/rest/v3/comments/list