Skip to content

fix(skill): skill fileSystem base repo source should not contain :#896

Merged
LearningGp merged 1 commit into
agentscope-ai:mainfrom
fang-tech:fix/skill/repo-filesysRepo-source-fault-in-windows
Mar 11, 2026
Merged

fix(skill): skill fileSystem base repo source should not contain :#896
LearningGp merged 1 commit into
agentscope-ai:mainfrom
fang-tech:fix/skill/repo-filesysRepo-source-fault-in-windows

Conversation

@fang-tech
Copy link
Copy Markdown
Collaborator

AgentScope-Java Version

[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

close #842

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes Windows InvalidPathException when skill IDs are used as directory names by removing : from the default source strings produced by skill repositories.

Changes:

  • Change default source formats from filesystem:* / classpath:* to filesystem-* / classpath-*.
  • Update repository unit tests to assert the new default source formats.
  • Expand FileSystemSkillRepositoryTest with save-related tests, including a check that the computed source contains no colon.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
agentscope-core/src/main/java/io/agentscope/core/skill/repository/FileSystemSkillRepository.java Changes default getSource() prefix to avoid : in generated skill IDs on Windows.
agentscope-core/src/main/java/io/agentscope/core/skill/repository/ClasspathSkillRepository.java Changes default source generation to use classpath- instead of classpath:.
agentscope-core/src/test/java/io/agentscope/core/skill/repository/FileSystemSkillRepositoryTest.java Updates source assertions and adds save/overwrite/resources tests plus a “no colon” assertion.
agentscope-core/src/test/java/io/agentscope/core/skill/repository/ClasspathSkillRepositoryTest.java Updates default source expectations to the new classpath-* format.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 9, 2026

Codecov Report

❌ Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ore/skill/repository/ClasspathSkillRepository.java 25.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@fang-tech fang-tech changed the title fix: skill fileSystem base repo source should not contain : fix(skill): skill fileSystem base repo source should not contain : Mar 11, 2026
@LearningGp
Copy link
Copy Markdown
Collaborator

image

Copy link
Copy Markdown
Collaborator

@LearningGp LearningGp left a comment

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 ba78729 into agentscope-ai:main Mar 11, 2026
8 of 10 checks passed
liangxingguang pushed a commit to liangxingguang/agentscope-java that referenced this pull request May 21, 2026
…gentscope-ai#896)

## AgentScope-Java Version

[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

close agentscope-ai#842 

## 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`)
- [x]  Javadoc comments are complete and follow project conventions
- [x] 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.

[Bug]: InvalidPathException when using default FileSystemSkillRepository on Windows due to illegal character :

3 participants