diff --git a/ee/tabby-webserver/src/service/answer.rs b/ee/tabby-webserver/src/service/answer.rs
index 1247262d3887..ec49ae9562ce 100644
--- a/ee/tabby-webserver/src/service/answer.rs
+++ b/ee/tabby-webserver/src/service/answer.rs
@@ -740,6 +740,7 @@ mod tests {
         tabby_schema::thread::Message {
             id: id.as_id(),
             thread_id: ID::new("0"),
+            code_source_id: None,
             content: content.to_owned(),
             role,
             attachment: attachment.unwrap_or_default(),