fix(web): keep both agents distinct in the shipped-composition test
The preset catalog assertion and master's new command-catalog assertion each create an agent in the same test; the second is now named for what it is.
This commit is contained in:
@@ -98,18 +98,18 @@ it('assembles the shipped Web catalog with the confined access default', async (
|
|||||||
expect(scaffold.ctx.approval.config.policy).toBe('ask')
|
expect(scaffold.ctx.approval.config.policy).toBe('ask')
|
||||||
expect(scaffold.ctx.permission.defaultPreset).toBe('workspace-write')
|
expect(scaffold.ctx.permission.defaultPreset).toBe('workspace-write')
|
||||||
|
|
||||||
const handle = await scaffold.ctx.agents.create({
|
const commandHandle = await scaffold.ctx.agents.create({
|
||||||
sessionId: SessionId('shipped-command-catalog'),
|
sessionId: SessionId('shipped-command-catalog'),
|
||||||
meta: { cwd: scaffold.workspaceCwd },
|
meta: { cwd: scaffold.workspaceCwd },
|
||||||
agentOptions: { provider: 'deepseek-official', model: 'deepseek-v4-flash' },
|
agentOptions: { provider: 'deepseek-official', model: 'deepseek-v4-flash' },
|
||||||
})
|
})
|
||||||
try {
|
try {
|
||||||
expect(scaffold.ctx.commands.list(handle.agent)).toContainEqual({
|
expect(scaffold.ctx.commands.list(commandHandle.agent)).toContainEqual({
|
||||||
name: 'feedback',
|
name: 'feedback',
|
||||||
description: 'record feedback about this session',
|
description: 'record feedback about this session',
|
||||||
input: { hint: '<text>' },
|
input: { hint: '<text>' },
|
||||||
})
|
})
|
||||||
} finally {
|
} finally {
|
||||||
await handle.dispose()
|
await commandHandle.dispose()
|
||||||
}
|
}
|
||||||
}, 120_000)
|
}, 120_000)
|
||||||
|
|||||||
Reference in New Issue
Block a user