fix: expand details ui settings
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user