Fix Agent Chat not working (#16688)

Follow on this PR: #15484 it break the Agent chat
This commit is contained in:
Wang Qi
2026-07-07 12:10:52 +08:00
committed by GitHub
parent 318045dda5
commit a0bda639e0

View File

@@ -300,7 +300,10 @@ export const useSendAgentMessage = ({
beginInputs?: BeginQuery[];
exploreSessionId?: string;
}) => {
const params: Record<string, unknown> = { agent_id: agentId };
const params: Record<string, unknown> = {
agent_id: agentId,
stream: true,
};
params.running_hint_text = i18n.t('flow.runningHintText', {
defaultValue: 'is running...🕞',
@@ -375,6 +378,7 @@ export const useSendAgentMessage = ({
await send({
...body,
...(isShared ? {} : { agent_id: agentId }),
stream: true,
session_id: sessionId,
...(releaseMode ? { release: releaseMode } : {}),
});