Repository navigation
Description
Feature Request
Problem
When using the Slack integration, users must select a repository for each new conversation. This is tedious when a channel is dedicated to a specific project/repo.
Proposed Solution
Allow users to set a default repository for a Slack channel by adding repo:{org}/{repo} (e.g., repo:OpenHands/OpenHands) in the channel description (purpose field).
Priority order for repository selection:
- If a repo is explicitly mentioned in the user's message → use that repo
- If no repo mentioned but channel has
repo:{org}/{repo}in description → use that as default - Otherwise → show the repo selection form (current behavior)
Additional Improvement
Add the selected repository to the "I'm on it!" response message to make it clear which repo is being used:
- Current:
I'm on it! @user can [track my progress here](link). - Proposed:
I'm on it! Working on **{org}/{repo}**. @user can [track my progress here](link).
Implementation Details
1. Add new OAuth scope:
The Slack app needs channels:read scope (and optionally groups:read for private channels) to call the conversations.info API.
Files to update:
enterprise/integrations/slack/slack_manager.py(line 41)enterprise/server/routes/integration/slack.py(line 47)
Note: Existing Slack app installations will need to re-authorize to gain the new permission.
2. Add helper to get channel description:
Use client.conversations_info(channel=channel_id) to retrieve the channel's purpose.value field.
3. Parse repo from description:
Add regex pattern to match repo:{org}/{repo} in the channel purpose/description.
4. Update repo selection logic:
In SlackManager.is_job_requested(), before showing the repo selection form, check if there's a default repo from the channel description.
5. Update response messages:
Modify get_response_msg() methods in:
SlackNewConversationView(line ~334)SlackUpdateExistingConversationView(line ~526)
Related Files
enterprise/integrations/slack/slack_manager.pyenterprise/integrations/slack/slack_view.pyenterprise/server/routes/integration/slack.py
Acceptance Criteria
- Add
channels:readscope to Slack OAuth - Implement channel description parsing for
repo:{org}/{repo}pattern - Use default repo when no repo is mentioned in message
- Update "I'm on it!" message to include the selected repo
- Add unit tests for the new functionality
- Document the feature in relevant docs
Activity
feat(slack): Allow setting default repo per channel via description
github-actions commentedon Mar 25, 2026
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
github-actions commentedon May 5, 2026
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
VinSpee commentedon May 8, 2026
I ran into this issue today and found it quite surprising that I needed to select the repo and owner for every time I open an issue. This would be a very useful feature for our team
neubig commentedon May 8, 2026
Thanks @VinSpee ! Taking a note that I'm not the only one :)
[-]Slack Integration: Allow setting default repo per channel via channel description[/-][+][Enhancement] [Slack]: Allow setting default repo per channel via channel description[/+]github-actions commentedon Jul 21, 2026
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
all-hands-bot commentedon Sep 4, 2026
[Automatic Post]: This issue has had no activity for 39 days (labels: enhancement). Could someone take a look when they have a chance and help figure out next steps?
Generated by OpenHands automation on behalf of the user.
all-hands-bot commentedon Oct 16, 2026
[Automatic Post]: This issue has had no activity for 41 days (labels: enhancement). Could someone take a look when they have a chance and help figure out next steps?
Generated by OpenHands automation on behalf of the user.