Skip to content

Commit 519da2d

Browse files
juliusmarmingecodex
andcommitted
fix(mobile): Convert outbox image attachments to wire format
Co-authored-by: codex <[email protected]>
1 parent 5209b64 commit 519da2d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/mobile/src/state/use-thread-outbox-drain.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
1717

1818
import { scopedThreadKey } from "../lib/scopedEntities";
1919
import { buildProjectThreadStartTurnInput } from "../lib/projectThreadStartTurn";
20+
import { toUploadChatImageAttachments } from "../lib/composerImages";
2021
import { randomHex } from "../lib/uuid";
2122
import { appAtomRegistry } from "./atom-registry";
2223
import { useProjects, useThreadShells } from "./entities";
@@ -221,7 +222,7 @@ export function useThreadOutboxDrain(): void {
221222
messageId: queuedMessage.messageId,
222223
role: "user",
223224
text: queuedMessage.text,
224-
attachments: queuedMessage.attachments,
225+
attachments: toUploadChatImageAttachments(queuedMessage.attachments),
225226
},
226227
modelSelection: settings.modelSelection,
227228
runtimeMode: settings.runtimeMode,

0 commit comments

Comments
 (0)