fix: expand details ui settings

This commit is contained in:
Timothy Jaeryang Baek
2026-04-01 05:08:28 -05:00
parent 7c52382c90
commit 7bfd9ac8ac
2 changed files with 3 additions and 3 deletions
@@ -31,7 +31,7 @@
export let messageDone = true; export let messageDone = true;
let open = false; let open = $settings?.expandDetails ?? false;
function parseJSONString(str: string) { function parseJSONString(str: string) {
try { try {
@@ -381,7 +381,7 @@
id={`${id}-${tokenIdx}-${detailIdx}-tc`} id={`${id}-${tokenIdx}-${detailIdx}-tc`}
attributes={detailToken.attributes} attributes={detailToken.attributes}
grouped={true} grouped={true}
open={false} open={$settings?.expandDetails ?? false}
className="w-full space-y-1" className="w-full space-y-1"
/> />
{:else if textContent.length > 0} {:else if textContent.length > 0}
@@ -428,7 +428,7 @@
<ToolCallDisplay <ToolCallDisplay
id={`${id}-${tokenIdx}-tc`} id={`${id}-${tokenIdx}-tc`}
attributes={token.attributes} attributes={token.attributes}
open={false} open={$settings?.expandDetails ?? false}
className="w-full space-y-1" className="w-full space-y-1"
/> />
{:else if textContent.length > 0} {:else if textContent.length > 0}