Repository navigation
feat(bots): read subscribed channel history from slack - #1491
Merged
Merged
Conversation
nixuuu
enabled auto-merge (squash)
November 29, 2026 21:32
nixuuu
marked this pull request as draft
November 29, 2026 21:36
auto-merge was automatically disabled
November 29, 2026 21:36
Pull request was converted to draft
nixuuu
marked this pull request as ready for review
November 29, 2026 21:39
nixuuu
enabled auto-merge (squash)
November 29, 2026 21:39
This was referenced Nov 30, 2026
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.
An owner can ask their bot in private chat for older Slack posts and thread replies, including messages posted before Canopy started listening. The gateway reads one page from Slack with the messaging account’s bot token. It checks the owner turn, account and subscription again before returning messages from the currently allowed authors.
The history tool returns readable text from supported Slack blocks and identifies attached files by ID and name. It skips system events such as channel joins. A rate limit carries the wait time from Slack. Membership and permission failures explain how to restore access. The existing Slack app manifest includes the required history scopes.
Verification
bot-messenger-setup,bot-messenger-toolsandslack-messengerwithbun run check:tmp. Rechecked the history test after adding the unlabeled-link case. The fixtures covered pagination, replies, posts without fallback text, membership and scope errors, rate limiting, revocation during a read, disabled accounts and private-owner access.Copy audit
The existing saved-turn lookup shows “Checking message history”. The live read shows “Reading Slack messages” to identify the source. Before review, a Slack access error produced a generic platform failure. The new messages identify the account permission, channel membership or retry interval needed to proceed. Both statuses use the existing activity row. The remaining checklist items do not apply to this change.