fix: 修复 description 只在创建时写入、后续 publish 不更新的 bug#15
Merged
ginuim merged 1 commit intoJul 20, 2026
Conversation
publishSkillFromZip only wrote description when creating a new skill. On subsequent publishes, the description sent by the CLI was silently dropped — only the version record got it, while skills.description stayed stale. Now calls SkillModel.update() for existing skills when description is provided, keeping the skills table description in sync with the latest publish.
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.
问题
publishSkillFromZip()只在新建 skill 时(!skillExists分支)调用SkillModel.create()写入description。当 skill已存在时,CLI 发送的
description字段被忽略,只进了versions表,skills.description始终保持初始值。修复
在
skillExists为 true 且description非空时,调用SkillModel.update()刷新skills.description。改动 ────────────────────────
src/utils/publish-skill.js — 加 3 行 ────────────────────────
复现
skb publishGET /api/v1/skills/<id>→ description 仍为 "5 步检查"