Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I’m using Cursor’s background agent (Slack integration) to review Slack notifications and have them turn into actionable tasks. The agent consistently gets stuck in a loop where it attempts to work on a repo, returns repository access denied or says it doesn’t have access, then retries the same action repeatedly in a loop. This happens even after I’ve explicitly granted the Cursor GitHub app access to the repo. The agent does not pick up the new permissions during its run. Separately, there seems to be no way to have the agent read older/historical Slack messages - it only appears to see messages in the current session or very recent ones. If I want the agent to summarize patterns across older Slack notifications, it can’t do that.
Steps to Reproduce
- Set up a Slack background agent in Cursor with a Slack integration and GitHub repo access
- Send Slack notifications/messages that the agent should review
- Ask the agent to review the Slack notifications and take action on the repo
- The agent gets stuck in a loop: tries to access the repo, says repo access denied, retries again and again
- Even after granting repo access to the Cursor GitHub app and re-running, the same loop persists
- Attempt to have the agent read older Slack messages (beyond the current session) - it cannot access them
Expected Behavior
The background agent should:
- Refresh/recheck repo access permissions when they are updated, instead of getting stuck in a loop with stale permission state
- Provide a clear error message indicating exactly why it cannot access the repo (e.g., which scopes or org settings are missing) instead of silently looping
- Allow users to configure how far back in Slack history the agent should read - e.g., a setting to read the last 100 messages from a channel or a specific date range
- Not enter infinite retry loops when it hits a permission error - it should fail gracefully with actionable feedback
Operating System
MacOS
Version Information
Latest version (as of May 2026)
For AI issues: which model did you use?
Using background agent via Slack integration
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor