Hey, this is a known issue. The installation token the agent gets in the sandbox doesn’t include the right scopes for pull request and issue actions, even when the GitHub App permissions are set up correctly. Your error, “Failed to create installation access token for installation 70682934”, is caused by the same thing.
A few other users have reported the same problem:
- Pull request create failed: Resource not accessible by integration
- Background Agents spawned via API cannot post PR comments or reviews
The team knows about it and is tracking it. No ETA yet, but your report helps with prioritization.
Workaround for now: after the agent finishes, you should get a link to create the PR manually. The branch and commits will already be there, so you just need to open the PR yourself. Not ideal, but it works until this is fixed.
Let me know if you have any questions.