diff --git a/app/MindWork AI Studio/Chat/ContentBlock.cs b/app/MindWork AI Studio/Chat/ContentBlock.cs index 841cad69..4f281df4 100644 --- a/app/MindWork AI Studio/Chat/ContentBlock.cs +++ b/app/MindWork AI Studio/Chat/ContentBlock.cs @@ -28,14 +28,14 @@ public class ContentBlock /// /// Should the content block be hidden from the user? /// - public bool HideFromUser { get; set; } + public bool HideFromUser { get; init; } - public ContentBlock DeepClone() => new() + public ContentBlock DeepClone(bool changeHideState = false, bool hideFromUser = true) => new() { Time = this.Time, ContentType = this.ContentType, Content = this.Content?.DeepClone(), Role = this.Role, - HideFromUser = this.HideFromUser, + HideFromUser = changeHideState ? hideFromUser : this.HideFromUser, }; } \ No newline at end of file