Repository navigation
Conversation
Panel saves now send mode and auto_renew for per-slot PUT, sync, and global default template round-trip; sync-all copies mode through normalizeSyncTest. Co-authored-by: ted <kuhlmangarry24@gmail.com>
Contributor
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 0800aac7-04e4-4eb0-810f-fd4e628c2094) |
Extract explicit mode fields before schedule normalization and apply them on ids and full sync; align default-template validation with single-slot 400. Co-authored-by: ted <kuhlmangarry24@gmail.com>
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.
Summary
修复 #1874 分项 4:面板「定时测试」表单可配置
mode/auto_renew。本次在审查反馈后修复 同步路径 丢弃模式字段的问题。前端(首提交,未改)
test|preheat,自动续热仅 preheat 可选。test+ 未勾选。后端(本轮)
explicitScheduleModeFields():在normalizeScheduleStructure压缩之前从原始schedule/test取显式mode/auto_renew。scope=ids:applyScheduleStructure(..., { modeSource: schedule })写入显式字段;未提供则mergeVmTestSchedulePreserve保留原值。scope=all:normalizeSyncTest校验后把规范化后的mode/auto_renew经_applyFullTest写入各槽。mode=test+auto_renew=true改为与单槽 PUT 一致的 400(去掉本 PR 引入的静默改写)。docs/PANEL_API.md中 test-schedule / sync 说明。sync-all 与异类槽(Claude ↔ Codex)
与 开关、时间结构 相同:
mode/auto_renew会复制到所有目标槽;异类槽仍保留各自的模型与 Prompt(已有_applyFullTest行为)。理由:续热是槽级调度策略,不应因槽类型而不同步。Release notes(≥ 1.4.237;1.4.236 已发布)
Test plan
覆盖审查五类同步场景(见
test/unit/vm-test-schedule.test.mjs「sync scope=…」用例)。本地未跑完整 tip CI(先前 path-filtered 短跑不足以代表全量 CI)。未做真实面板点击回归(Cloud Agent 无已登录面板环境);以上 node 测试代替。
Refs #1874
Note
Medium Risk
Changes scheduled job behavior and bulk sync semantics for operator-configured credentials usage (preheat/auto-renew), though scope is limited to the test-schedule admin path with added unit coverage.
Reviewed by Cursor Bugbot for commit 12207a2. Configure here.