fix(coding-agent): clarify pi docs path resolution closes #4752

This commit is contained in:
Mario Zechner
2026-05-19 18:01:10 +02:00
parent b944827623
commit 48b6510c18
3 changed files with 14 additions and 0 deletions

View File

@@ -45,6 +45,18 @@ describe("buildSystemPrompt", () => {
expect(prompt).toContain("- edit:");
expect(prompt).toContain("- write:");
});
test("instructs models to resolve pi docs and examples under absolute base paths", () => {
const prompt = buildSystemPrompt({
contextFiles: [],
skills: [],
cwd: process.cwd(),
});
expect(prompt).toContain(
"- When reading pi docs or examples, resolve docs/... under Additional docs and examples/... under Examples, not the current working directory",
);
});
});
describe("custom tool snippets", () => {