test: use the public agent type

This commit is contained in:
Tianyi Cui
2026-07-14 16:53:38 +08:00
parent a5e1717059
commit 4a5463cfc4

View File

@@ -145,7 +145,7 @@ describe('config-driven session id', () => {
const config = { agents: [{ id: 'main', sessionId, model: 'mock' }] }
const firstLoop = await ctx.plugin(AgentLoop, config)
await expect.poll(() => ctx.agents.get(sessionId)).toBeDefined()
const first = ctx.agents.get(sessionId) as ReactLoopAgent
const first = ctx.agents.get(sessionId) as Agent
const flushGate = Promise.withResolvers<undefined>()
ctx.on('session/flush', (session) => {