Skip to content

fix(SkillFileSystemHelper): Fixed an issue where an existing skill prevented other skills from being saved.#1049

Merged
LearningGp merged 9 commits into
agentscope-ai:mainfrom
superjvjkdf:main
Apr 13, 2026
Merged

fix(SkillFileSystemHelper): Fixed an issue where an existing skill prevented other skills from being saved.#1049
LearningGp merged 9 commits into
agentscope-ai:mainfrom
superjvjkdf:main

Conversation

@superjvjkdf

@superjvjkdf superjvjkdf commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

AgentScope-Java Version

1.0.10
[The version of AgentScope-Java you are working on, e.g. 1.0.9, check your pom.xml dependency version or run mvn dependency:tree | grep agentscope-parent:pom(only mac/linux)]

Description

[Please describe the background, purpose, changes made, and how to test this PR]
当技能目录已存在且强制覆盖标志为false时,现在将跳过该技能而不是返回失败状态。这样可以保存后续技能而不会因为单个技能的存在而导致其他技能无法保存。

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

当技能目录已存在且强制覆盖标志为false时,现在将跳过该技能而不是返回失败状态。这样可以允许批量处理多个技能而不会因为单个技能的存在而导致整个流程中断。
@superjvjkdf superjvjkdf requested a review from a team March 26, 2026 08:06
@cla-assistant

cla-assistant Bot commented Mar 26, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@cla-assistant

cla-assistant Bot commented Mar 26, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov

codecov Bot commented Mar 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@fang-tech

Copy link
Copy Markdown
Collaborator

LGTM🚀

@fang-tech

Copy link
Copy Markdown
Collaborator

plz add a test to verify whether there has been no coverage at all.Add a test to verify whether overwriting does not occur when force is set to false.

@superjvjkdf

Copy link
Copy Markdown
Contributor Author

I have already added tests to ensure new skills can be saved and existing skills will not be modified.

@fang-tech fang-tech left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, plz change your pr title to English

@superjvjkdf superjvjkdf changed the title fix(SkillFileSystemHelper): fix单个技能存在则不保存其他技能 fix(SkillFileSystemHelper): Fixed an issue where an existing skill prevented other skills from being saved. Mar 31, 2026
@superjvjkdf

Copy link
Copy Markdown
Contributor Author

done

@LearningGp LearningGp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LearningGp LearningGp merged commit 6a6d12c into agentscope-ai:main Apr 13, 2026
5 checks passed
liangxingguang pushed a commit to liangxingguang/agentscope-java that referenced this pull request May 21, 2026
…evented other skills from being saved. (agentscope-ai#1049)

## AgentScope-Java Version
1.0.10
[The version of AgentScope-Java you are working on, e.g. 1.0.9, check
your pom.xml dependency version or run `mvn dependency:tree | grep
agentscope-parent:pom`(only mac/linux)]

## Description

[Please describe the background, purpose, changes made, and how to test
this PR]

当技能目录已存在且强制覆盖标志为false时,现在将跳过该技能而不是返回失败状态。这样可以保存后续技能而不会因为单个技能的存在而导致其他技能无法保存。
## Checklist

Please check the following items before code is ready to be reviewed.

- [x]  Code has been formatted with `mvn spotless:apply`
- [x]  All tests are passing (`mvn test`)
- [ ]  Javadoc comments are complete and follow project conventions
- [ ] Related documentation has been updated (e.g. links, examples,
etc.)
- [x]  Code is ready for review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants