fix: Add active project name and path to system prompt

This commit is contained in:
Petr Mironychev
2025-11-12 19:29:33 +01:00
parent 1cd19aa5d1
commit a26d475806
2 changed files with 8 additions and 2 deletions

View File

@ -86,7 +86,7 @@ QFuture<QString> ListProjectFilesTool::executeAsync(const QJsonObject &input)
return QtConcurrent::run([this]() -> QString {
QList<ProjectExplorer::Project *> projects = ProjectExplorer::ProjectManager::projects();
if (projects.isEmpty()) {
QString error = "Error: No projects found";
QString error = "No projects found";
throw ToolRuntimeError(error);
}