Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/skill-validator/src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function buildSessionConfig(
model: string,
workDir: string
): SessionConfig {
const skillPath = skill ? dirname(skill.path) : undefined;
const skillPath = skill ? skill.path : undefined;
return {
model,
streaming: true,
Expand Down
4 changes: 2 additions & 2 deletions eng/skill-validator/tests/runner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ describe("buildSessionConfig", () => {
evalConfig: null,
};

it("sets skillDirectories to parent of skill path", () => {
it("sets skillDirectories to the skill path itself", () => {
const config = buildSessionConfig(mockSkill, "gpt-4.1", "/tmp/work");
expect(config.skillDirectories).toEqual(["/home/user/skills"]);
expect(config.skillDirectories).toEqual(["/home/user/skills/test-skill"]);
});

it("sets workingDirectory to the workDir", () => {
Expand Down
Loading