vscode copilot agent trying to run back or front which is run gain #160937
Replies: 1 comment
-
|
Thank you for raising this issue about GitHub Copilot Agent Mode attempting to run servers that are already running, resulting in port conflicts. Understanding the IssueWhen using Agent Mode in VS Code, Copilot autonomously determines the relevant context for your prompts and may perform various actions including running terminal commands to start servers. As part of its workflow, Agent Mode might try to run backend or frontend servers without first checking if those servers are already running on the specified ports. Recommended Solutions
Configuring Agent Mode BehaviorYou can adjust the following settings to help control Agent Mode's behavior:
Reference: Agent Mode Settings Using Custom InstructionsYou can create custom instruction files to guide Copilot about your development environment setup: ---
applyTo: "**"
---
# Development Environment Instructions
## Server Configuration
- Frontend server runs on port 3000
- Backend server runs on port 8080
- Always check if servers are running before attempting to start them
- Do not attempt to restart servers that are already runningReference: Use instructions to get AI edits that follow your coding style Future ImprovementsThis appears to be a limitation in the current implementation of Agent Mode. GitHub is continually improving Copilot's capabilities, and we anticipate better handling of existing server detection in future updates. If you continue to experience issues, please consider:
Please let us know if you have any additional questions or if you've found other ways to address this issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Copilot Feature Area
General
Body
many times in development process copilot starts to run backend or frontend server that is already run and it encounters port error!
Beta Was this translation helpful? Give feedback.
All reactions