Merge branch 'dev' into hugo-shipping-notice

This commit is contained in:
hugo committed 2026-07-09 13:21:10 +08:00
commit 0d68048b8e
16 files changed
+420 -384

No files matched your search

@@ -371,26 +371,10 @@ export function useChatPage() {
t,
});
const pushLocalUserMessage = async (content: string) => {
const msgText = String(content || '').trim();
if (!msgText) return;
const userMsg: ChatMessage = {
role: 'user',
type: 'text',
content: msgText,
local_id: newLocalMessageId('local-user'),
local_only: true,
};
messages.value.push(userMsg);
await saveLocalMessageToBackend(userMsg);
};
const training = useTrainingWorkspace({
currentAgent: computed(() => agent.currentAgent.value),
currentUser: computed(() => currentUser.value),
currentGuides: computed(() => chatGuides.guides.value),
pushLocalAssistantMessage,
pushLocalUserMessage,
});
const markdown = createChatPageMarkdownApi({