fix: persist project id in agent chat saves

This commit is contained in:
Danny Avila 2026-06-02 22:28:02 -04:00
parent 6042923c25
commit 4dbc277b91
2 changed files with 2 additions and 0 deletions

View file

@ -209,6 +209,7 @@ class AgentClient extends BaseClient {
{
spec: this.options.spec,
iconURL: this.options.iconURL,
chatProjectId: this.options.chatProjectId,
endpoint: this.options.endpoint,
agent_id: this.options.agent.id,
modelLabel: this.options.modelLabel,

View file

@ -857,6 +857,7 @@ const initializeClient = async ({ req, res, signal, endpointOption }) => {
agent: primaryConfig,
spec: endpointOption.spec,
iconURL: endpointOption.iconURL,
chatProjectId: endpointOption.chatProjectId,
attachments: primaryConfig.requestAttachments ?? primaryConfig.attachments,
agentContextAttachmentsByAgentId,
endpointType: endpointOption.endpointType,