Skip to content

Agent memory introduced in 0.0.384 hangs in retry loop when organization has disabled 3rd party OAuth #1036

@crouchcd

Description

@crouchcd

Describe the bug

Copilot response is stuck "Thinking..." while the backend tries to communicate with api.business.githubcopilot.com/agents/swe/internal/memory/v0/{org}/{repo} and api.github.com/repos/{org}/{repo}. It seems my repo's organization has disabled 3rd party OAuth resulting in a 403 Forbidden when the agent memory endpoint is being called. Copilot retries the request 5 times with an exponential backoff leading to ~2.5 minutes of waiting per request. I downgraded to v0.0.382 and the issue is gone.

2026-01-20T14:43:37.168Z [ERROR] Request to GitHub API at https://api.business.githubcopilot.com/agents/swe/internal/memory/v0/{org}/{repo}/recent?limit=20 failed with status 500 (request ID: ), body: failed to find repository {org}/{repo}: failed to get repository {org}/{repo}: failed to get repository: GET https://api.github.com/repos/{org}/{repo}: 403 Although you appear to have the correct authorization credentials, the `{org}` organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited. For more information on these restrictions, including how to enable this app, visit https://docs.github.com/articles/restricting-access-to-your-organization-s-data/ []

Affected version

0.0.384

Steps to reproduce the behavior

  1. Disable certain OAuth permissions in github organization (I'm not an organization admin, so I don't have insight into what is disabled)
  2. Start copilot with copilot
  3. Send a simple "hello" request

Expected behavior

  • "hello" should return without delay

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions