Repository navigation
feat(slack): Expand public context reads for teammate UX - #1388
Merged
Merged
Conversation
Make public Slack context more teammate-like in the first slice of #1385: allow cross-channel history and live public-channel access checks, broaden interactive public search content types, and document the required search scopes including files and users. Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
11 tasks done
Complete the teammate-context UX slice: resolve public channel names, join public channels on demand, retry history/thread reads after join, keep public search visible without an action token, tighten tool copy, and document channels:join. Co-Authored-By: David Cramer <[email protected]>
Drop the separate channel-resolve tool. Accept public channel names on existing channel_id params via an internal helper used by history, join, thread read, and retained conversation search. Co-Authored-By: David Cramer <[email protected]>
Move channel access, name resolution, tool context, URL parsing, and canvas/list helpers into slack/tool-support so tools/ only contains one tool definition per file. Co-Authored-By: David Cramer <[email protected]>
dcramer
reviewed
Aug 10, 2026
Co-Authored-By: David Cramer <[email protected]>
dcramer
reviewed
Aug 10, 2026
dcramer
marked this pull request as ready for review
August 10, 2026 19:31
dcramer
reviewed
Aug 10, 2026
dcramer
left a comment
Member
There was a problem hiding this comment.
lots of stuff needs cleaned up around the tool definitions
| ) { | ||
| return zodTool({ | ||
| description: | ||
| "Join a public Slack channel. Use when the user asks Junior to join or when reading a public channel requires membership.", |
Member
There was a problem hiding this comment.
dont reference "Junior" in tool descriptions, as the bots name is configurable. We dont need to tell it when to use it.
Drop optional tool-factory DI, shorten model-facing descriptions without product names or when-to-use prose, put field meaning on shared schemas, and mark conversations.join retries as idempotent.
dcramer
reviewed
Aug 10, 2026
Require stable identifiers on search hits and parse Slack wire shapes through typed Zod transforms instead of optional bag-of-fields helpers.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c4560b4. Configure here.
Normalize blank optional Slack search fields and empty next_cursor to undefined so final pages and partial payloads keep valid results.
Stop treating stale persisted public visibility as enough for cross-channel reads when conversations.info cannot prove the channel is still public.
dcramer
reviewed
Aug 10, 2026
Keep shared param schemas as the required value shape and apply .optional() where each tool input needs it. Document the rule in tool-design policy.
This branch was successfully deployed
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.

First slice of #1385.
Make public Slack context feel more like a teammate: accept channel names on existing params, join public channels on demand, read linked public threads and other-channel history, and keep search limits honest.
Changes
channel_idparams accept a channel id (C123) or public channel name (#foo) via an internal resolve helper (no separate resolve tool)slackChannelListMessagesandslackThreadReadjoin on demand when Slack returnsnot_in_channelslackChannelJointool for explicit on-demand public joinsslackPublicSearchstays registered without an action token and explains the interactive-turn limit instead of disappearingmessages/files/channels/users)search:read.public,search:read.files,search:read.users, andchannels:joinOut of scope
action_tokenTest plan