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

@@ -133,6 +133,19 @@ def test_validate_omitted_handler_config_preserves_existing(app):
assert normalized['handler_config']['intent_routes'] == ['text2sql']
def test_validate_shipping_notice_clears_bound_schedule_task_id():
normalized = validate_agent_payload({
'name': 'Shipping Bot',
'agent_code': 'shipping_notice',
'runtime_provider': 'hybrid',
'conversation_mode': 'task_chat',
'dify_app_id': 'app-ship',
'bound_schedule_task_id': 42,
'capabilities': {'task_progress': True},
})
assert normalized['bound_schedule_task_id'] is None
def test_strip_migrated_extra_registry_keys_preserves_training(app):
with app.app_context():
agent = Agent(