feat(schedule): 优化排程任务配置与进度契约处理逻辑

This commit is contained in:
hugo committed 2026-07-08 16:09:28 +08:00
1 parent d54f51ddc3
commit 99453aa52a
65 files changed
+2837 -487

No files matched your search

@@ -572,6 +572,7 @@ export function useChatPage() {
handleDeleteConfirm: dialogs.handleDeleteConfirm,
showChatRating,
isShippingNoticeAgent: shipping.isShippingNoticeAgent,
showShippingProgressWorkspace: shipping.showShippingProgressWorkspace,
shippingBatchSummary: shipping.shippingBatchSummary,
shippingConversationWorkspace: shipping.shippingConversationWorkspace,
activeShippingBatchNo: shipping.activeShippingBatchNo,
@@ -13,7 +13,7 @@ import {
type ComputedRef,
type Ref,
} from 'vue';
import { isShippingNoticeAgent as resolveShippingNoticeAgent } from '@/shared/utils/agent-registry.utils';
import { agentUsesWorkspaceStepperProgress, isShippingNoticeAgent as resolveShippingNoticeAgent } from '@/shared/utils/agent-registry.utils';
import type { AgentRegistryFields } from '@/shared/utils/agent-registry.utils';
import { hasActiveRunningChatRun } from '../shipping/shippingActionBusy';
@@ -168,6 +168,7 @@ export function useChatShipping(options: UseChatShippingOptions) {
// ── 功能开关与 UI refs ────────────────────────────────────
const isShippingNoticeAgent = computed(() => resolveShippingNoticeAgent(currentAgent.value));
const showShippingProgressWorkspace = computed(() => agentUsesWorkspaceStepperProgress(currentAgent.value));
const isShippingActionBusy = computed(() => {
if (shippingActionBusy.value) return true;
return hasActiveRunningChatRun(isThinking.value, activeRunId.value, runs.value);
@@ -949,6 +950,7 @@ export function useChatShipping(options: UseChatShippingOptions) {
return {
shippingBindSend,
isShippingNoticeAgent,
showShippingProgressWorkspace,
prepareMarkdownDisplayText,
shippingAutoFlowRequested,
shippingInventoryPickerRef,