diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index 598358ae..92c4f1fc 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -1395,13 +1395,20 @@ void TracyLlm::AppendResponse( const char* name, const nlohmann::json& delta ) { assert( back[name].is_string() ); back[name].get_ref().append( str ); + m_usedCtx++; } else { - back[name] = std::move( str ); + for( auto c : str ) + { + if( c != '\n' ) + { + back[name] = std::move( str ); + m_usedCtx++; + break; + } + } } - - m_usedCtx++; } else if( json.is_array() ) {