This guide covers the most common reasons GitHub Copilot agents and in-page agent systems get stuck in a loading state, along with step-by-step solutions for each scenario.
🔍 Live Diagnostics
Known Causes & Solutions
1. Network / Connectivity Problems
Issues communicating with the API or specific domains can cause a stuck loading state.
Solution
- Ensure your network connection is stable (run the diagnostic above).
- Check firewall settings for blocked domains such as
octocaptcha.comorarkoselabs.com. - If you are behind a corporate proxy or VPN, try temporarily disabling it.
2. Terminal / Shell Customizations
Custom prompts in ~/.bashrc, ~/.zshrc, or similar files can
interfere with the agent's ability to run commands properly.
Solution
- Back up and temporarily rename your custom shell configuration file.
- Relaunch the agent session using default shell settings.
- Re-enable customizations one at a time to identify the conflicting entry.
3. Service Outages or Backend Delays
The issue may be a known problem or a temporary service disruption on GitHub's end.
Solution
- Check the GitHub Status page for active incidents.
- If an outage is listed, wait for it to be resolved before retrying.
- If the issue persists after an outage is resolved, report it using the link below.
4. VS Code or Agent-Specific Bugs
Known issues in specific versions of VS Code or the Copilot extension can cause the agent to hang.
Solution
- Restart VS Code — this often temporarily restores functionality.
- Ensure you are using the most recent version of VS Code and the Copilot extension (fixes are frequently released).
- Check the VS Code issue tracker for known bugs matching your symptoms.
5. Insufficient Permissions
The agent might lack the necessary permissions to access repositories or run GitHub Actions.
Solution
- Verify that the Copilot Agent is enabled for your account and the specific repository.
- Check organization policies and confirm the Copilot GitHub App has required access via Settings → Applications → Authorized OAuth Apps.
- Ensure the repository's Actions permissions allow the workflows required by the agent.
6. Large Inputs / Infinite Loops
Extremely large logs or complex inputs may overload the agent, causing it to get stuck in a processing loop.
Solution
- Try using smaller inputs or breaking the task into multiple smaller requests.
- Manually stop the generation and prompt the agent to "continue".
- Avoid passing entire large log files; extract only the relevant portion.
7. Incomplete Installation
If the installation of a CLI agent or related software was interrupted, it can remain in a loading state.
Solution
- Ensure the installation completes successfully before launching.
- If interrupted, run the installer again; a full reinstallation may be necessary.
- For npm-based installations, try
npm cito ensure a clean dependency tree.
⚡ General Troubleshooting Steps
-
1Re-trigger the Agent Close and reopen the pull request or reassign the issue to jump-start the task.
-
2Check for an Active Terminal Prompt If a
runCommandis used, the agent may be waiting for user input. Click into the terminal and press Enter to see if it wakes up and formulates a response. -
3Use a Different Browser If the issue is in a web UI, try Google Chrome, Microsoft Edge, or Mozilla Firefox. Also try clearing your browser cache (Ctrl+Shift+Delete on Windows/Linux, Cmd+Shift+Delete on macOS).
-
4Engage with GitHub Discussions The issue you are facing might be a known problem. Engage with existing GitHub Discussions or report a new issue with detailed logs to get assistance.