From b18ef4c400652254a223f58576f78ff424b716d2 Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Wed, 26 Nov 2025 19:48:54 +0100 Subject: [PATCH] feat: Add build folder path to system prompt --- ChatView/ClientInterface.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ChatView/ClientInterface.cpp b/ChatView/ClientInterface.cpp index 142f9eb..0bbb0f4 100644 --- a/ChatView/ClientInterface.cpp +++ b/ChatView/ClientInterface.cpp @@ -19,6 +19,8 @@ #include "ClientInterface.hpp" +#include +#include #include #include #include @@ -143,6 +145,13 @@ void ClientInterface::sendMessage( if (project) { systemPrompt += QString("\n# Active project name: %1").arg(project->displayName()); systemPrompt += QString("\n# Active Project path: %1").arg(project->projectDirectory().toUrlishString()); + + if (auto target = project->activeTarget()) { + if (auto buildConfig = target->activeBuildConfiguration()) { + systemPrompt += QString("\n# Active Build directory: %1") + .arg(buildConfig->buildDirectory().toUrlishString()); + } + } QString projectRules = LLMCore::RulesLoader::loadRulesForProject(project, LLMCore::RulesContext::Chat);