Next ---> Parent directory, not a Git repository
├── Api ---> Backend project, Git repository
├── Frontend ---> Frontend project, Git repository
└── Next.code-workspace
Open “Next” directory
Since the Next parent directory is not a Git repository, Multiple models cannot be used.
Open “Next.code-workspace” workspace
Also not usable with Multiple models
Open the “Api” and “Frontend” two project directories separately
At this point, Multiple models can be used, but this would prevent the Agent from writing the front-end code and then the back-end code in a single prompt. It would need to be done in two separate tasks.
So, what are the best practices for multiple projects (official answer), and how do people usually do it?
hi @Qiang I changed your request from Bug Report to Discussion.
To use the newest multi-model feature that runs multiple models in parallel, each project must be opened as a Git checkout. Since your parent directory ‘Next’ isn’t a Git repo, you should open the ‘Api’ and ‘Frontend’ projects individually, each as their own Git repository checkout.
This means you’ll manage the ‘Api’ and ‘Frontend’ projects in separate prompts, but it’s necessary for the multi-model feature to work correctly. If you want to run multi-models across both in a single prompt, you’d need to combine them into a single Git repository, which may not be possible depending on your setup.