-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Allow queueing images #6414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow queueing images #6414
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -811,8 +811,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro | |
|
|
||
| const selectImages = useCallback(() => vscode.postMessage({ type: "selectImages" }), []) | ||
|
|
||
| const shouldDisableImages = | ||
| !model?.supportsImages || sendingDisabled || selectedImages.length >= MAX_IMAGES_PER_MESSAGE | ||
| const shouldDisableImages = !model?.supportsImages || selectedImages.length >= MAX_IMAGES_PER_MESSAGE | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change successfully enables image queueing when sending is disabled, which aligns with the PR title. However, could we add a comment here explaining why |
||
|
|
||
| const handleMessage = useCallback( | ||
| (e: MessageEvent) => { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The styling improvements here are good for visual consistency. However, the
color-mix()function may not be supported in older browsers. Have you considered providing a fallback color or checking browser compatibility requirements for this project?