Merge branch 'dev' into hugo-shipping-notice

# Conflicts:
#	.env.dev
#	.env.test
#	backend/app/api/__init__.py
#	docs/funclist.md
#	frontend/src/features/chat/composables/useChatPage.ts
This commit is contained in:
hugo committed 2026-07-06 08:35:40 +08:00
commit f72c1c9f0e
101 files changed
+11163 -334

No files matched your search

@@ -25,8 +25,10 @@ import { useChatScroll } from './useChatScroll';
import { useChatSessions } from './useChatSessions';
import { useChatShipping } from './useChatShipping';
import { useChatSourceFiles } from './useChatSourceFiles';
import { useChatAssetHistory } from './useChatAssetHistory';
import { useChatStore } from '../stores/chat.store';
import { useTrainingWorkspace, matchesTrainingAgent } from './useTrainingWorkspace';
import { useTrainingWorkspace } from './useTrainingWorkspace';
import { matchesTrainingAgent } from '../training/trainingWorkspace.utils';
import { hasActiveRunningChatRun } from '../shipping/shippingActionBusy';
import {
createChatPageConversationApi,
@@ -106,6 +108,7 @@ export function useChatPage() {
messages,
isThinking,
conversationId,
viewId,
runs,
activeRunId,
activateRun,
@@ -164,6 +167,11 @@ export function useChatPage() {
openPreview,
parsePlmPreviewLink,
} = sourceFiles;
const assetHistory = useChatAssetHistory({
agentId: currentAgentId,
openPreview,
warn: (text) => msg.warning(text),
});
watch(currentAgentId, (id) => {
chatStore.setCurrentAgentId(id > 0 ? id : null);
@@ -342,6 +350,7 @@ export function useChatPage() {
const training = useTrainingWorkspace({
currentAgent: computed(() => agent.currentAgent.value),
currentUser: computed(() => currentUser.value),
currentGuides: computed(() => chatGuides.guides.value),
pushLocalAssistantMessage,
pushLocalUserMessage,
});
@@ -353,6 +362,7 @@ export function useChatPage() {
handleLeaveMarkdownClick: leave.handleLeaveMarkdownClick,
parsePlmPreviewLink,
openPreview,
openAssetHistory: assetHistory.openHistory,
getMessageLinks,
getDisplayRetrieverResources,
getSourceLinks,
@@ -479,6 +489,7 @@ export function useChatPage() {
isThinking,
shippingActionBusy,
conversationId,
viewId,
input,
browser,
queryPreview,
@@ -492,6 +503,7 @@ export function useChatPage() {
queryPreviewLoading: queryPreview.loading,
queryPreviewError: queryPreview.error,
queryPreviewState: queryPreview.state,
assetHistory,
...agent,
agentGuides: chatGuides.guides,
showGuideModal: chatGuides.showModal,