Browse Source

refac: tool call result display

Timothy Jaeryang Baek 3 months ago
parent
commit
b97ea72616
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/components/common/Collapsible.svelte

+ 1 - 1
src/lib/components/common/Collapsible.svelte

@@ -73,7 +73,7 @@
 				return JSON.stringify(parsed, null, 2);
 			} else {
 				// It's a primitive value like a number, boolean, etc.
-				return String(parsed);
+				return `${JSON.stringify(String(parsed))}`;
 			}
 		} catch (e) {
 			// Not valid JSON, return as-is