Tests: isolate workspace skill prompt fixtures from bundled skills#32577
Tests: isolate workspace skill prompt fixtures from bundled skills#32577zwright8 wants to merge 1 commit intoopenclaw:mainfrom
Conversation
Greptile SummaryThis PR tightens test isolation by threading an explicit
Confidence Score: 4/5
Last reviewed commit: cf8757c |
Additional Comments (2)
Prompt To Fix With AIThis is a comment left during a code review.
Path: src/agents/skills.build-workspace-skills-prompt.syncs-merged-skills-into-target-workspace.test.ts
Line: 93-96
Comment:
**Redundant explicit dirs now that `buildPrompt` defaults them**
`buildPrompt`'s `workspaceDir` argument here is `targetWorkspace`, so the newly-added defaults in the helper already resolve to `path.join(targetWorkspace, ".managed")` and `path.join(targetWorkspace, ".bundled")`. Passing those same values explicitly via `opts` is now a no-op and can be dropped to keep call-sites consistent with how the other tests use `buildPrompt`.
```suggestion
const prompt = buildPrompt(targetWorkspace);
```
How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix With AIThis is a comment left during a code review.
Path: src/agents/skills.build-workspace-skills-prompt.syncs-merged-skills-into-target-workspace.test.ts
Line: 178-182
Comment:
**Redundant `managedSkillsDir` after helper update**
`buildPrompt` now defaults `managedSkillsDir` to `path.join(workspaceDir, ".managed")`, so passing that same value explicitly is redundant. The same pattern appears at lines 185, 207, and 213 as well. Cleaning these up would make the intent of the new defaults clearer and reduce noise.
```suggestion
const missingPrompt = buildPrompt(workspaceDir, {
config: { skills: { entries: { "nano-banana-pro": { apiKey: "" } } } },
});
```
How can I resolve this? If you propose a fix, please make it concise.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
cf8757c to
76c69be
Compare
|
Closing this PR because the author has more than 10 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit. |
Summary
Validation
pnpm exec vitest run src/agents/skills.build-workspace-skills-prompt.prefers-workspace-skills-managed-skills.test.ts src/agents/skills.build-workspace-skills-prompt.syncs-merged-skills-into-target-workspace.test.tsContext
This PR is one focused slice extracted from: