fix(agent): 修复自动任务参数桥接【已审核 PR】 - #1741
Merged
ErlichLiu merged 2 commits intoAug 19, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
修复 Agent 创建和更新 Proma 自动任务时,工具传输层补齐无关调度字段导致后端拒绝请求的问题。同时兼容部分运行时把省略的
maxRuns解码为0的情况,确保其仍按“不限次数”处理。改动
apps/electron/src/main/lib/adapters/automation-tool-schema.ts— 集中维护自动任务创建 schema,并按调度类型清理不适用字段。apps/electron/src/main/lib/adapters/pi-builtin-tools.ts— 在 Agent 创建/更新任务进入严格校验前应用字段规范化,兼容maxRuns: 0。apps/electron/package.json— 将 Electron patch 版本从0.17.42升至0.17.43。测试方法
bun run --filter="@proma/electron" typecheckbun run --filter="@proma/electron" build:mainmaxRuns: 0会规范为null。备注
Made with Proma · GitHub