test(workspace-context): cover unsized dynamic probe

This commit is contained in:
_Kerman
2026-07-27 18:31:50 +08:00
parent 376bf7f365
commit 5d10074839

View File

@@ -2115,6 +2115,7 @@ describe('dynamic nested workspace context injection', () => {
const instructionPath = join(root, 'pkg/AGENTS.md')
fs.entries.set(join(root, '.git'), { type: 'directory' })
fs.entries.set(instructionPath, { type: 'file', content: 'nested package rule' })
fs.omitSizes.add(instructionPath)
fs.entries.set(join(root, 'pkg/file.txt'), { type: 'file', content: 'hello' })
await ctx.plugin(ToolFs)
await ctx.plugin(workspaceContext, { dshHome: home, maxBytes: 65536 })