Hey, this is a known issue. The token the cloud agent gets in the sandbox environment doesn’t include access to GitHub Issues, so gh issue view and gh issue list fail with the error “Resource not accessible by integration”.
This is also why agents can’t create PRs directly. The token has limited permissions.
Related reports:
- Pull request create failed: Resource not accessible by integration Pull request create failed: GraphQL: Resource not accessible by integration (createPullRequest)
- Cloud agent having issue with GitHub Permissions Cloud agent having issue with Github Permissions
For now, the workaround is to paste the issue content directly into the agent prompt, like the title, description, and key comments, instead of asking it to fetch the issue by number.