You open Visual Studio Code to use Copilot Agent Mode, but the button to switch modes is not visible. This often happens after a VS Code update, an extension conflict, or a misconfigured setting. The Agent Mode button lets you toggle between inline chat, quick chat, and the full agent panel. This article explains why the button disappears and provides the exact steps to restore it.
Key Takeaways: Fixing the Missing Copilot Agent Mode Button
- VS Code Settings > Extensions > Copilot > Chat Mode: Controls which chat modes are enabled and visible in the UI.
- Ctrl+Shift+P > Developer: Reload Window: Reloads the VS Code window without closing the application, often restoring missing UI elements.
- Extensions panel > Disable/Enable Copilot: Toggling the Copilot extension off and on resolves conflicts with other extensions.
Why the Copilot Agent Mode Button Disappears
The Agent Mode button is part of the Copilot Chat interface in VS Code. It allows you to switch between inline chat, quick chat, and the full agent panel. When this button is missing, one of three root causes is usually responsible.
Extension Conflicts
Third-party extensions that modify the chat UI or the status bar can hide the Agent Mode button. Extensions like GitHub Copilot Chat, GitHub Copilot Labs, or custom theme extensions that override the chat panel may conflict with the core Copilot extension. Disabling these extensions often restores the button.
VS Code Settings Override
A user or workspace setting can hide the chat mode selector. The setting github.copilot.chat.modeSelector controls whether the mode button appears. If it is set to hidden, the button will not show. This setting can be changed in the VS Code settings UI or in the settings.json file.
Outdated Copilot Extension
An outdated version of the GitHub Copilot extension may lack the Agent Mode feature. Microsoft regularly updates Copilot with new capabilities. If your extension is not updated automatically, the mode button may not appear. The fix is to update the extension manually.
Steps to Restore the Copilot Agent Mode Button
Follow these steps in order. Each step addresses a different root cause. Test after each step to see if the button returns.
- Reload the VS Code Window
Press Ctrl+Shift+P to open the command palette. Type Developer: Reload Window and press Enter. This reloads the VS Code window without closing the application. It restores the UI state and often fixes temporary glitches that hide the Agent Mode button. - Check the Chat Mode Setting
Open the VS Code settings by pressing Ctrl+,. In the search bar, type chat mode selector. Look for the setting GitHub Copilot: Chat Mode Selector. If it is set to hidden, change it to visible. If the setting is not present, add it manually insettings.jsonby setting"github.copilot.chat.modeSelector": "visible". - Disable Conflicting Extensions
Open the Extensions panel by clicking the Extensions icon in the left sidebar or pressing Ctrl+Shift+X. Look for any extension that modifies the chat UI, such as GitHub Copilot Chat, GitHub Copilot Labs, or custom theme extensions. Disable them one by one by clicking the gear icon and selecting Disable. After disabling each, reload the window and check for the Agent Mode button. - Update the GitHub Copilot Extension
In the Extensions panel, search for GitHub Copilot. If an update is available, you will see an Update button. Click it to update the extension. After the update, reload the window. If no update is available, uninstall the extension and reinstall it from the VS Code marketplace. - Reinstall the GitHub Copilot Extension
If none of the above steps work, uninstall the GitHub Copilot extension completely. In the Extensions panel, right-click on GitHub Copilot and select Uninstall. Then restart VS Code. After restart, go to the Extensions panel, search for GitHub Copilot, and install it again. This process clears any corrupted extension data.
If the Agent Mode Button Still Does Not Appear
Even after following the main steps, some users still do not see the button. The following issues are less common but can cause the same symptom.
Copilot Agent Mode Button Missing After a VS Code Update
A VS Code update can change the default settings for extensions. After an update, check the GitHub Copilot: Chat Mode Selector setting again. It may have been reset to hidden. Also, check if the update introduced a new extension that conflicts with Copilot. Disable any newly installed extensions that modify the chat panel.
Copilot Agent Mode Button Missing in Remote or Workspace Contexts
If you use VS Code with a remote connection such as SSH, WSL, or a dev container, the Copilot extension may behave differently. In these contexts, the Agent Mode button may be hidden by default. Check the remote settings by opening the command palette with Ctrl+Shift+P and typing Preferences: Open Remote Settings. Search for chat mode selector and set it to visible. Also, ensure the Copilot extension is installed on the remote machine.
Copilot Agent Mode Button Missing When Using a Custom Theme
Some custom themes override the chat UI and may hide the mode button. Temporarily switch to the default VS Code theme by opening the command palette with Ctrl+Shift+P, typing Preferences: Color Theme, and selecting Dark+ (default dark) or Light+ (default light). If the button appears, the theme is the cause. Contact the theme author for a fix.
VS Code Copilot Agent Mode vs Inline Chat: Key Differences
| Item | Agent Mode | Inline Chat |
|---|---|---|
| Description | A dedicated panel for multi-turn conversations with Copilot | A single-turn chat box that appears inside the editor |
| UI Location | Sidebar or separate tab in the panel area | Inline within the code editor |
| Use Case | Complex code generation, debugging, and refactoring | Quick code completions and simple questions |
| Button Visibility | Controlled by github.copilot.chat.modeSelector setting |
Always visible when Copilot is enabled |
| Best For | Developers who need context-aware conversations | Developers who want fast, inline assistance |
The Agent Mode button is a gateway to the full Copilot chat experience. Without it, you are limited to inline suggestions. Restoring the button gives you access to multi-turn conversations, code explanation, and advanced debugging assistance.
After restoring the button, try the Agent Mode by clicking it and asking Copilot to explain a function in your code. This will confirm that the mode is working correctly. For advanced users, you can customize the chat mode selector to show only the modes you use frequently by editing the github.copilot.chat.modes setting in settings.json.