fix: ReferenceError sessionId is not defined

main
sp mac bookpro 2605 2026-06-08 00:53:50 +08:00
parent 8a85c675ef
commit 345a055d1a
1 changed files with 2 additions and 2 deletions

View File

@ -120,8 +120,8 @@ export function useChatSender(args: {
const handleSendStream = async (text: string) => {
if (!agentId) return;
if (!sessionId) {
notify.error('会话未初始化,请稍后重试');
if (!roomId) {
notify.error('房间未初始化,请稍后重试');
return;
}
// 解析 @提及的目标 Agent