fix: keep private-skill summary update behaviour unchanged

Signed-off-by: 千乘妍 (Xiaoyaner) <xiaoyaner0201@users.noreply.github.com>
This commit is contained in:
千乘妍 (Xiaoyaner) 2026-10-31 00:46:59 +08:00
parent 7e50acace7
commit eedea88db3

View file

@ -956,7 +956,7 @@ public class SkillPublishService {
// 12. Update skill metadata and move the published pointer for auto-publish flows
// A pending update must not replace the currently published title or summary.
if (autoPublish || newSkill || (visibility != SkillVisibility.PRIVATE && skill.getLatestVersionId() == null)) {
if (autoPublish || visibility == SkillVisibility.PRIVATE || skill.getLatestVersionId() == null) {
skill.setDisplayName(metadata.displayName());
skill.setSummary(metadata.shortDescription());
}