Merged
Conversation
Owner
|
Thank you @wllmtrng! |
redaphid
pushed a commit
to redaphid/slack-mcp-server
that referenced
this pull request
Nov 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug Fix: Search Messages Pagination Cursor Not Returned
Problem
The
conversations_search_messagestool was not returning pagination cursors even when more results were available, making it impossible to paginate through search results.Root Cause
The condition for determining whether to return a pagination cursor was incorrectly calculating whether more pages exist:
Example that demonstrates the bug:
When searching with
limit=1and there are 25,406 total results:PerPage = 1PageCount = 25,406(total number of pages)TotalCount = 25,406(total results)(1 * 25,406) < 25,406=25,406 < 25,406= false ❌The logic was multiplying
PerPagebyPageCount(total pages), which equalsTotalCount, so the condition would only be true in edge cases.Solution
Fixed the condition to properly check if the current page is less than the total page count:
Now with the same example:
Page = 1(current page)PageCount = 25,406(total pages)1 < 25,406= true ✓page:2(base64 encoded)Changes
pkg/handler/conversations.goPage+1instead ofPageCount+1Testing
Impact
Users can now properly paginate through search results using the returned cursor values, enabling complete traversal of large search result sets.