Skip to content

ref(slack): Remove assistant:write OAuth scope from Slack integration#116567

Merged
alexsohn1126 merged 1 commit into
masterfrom
cursor/remove-slack-assistant-write-scope-6efa
Jun 1, 2026
Merged

ref(slack): Remove assistant:write OAuth scope from Slack integration#116567
alexsohn1126 merged 1 commit into
masterfrom
cursor/remove-slack-assistant-write-scope-6efa

Conversation

@alexsohn1126
Copy link
Copy Markdown
Member

This PR removes the assistant:write OAuth scope from the Slack integration's requested scopes during installation.

Context

The assistant feature has been removed from Sentry's Slack app, so we no longer need to request the assistant:write scope when users install the integration.

Changes

  • Removed SlackScope.ASSISTANT_WRITE from identity_oauth_scopes in SlackIntegrationProvider

Behavior

  • New installations: Will not request or receive the assistant:write scope
  • Existing installations: Will continue to work with their existing scopes. The code that uses assistant functionality (set_thread_status, set_suggested_prompts) already has defensive error handling and will gracefully handle missing scopes.

Testing

The existing test suite covers:

  • OAuth scope verification in test_integration.py::test_initialize_pipeline
  • Defensive behavior when the scope is missing (tests set scopes in metadata)

Related to: #inc-2211

Slack Thread

Open in Web Open in Cursor 

The assistant feature has been removed from the Slack app, so we no longer
need to request the assistant:write scope during OAuth installation.

Existing integrations that already have this scope will continue to work,
but new installations will not request it.

Co-authored-by: Alex Sohn <alexsohn1126@users.noreply.github.com>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 1, 2026
@alexsohn1126 alexsohn1126 marked this pull request as ready for review June 1, 2026 13:24
@alexsohn1126 alexsohn1126 requested a review from a team as a code owner June 1, 2026 13:24
@alexsohn1126 alexsohn1126 enabled auto-merge (squash) June 1, 2026 13:29
Copy link
Copy Markdown
Contributor

@chromy chromy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@alexsohn1126 alexsohn1126 merged commit 05ddc16 into master Jun 1, 2026
64 checks passed
@alexsohn1126 alexsohn1126 deleted the cursor/remove-slack-assistant-write-scope-6efa branch June 1, 2026 13:36
afsuyadi pushed a commit to afsuyadi/sentry that referenced this pull request Jun 2, 2026
…getsentry#116567)

<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
This PR removes the `assistant:write` OAuth scope from the Slack
integration's requested scopes during installation.

## Context

The assistant feature has been removed from Sentry's Slack app, so we no
longer need to request the `assistant:write` scope when users install
the integration.

## Changes

- Removed `SlackScope.ASSISTANT_WRITE` from `identity_oauth_scopes` in
`SlackIntegrationProvider`

## Behavior

- **New installations**: Will not request or receive the
`assistant:write` scope
- **Existing installations**: Will continue to work with their existing
scopes. The code that uses assistant functionality (`set_thread_status`,
`set_suggested_prompts`) already has defensive error handling and will
gracefully handle missing scopes.

## Testing

The existing test suite covers:
- OAuth scope verification in
`test_integration.py::test_initialize_pipeline`
- Defensive behavior when the scope is missing (tests set scopes in
metadata)

Related to: #inc-2211
<!-- CURSOR_AGENT_PR_BODY_END -->

[Slack
Thread](https://sentry.slack.com/archives/C0B7AMW5XL6/p1780319812860829?thread_ts=1780319812.860829&cid=C0B7AMW5XL6)

<div><a
href="https://cursor.com/agents/bc-d59dd21c-3ae5-5e0e-9638-f805395d6efa"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-d59dd21c-3ae5-5e0e-9638-f805395d6efa"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div>

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Alex Sohn <alexsohn1126@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants