Skip to content

Commit 3a17b2c

Browse files
committed
feat: Thought process setting
1 parent de7add3 commit 3a17b2c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/server/webui/src/lib/components/app/chat/ChatMessages/ChatMessageThinkingBlock.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import { buttonVariants } from '$lib/components/ui/button/index.js';
66
import { Card } from '$lib/components/ui/card';
77
import { MarkdownContent } from '$lib/components/app';
8+
import { config } from '$lib/stores/settings.svelte';
89
910
interface Props {
1011
reasoningContent: string | null;
@@ -15,11 +16,12 @@
1516
1617
let { reasoningContent, isStreaming = false, hasRegularContent = false, class: className = '' }: Props = $props();
1718
18-
let isExpanded = $state(true);
19+
const currentConfig = config();
20+
21+
let isExpanded = $state(currentConfig.showThoughtInProgress);
1922
20-
// Auto-collapse when regular content starts (even while streaming)
2123
$effect(() => {
22-
if (hasRegularContent && reasoningContent) {
24+
if (hasRegularContent && reasoningContent && currentConfig.showThoughtInProgress) {
2325
isExpanded = false;
2426
}
2527
});

0 commit comments

Comments
 (0)