From 21e81434b38bf9d6eb82dddfc988b96e5f374ac0 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Wed, 19 Aug 2026 14:05:44 +0000 Subject: [PATCH] fix(llama-cpp): stage model load diagnostics The generated gRPC source tree omitted the new header and test. Every llama.cpp-derived backend therefore failed when grpc-server.cpp included the missing header. Assisted-by: Codex:gpt-5.6 [systematic-debugging] Signed-off-by: Ettore Di Giacinto --- backend/cpp/llama-cpp/prepare.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/cpp/llama-cpp/prepare.sh b/backend/cpp/llama-cpp/prepare.sh index c76d15bb7..308379cd2 100644 --- a/backend/cpp/llama-cpp/prepare.sh +++ b/backend/cpp/llama-cpp/prepare.sh @@ -45,6 +45,10 @@ done cp -r CMakeLists.txt llama.cpp/tools/grpc-server/ cp -r grpc-server.cpp llama.cpp/tools/grpc-server/ +# Model-load diagnostics (included by grpc-server.cpp) and their standalone +# regression test. +cp -r model_load_error.h llama.cpp/tools/grpc-server/ +cp -r model_load_error_test.cpp llama.cpp/tools/grpc-server/ # Shared message-reconstruction helpers (included by grpc-server.cpp) and their # unit test (compiled only when -DLLAMA_GRPC_BUILD_TESTS=ON). cp -r message_content.h llama.cpp/tools/grpc-server/