Commit 27c9cd0
authored
🤖 fix: enable image paste/drop for first prompt (#817)
The paste/drop handlers and ImageAttachments display were only wired up
for the workspace variant, preventing users from pasting images in the
first prompt (creation variant).
## Changes
- Enable `onPaste`, `onDragOver`, `onDrop` handlers for both variants
- Show `ImageAttachments` component for both variants
- Update `useCreationWorkspace` to accept and pass `imageParts` to
`sendMessage`
- Clear image attachments on successful workspace creation
_Generated with `mux`_1 parent 19b5492 commit 27c9cd0
File tree
2 files changed
+14
-10
lines changed- src/browser/components/ChatInput
2 files changed
+14
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
567 | 570 | | |
568 | 571 | | |
| 572 | + | |
569 | 573 | | |
570 | 574 | | |
571 | 575 | | |
| |||
882 | 886 | | |
883 | 887 | | |
884 | 888 | | |
885 | | - | |
886 | | - | |
887 | | - | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
888 | 892 | | |
889 | 893 | | |
890 | 894 | | |
| |||
897 | 901 | | |
898 | 902 | | |
899 | 903 | | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
| 904 | + | |
| 905 | + | |
904 | 906 | | |
905 | 907 | | |
906 | 908 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| |||
0 commit comments