Skip to content

fix: auto-paginate channel list without --all too#15

Closed
jonathanlam wants to merge 1 commit into
mainfrom
fix/channel-list-member-only-pagination
Closed

fix: auto-paginate channel list without --all too#15
jonathanlam wants to merge 1 commit into
mainfrom
fix/channel-list-member-only-pagination

Conversation

@jonathanlam

@jonathanlam jonathanlam commented Jul 7, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up to #14. That fix made channel list --all auto-paginate across conversations.list, but gated the auto-pagination on All — plain channel list (users.conversations, the channels the bot is a member of) still only fetched a single page. A bot that's a member of more channels than fit on one page would silently miss the rest, the same underlying failure mode as #14 just scoped to membership instead of the whole workspace.

  • Auto-pagination now applies whenever no explicit --cursor is given, for both users.conversations (default) and conversations.list (--all)
  • An explicit --cursor still fetches a single page in either mode, for manual/resume use
  • Updated flag help text

Test plan

  • go build ./...
  • go vet ./...
  • go test ./... — added coverage for member-only (non---all) auto-pagination and explicit-cursor-without---all single-page behavior

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

The previous fix only auto-paginated conversations.list when --all was
set. Plain `channel list` (users.conversations, the bot's member
channels) still made a single call, so a bot in more channels than fit
on one page would silently miss some of them — the same failure mode
--all had, just scoped to membership instead of the whole workspace.

auto-paginate now applies whenever no explicit --cursor is given,
regardless of --all.
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

This PR is being prevented from merging because you have not added exactly one label (patch, minor, major, no-release)

@jonathanlam jonathanlam closed this Jul 7, 2026
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.

1 participant