From 6738acbe041a08d7c15d09e6cf5c3fde036640f6 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Fri, 12 Dec 2025 20:45:03 -0500 Subject: [PATCH] refactor: Update BaseClient to handle non-ephemeral agents in conversation logic - Added a check for non-ephemeral agents in BaseClient, modifying the exceptions set to include 'model' when applicable. - Enhanced conversation handling to improve flexibility based on agent type. --- api/app/clients/BaseClient.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/app/clients/BaseClient.js b/api/app/clients/BaseClient.js index 126efcc385..4380d3a447 100644 --- a/api/app/clients/BaseClient.js +++ b/api/app/clients/BaseClient.js @@ -966,6 +966,11 @@ class BaseClient { const unsetFields = {}; const exceptions = new Set(['spec', 'iconURL']); + const hasNonEphemeralAgent = + endpointOptions?.agent_id && endpointOptions.agent_id !== Constants.EPHEMERAL_AGENT_ID; + if (hasNonEphemeralAgent) { + exceptions.add('model'); + } if (existingConvo != null) { this.fetchedConvo = true; for (const key in existingConvo) {