test(cua): include the configured click hold guidance

This commit is contained in:
creatixchu committed 2026-10-19 11:30:56 +08:00
1 parent 8a90e689d8
commit ef15f31682
1 file changed
+1 -1
@@ -53,7 +53,7 @@ it('adds and removes CUA for existing and new PTC Agents without changing other
await expect.poll(() => ctx.tools.get('cua', existing.agent)).toBeDefined()
expect(ctx.tools.get('cua', standard.agent)).toBeUndefined()
expect((await ctx.systemPrompt.assemble({ scope: existing.agent })).sections)
.toContainEqual(expect.objectContaining({ name: 'computer-use:dsh-cua', text: 'Fixture CUA guidance' }))
.toContainEqual(expect.objectContaining({ name: 'computer-use:dsh-cua', text: 'Fixture CUA guidance\n\nMaximum click holdMs: 5000 ms.' }))
await ctx.agentPresets.select(existing.agent, 'ptc')
expect(ctx.tools.schemas(existing.agent).filter(tool => tool.name === 'cua')).toHaveLength(1)
const fresh = await create('fresh', 'ptc')