diff --git a/packages/api/src/agents/__tests__/run-summarization.test.ts b/packages/api/src/agents/__tests__/run-summarization.test.ts index 62f919787c..2bc0da253a 100644 --- a/packages/api/src/agents/__tests__/run-summarization.test.ts +++ b/packages/api/src/agents/__tests__/run-summarization.test.ts @@ -230,7 +230,9 @@ describe('summarizationConfig field passthrough', () => { }); const config = agents[0].summarizationConfig as Record; expect(config).toBeDefined(); - expect(config.enabled).toBe(true); + // `enabled` is not forwarded to the agent-level config — it is resolved + // into the separate `summarizationEnabled` boolean on the agent input. + expect(agents[0].summarizationEnabled).toBe(true); expect(config.trigger).toEqual({ type: 'token_count', value: 8000 }); expect(config.provider).toBe('anthropic'); expect(config.model).toBe('claude-3-haiku'); @@ -247,7 +249,8 @@ describe('summarizationConfig field passthrough', () => { }); const config = agents[0].summarizationConfig as Record; expect(config).toBeDefined(); - expect(config.enabled).toBe(true); + // `enabled` is resolved into `summarizationEnabled`, not forwarded on config + expect(agents[0].summarizationEnabled).toBe(true); expect(config.provider).toBe('openAI'); expect(config.model).toBe('gpt-4o'); });