authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-28 23:05:58-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-03-01 20:06:21-08:00
log215ff36362d58de433df1e768629176e91d8ce33
tree7dda0005de0d6410a23139ae0a4825a86f58b166
parent505b4d0bc3581b2bf1eb82db1d3768e15c0fe526

nit


2 files changed, 7 insertions(+), 18 deletions(-)

apps/server/src/projectFaviconRoute.ts-1
......@@ -1,7 +1,6 @@
11import fs from "node:fs";
22import http from "node:http";
33import path from "node:path";
4export { IMAGE_EXTENSION_BY_MIME_TYPE, SAFE_IMAGE_FILE_EXTENSIONS } from "./imageMime.ts";
54
65export const ATTACHMENTS_ROUTE_PREFIX = "/attachments";
76
apps/web/src/components/ChatView.tsx+7-17
......@@ -1486,23 +1486,13 @@ export default function ChatView({ threadId }: ChatViewProps) {
14861486 const messageIdForSend = newMessageId();
14871487 const messageCreatedAt = new Date().toISOString();
14881488 const turnAttachmentsPromise = Promise.all(
1489 composerImagesSnapshot.map(
1490 async (
1491 image,
1492 ): Promise<{
1493 type: "image";
1494 name: string;
1495 mimeType: string;
1496 sizeBytes: number;
1497 dataUrl: string;
1498 }> => ({
1499 type: "image",
1500 name: image.name,
1501 mimeType: image.mimeType,
1502 sizeBytes: image.sizeBytes,
1503 dataUrl: await readFileAsDataUrl(image.file),
1504 }),
1505 ),
1489 composerImagesSnapshot.map(async (image) => ({
1490 type: "image" as const,
1491 name: image.name,
1492 mimeType: image.mimeType,
1493 sizeBytes: image.sizeBytes,
1494 dataUrl: await readFileAsDataUrl(image.file),
1495 })),
15061496 );
15071497 const optimisticAttachments = composerImagesSnapshot.map((image) => ({
15081498 type: "image" as const,