Slack adds PR, diff and List tabs to code channels
Brief
Slack adds new tab types for code channels and changes how apps set PR status and manage diff views.
New code channel views
- Use agents.conversations.setView to add a live GitHub PR with type: "pull_request" and pr_url; a channel can hold up to 10 PR tabs.
- A PR tab requires the Slack Code GitHub App to be installed for the repository and approved in Slack. Until then, setView saves the view and returns a github_not_connected warning.
- A diff with a view_key gets its own tab; without one, it uses the built-in Code tab. Apps can also pin Slack Lists and add HTML views by uploading a file and passing its file_id.
Breaking changes
- code_channel.pr_status now accepts only open, draft, merged, closed, blocked or ""; an empty string clears the status. Other values return invalid_pr_status and nothing in the call is saved.
- code_channel no longer accepts pr_url, pr_number, pr_title, ci_url or ci_state; including these fields returns invalid_arguments.
- A diff view_key now creates a keyed diff instead of updating the Code tab. removeView returns ambiguous_view_key and removes nothing if the key matches multiple views; pass view_id or use distinct keys.
Generated by AI from the original article. Check the source for full details.