add images to both VFS and API, update ChatPane UI

This commit is contained in:
lemonknowsall committed 2025-11-15 20:43:35 -08:00
1 parent 42637458c9
commit 653a7c0f0c
8 files changed
+339 -54

No files matched your search

+5 -2
View File
@@ -16,8 +16,11 @@ describe('UserMessage', () => {
render(<UserMessage content={content} />);
// When using string content, it should still work but won't separate file attachments
expect(screen.getByText(content)).toBeInTheDocument();
// When using string content, it should parse and separate file attachments
expect(screen.getByText('Here is my file:')).toBeInTheDocument();
expect(screen.getByText('test.txt')).toBeInTheDocument();
// Full path should not be displayed
expect(screen.queryByText('/tmp/test.txt')).not.toBeInTheDocument();
});
it('renders file attachment badges for single file with text parts', () => {