(
-
-
+
+
{code}
>
@@ -221,7 +233,10 @@ const defaultComponents: any = {
}
return (
-
+
{children}
);
diff --git a/src/components/thread/messages/ai.tsx b/src/components/thread/messages/ai.tsx
index 785978b..aeeb0ea 100644
--- a/src/components/thread/messages/ai.tsx
+++ b/src/components/thread/messages/ai.tsx
@@ -113,7 +113,7 @@ export function AssistantMessage({
}
return (
-
+
{isToolResult ? (
) : (
@@ -136,7 +136,12 @@ export function AssistantMessage({
>
)}
- {message &&
}
+ {message && (
+
+ )}
{isAgentInboxInterruptSchema(threadInterrupt?.value) &&
(isLastMessage || hasNoAIOrToolMessages) && (
@@ -148,7 +153,7 @@ export function AssistantMessage({
) : null}
@@ -173,11 +178,11 @@ export function AssistantMessage({
export function AssistantMessageLoading() {
return (
-
-
-
-
-
+
);
diff --git a/src/components/thread/messages/generic-interrupt.tsx b/src/components/thread/messages/generic-interrupt.tsx
index c4f069f..7eb83eb 100644
--- a/src/components/thread/messages/generic-interrupt.tsx
+++ b/src/components/thread/messages/generic-interrupt.tsx
@@ -55,9 +55,9 @@ export function GenericInterruptView({
const displayEntries = processEntries();
return (
-
-
-
+
+
@@ -68,7 +68,10 @@ export function GenericInterruptView({
transition={{ duration: 0.3 }}
>
-
+
-
+ |
{key}
|
{isComplexValue(value) ? (
-
+
{JSON.stringify(value, null, 2)}
) : (
@@ -112,7 +115,7 @@ export function GenericInterruptView({
(Array.isArray(interrupt) && interrupt.length > 5)) && (
setIsExpanded(!isExpanded)}
- className="w-full py-2 flex items-center justify-center border-t-[1px] border-gray-200 text-gray-500 hover:text-gray-600 hover:bg-gray-50 transition-all ease-in-out duration-200 cursor-pointer"
+ className="flex w-full cursor-pointer items-center justify-center border-t-[1px] border-gray-200 py-2 text-gray-500 transition-all duration-200 ease-in-out hover:bg-gray-50 hover:text-gray-600"
initial={{ scale: 1 }}
whileHover={{ scale: 1.02 }}
whileTap={{ scale: 0.98 }}
diff --git a/src/components/thread/messages/human.tsx b/src/components/thread/messages/human.tsx
index ac6974b..77d9e25 100644
--- a/src/components/thread/messages/human.tsx
+++ b/src/components/thread/messages/human.tsx
@@ -72,7 +72,7 @@ export function HumanMessage({
return (
@@ -84,14 +84,14 @@ export function HumanMessage({
onSubmit={handleSubmitEdit}
/>
) : (
-
+
{contentString}
)}
-
+
{copied ? (
-
+
{isAiMessage && !!handleRegenerate && (
+
{toolCalls.map((tc, idx) => {
const args = tc.args as Record ;
const hasArgs = Object.keys(args).length > 0;
return (
-
+
{tc.name}
{tc.id && (
-
+
{tc.id}
)}
@@ -39,12 +39,12 @@ export function ToolCalls({
{Object.entries(args).map(([key, value], argIdx) => (
- |
+ |
{key}
|
{isComplexValue(value) ? (
-
+
{JSON.stringify(value, null, 2)}
) : (
@@ -56,7 +56,7 @@ export function ToolCalls({
|
|
) : (
-