Add web multimodal image attachments

This commit is contained in:
Yichen Jiang
2026-07-23 15:20:47 +08:00
parent 3e3ea47296
commit cb4c11b869
116 changed files with 3177 additions and 151 deletions

View File

@@ -121,6 +121,9 @@ describe('ConversationRoot', () => {
subscribe: () => () => {},
version: () => 1,
}}
addImages={vi.fn()}
removeImage={vi.fn()}
draftImages={() => []}
send={send}
stop={stop}
openDetails={openDetails}
@@ -183,7 +186,7 @@ describe('ConversationRoot', () => {
// Typing goes through actions.setDraft into the shared store.
expect(chat.store.getSnapshot().draft).toBe('hi')
fireEvent.keyDown(box, { key: 'Enter' })
expect(send).toHaveBeenCalledWith('hi', 'queue')
expect(send).toHaveBeenCalledWith('hi', [], 'queue')
})
})