ai chat: fix message not fade in until the end when there's code blocks

This commit is contained in:
end-4
2025-10-12 14:17:54 +02:00
parent 3f59e2078a
commit aa1fcd7eb9
2 changed files with 4 additions and 1 deletions
@@ -271,6 +271,8 @@ Rectangle {
property bool thinking: root.messageData?.thinking ?? true
property bool done: root.messageData?.done ?? false
property bool completed: thisBlock.completed ?? false
property bool forceDisableChunkSplitting: root.messageData.content.includes("```")
source: thisBlock.type === "code" ? "MessageCodeBlock.qml" :
thisBlock.type === "think" ? "MessageThinkBlock.qml" :
@@ -24,7 +24,8 @@ ColumnLayout {
property string renderedSegmentContent: ""
property string shownText: ""
property bool fadeChunkSplitting: !editing && !/\n\|/.test(shownText) && Config.options.sidebar.ai.textFadeIn
property bool forceDisableChunkSplitting: parent?.forceDisableChunkSplitting ?? false
property bool fadeChunkSplitting: !forceDisableChunkSplitting && !editing && !/\n\|/.test(shownText) && Config.options.sidebar.ai.textFadeIn
Layout.fillWidth: true