From eccd2486891f839532b7a5d84bf5a2c83b0d6f68 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Wed, 11 Mar 2026 21:15:06 -0400 Subject: [PATCH] refactor(tests): update summarizationConfig tests to reflect changes in enabled property Modified tests to check for the new `summarizationEnabled` property instead of the deprecated `enabled` field in the summarization configuration. This change ensures that the tests accurately validate the current configuration structure and behavior of the agents. --- .../api/src/agents/__tests__/run-summarization.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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'); });