From 49349cfcf4b482f68ed9f55230c22ca260f5b92c Mon Sep 17 00:00:00 2001 From: ayaangazali Date: Mon, 31 Aug 2026 10:45:01 -0700 Subject: [PATCH] fix(rag): RAC_ENABLE_PROTOBUF=OFF cannot compile the RAG backend rac_rag_proto_abi.cpp includes features/llm/llm_thinking_tags_internal.h above the RAC_HAVE_PROTOBUF guard, but the commons src/ root only joins rac_backend_rag's include path inside the protobuf branch of core/src/features/rag/CMakeLists.txt. With RAC_ENABLE_PROTOBUF=OFF the header is unreachable and the build stops on a fatal include error. Its only use is inside the guard, so move the include next to the two src-relative siblings that are already there. --- core/src/features/rag/rac_rag_proto_abi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/features/rag/rac_rag_proto_abi.cpp b/core/src/features/rag/rac_rag_proto_abi.cpp index 018291f68a..2971a2f29b 100644 --- a/core/src/features/rag/rac_rag_proto_abi.cpp +++ b/core/src/features/rag/rac_rag_proto_abi.cpp @@ -27,7 +27,6 @@ #include #include "../embeddings/embeddings_service_internal.h" -#include "features/llm/llm_thinking_tags_internal.h" #include "rac/core/rac_core.h" #include "rac/core/rac_error.h" #include "rac/core/rac_logger.h" @@ -46,6 +45,7 @@ #include "rag.pb.h" #include "sdk_events.pb.h" +#include "features/llm/llm_thinking_tags_internal.h" #include "foundation/rac_proto_marshal_internal.h" #include "infrastructure/events/sdk_event_publish.h" #endif