We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e102d64 commit d5bdd3cCopy full SHA for d5bdd3c
cli/src/hooks/use-send-message.ts
@@ -1027,10 +1027,13 @@ export const useSendMessage = ({
1027
1028
let runState: RunState
1029
try {
1030
+ // Use a default prompt when only images are attached
1031
+ const effectivePrompt = content || (messageContent ? 'See attached image(s)' : '')
1032
+
1033
runState = await client.run({
1034
logger,
1035
agent: selectedAgentDefinition ?? agentId ?? fallbackAgent,
- prompt: content,
1036
+ prompt: effectivePrompt,
1037
content: messageContent,
1038
previousRun: previousRunStateRef.current ?? undefined,
1039
abortController,
0 commit comments