Skip to content

Commit 212990c

Browse files
authored
Prevent Ai chats from step settings to appear in Ai Assistant (#1622)
Fixes OPS-3058. Deployed to UX ## Additional Notes
1 parent 9ac8229 commit 212990c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/react-ui/src/app/features/ai/lib/assistant-ui-chat-hook.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ export const useAssistantChat = ({
232232
toast(errorToast);
233233
},
234234
onFinish: async () => {
235+
if (chatMode !== ChatMode.Agent) {
236+
return;
237+
}
238+
235239
if (!chatId || hasAttemptedNameGenerationRef.current[chatId]) {
236240
return;
237241
}

0 commit comments

Comments
 (0)