Conversation
Preview sandbox Image: |
Preview mcp_server Image: |
There was a problem hiding this comment.
Pull request overview
This PR aims to improve workflow dispatch runtime behavior by replacing recursive queue processing with an iterative loop, alongside a few logging/schema tweaks that support debugging and runtime visibility.
Changes:
- Refactor workflow queue execution from recursive
processActiveNodeto an iterativestartProcessingloop with aprocessingActiveguard. - Adjust logging: remove per-node debug log, add a workflow-run start info log, and increase console pretty-logger object inspection depth.
- Broaden JSON Schema
enumparsing to accept non-string values.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| projects/app/package.json | Bumps app version. |
| packages/service/core/workflow/dispatch/index.ts | Replaces recursive queue processing with an iterative loop; adjusts skip-node handling and workflow start logging. |
| packages/service/common/logger/sinks.ts | Increases console pretty formatter inspection depth for nested objects. |
| packages/global/core/app/jsonschema.ts | Widens JSON Schema enum type from string[] to any[]. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Preview fastgpt Image: |
c121914yu
left a comment
There was a problem hiding this comment.
📊 代码审查总结
详细的审查意见请查看下方的行级评论。
|
|
||
| // 枚举和常量 | ||
| enum: z.array(z.string()).optional(), // 枚举值 | ||
| enum: z.array(z.any()).optional(), // 枚举值 |
There was a problem hiding this comment.
🟡 类型放宽: z.array(z.string()) → z.array(z.any()) 虽然修复了 enum 值不限于 string 的问题(JSON Schema 的 enum 确实支持任意类型),但 z.any() 完全绕过了运行时校验。
建议使用更精确的联合类型:
enum: z.array(z.union([z.string(), z.number(), z.boolean(), z.null()])).optional(),
PR Review: perf: workflow runtime📊 变更概览
📁 变更分类
✅ 优点
|
c121914yu
left a comment
There was a problem hiding this comment.
📊 第二轮代码审查
相比上一轮,大部分问题已修复。详细意见见行级评论。
PR Review 第二轮: perf: workflow runtime📊 变更概览
✅ 上轮问题修复情况
|
No description provided.