Skip to content

Commit e102d64

Browse files
committed
feat: allow empty messages when images are attached
1 parent 3482040 commit e102d64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/src/commands/router.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ export async function routeUserPrompt(
4444

4545
const inputMode = useChatStore.getState().inputMode
4646
const setInputMode = useChatStore.getState().setInputMode
47+
const pendingImages = useChatStore.getState().pendingImages
4748

4849
const trimmed = inputValue.trim()
49-
if (!trimmed) return
50+
// Allow empty messages if there are pending images attached
51+
if (!trimmed && pendingImages.length === 0) return
5052

5153
// Handle bash mode commands
5254
if (inputMode === 'bash') {

0 commit comments

Comments
 (0)