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

@@ -9,7 +9,8 @@
import { computed, nextTick, ref, watch, type Ref } from 'vue';
import {
agentHasTaskProgress,
agentHasProgress,
agentUsesScheduleRunCounterProgress,
resolveToolRunProgressView,
type AgentRegistryFields,
} from '@/shared/utils/agent-registry.utils';
@@ -65,7 +66,7 @@ export function useChatPageToolRun(ctx: ChatPageToolRunContext) {
const toolRunProgressConfig = computed<ToolRunProgressConfig | null>(() => {
const agent = ctx.currentAgent.value;
if (!agent || !agentHasTaskProgress(agent)) return null;
if (!agent || !agentHasProgress(agent) || !agentUsesScheduleRunCounterProgress(agent)) return null;
const cfg = resolveToolRunProgressView(agent) || {};
const handlerConfig = agent.handler_config && typeof agent.handler_config === 'object'