Skip to content

Commit 64ee19c

Browse files
committed
feat(messageHandler): switch to webSearch mode if files
1 parent be74550 commit 64ee19c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/websocket/messageHandler.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ export const handleMessage = async (
108108
const parsedWSMessage = JSON.parse(message) as WSMessage;
109109
const parsedMessage = parsedWSMessage.message;
110110

111+
if (parsedWSMessage.files.length > 0) {
112+
/* TODO: Implement uploads in other classes/single meta class system*/
113+
parsedWSMessage.focusMode = 'webSearch';
114+
}
115+
111116
const humanMessageId =
112117
parsedMessage.messageId ?? crypto.randomBytes(7).toString('hex');
113118
const aiMessageId = crypto.randomBytes(7).toString('hex');

0 commit comments

Comments
 (0)