+ {files.map((f) =>
+ f.contentType.startsWith("video/") ? (
+
+ ) : (
+

+ ),
+ )}
+
+ );
+}
diff --git a/packages/agent-chat/src/gateway.ts b/packages/agent-chat/src/gateway.ts
index 950ea64..666425c 100644
--- a/packages/agent-chat/src/gateway.ts
+++ b/packages/agent-chat/src/gateway.ts
@@ -1,4 +1,5 @@
import type { ChatMessage, ChatParticipant, ChatSummary, ThreadSummary } from "./types";
+import { normalizeChatMessage } from "./mailbox";
export class ChatGatewayError extends Error {
constructor(
@@ -1107,8 +1108,12 @@ export function createGatewayClient(
`/api/chat/agent-create-jobs/${encodeURIComponent(jobId)}/retry-bind`,
{ method: "POST", body: "{}" },
),
- listMessages: (chatId) =>
- request