Where does the bug appear (feature/product)?
Background Agent (GitHub, Slack, Web, Linear)
Describe the Bug
So I have two problems which I have described below - One is from cloud agent and another is from cursor application
Git operations (push, pull, fetch) work fine, but gh CLI commands for issues/PRs don’t work due to a token permission mismatch.
It was working before but automatically this happens.
For now, I can still do all the code work - commits and pushes work perfectly. You’d just need to create PRs manually via the GitHub web interface if needed.
The gh CLI commands for issues and pull requests fail with the error:
GraphQL: Resource not accessible by integration (repository.issues)
This occurs even though the Cursor GitHub App has been granted full permissions.
The Cursor GitHub App is installed with:
Read access to actions, commit statuses, deployments, metadata, packages, and pages
Read and write access to checks, code, discussions, issues, pull requests, and workflows
Repository access: All repositories
When querying actual token permissions via API:
{“permissions”:{“admin”:false,“maintain”:false,“pull”:false,“push”:false,“triage”:false}}
All permissions show as false despite the UI showing read/write access granted.
Repository: realsamrat/perfectbooth (private)
Branch: cursor/current-branch-context-3dfe
Cursor GitHub App: Installed ~6 minutes before testing
Also I am not able to delegate any work to the cloud agent from cursor application
Request ID: 2bbb4803-0f3c-4b18-bfb7-d5a586ca7120
{“error”:“ERROR_BAD_REQUEST”,“details”:{“title”:“Bad request.”,“detail”:“Failed to fetch branch/tag ref cursor/cloud-agent-1768547268810-xbm4x from GitHub: HttpError: Not Found - REST API endpoints for Git references - GitHub Docs ”:true}
ConnectError: [invalid_argument] Error
at t (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:12706:476909)
at async Object.startBackgroundComposerFromSnapshot (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:566:27065)
at async G9o.startSingleBackgroundComposer (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:15697:16002)
at async Promise.all (index 0)
at async G9o.startNewBackgroundComposer (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:15697:9670)
at async p (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:13831:18789)
at async g (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:13831:16968)
at async V0o.handleBackgroundComposerSubmit (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:13831:25258)
at async V0o.onBeforeSubmitChat (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:13831:28446)
at async KA.measureCapabilityExecution (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:9096:504)
at async KA.runCapabilitiesForProcess (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:9078:12139)
at async wY.submitChatMaybeAbortCurrent (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:10278:8146)
at async Ba (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:12585:3831)
Steps to Reproduce
Maybe connect github and chat with repo by selecting a branch and then try to do changes or check the permissions that github have for that agent environment.
Expected Behavior
gh issue list, gh pr create, and other commands should work since permissions are granted in the GitHub App settings.
Screenshots / Screen Recordings
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.3.35 (Universal)
VSCode Version: 1.105.1
Commit: cf8353edc265f5e46b798bfb276861d0bf3bf120
Date: 2026-01-13T07:39:18.564Z (2 days ago)
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.2
For AI issues: which model did you use?
Opus 4.5
Does this stop you from using Cursor
No - Cursor works, but with this issue
