Description
I'm using an agent created with the Agent Builder, and when I try to use the memory feature by specifying agent.id, I encounter an error. The error log indicates a syntax error in librechat.yaml, but I cannot identify what is wrong with my configuration.
According to the official documentation on Using Predefined Agents, specifying an agent ID should enable memory for that agent. However, this results in an error.
Version
Configuration
Here is my librechat.yaml configuration:
endpoints:
bedrock:
titleModel: "jp.anthropic.claude-haiku-4-5-20251001-v1:0"
streamRate: 35
availableRegions:
- "ap-northeast-1"
agents:
recursionLimit: 50
maxRecursionLimit: 100
disableBuilder: false
memory:
agent:
id: "agent_aEdJgF09y6oJ0USpwNn3u"
Error Details
Error Log
The following error appears in the error log:
"Cannot read properties of undefined (reading 'id')"
Full stack trace from /root/LibreChat/logs/error-2026-01-11.log:
{"level":"error","message":"[handleAbortError] AI response error; aborting request: Cannot read properties of undefined (reading 'id')","stack":"TypeError: Cannot read properties of undefined (reading 'id')\n at AgentClient.useMemory (/app/api/server/controllers/agents/client.js:552:23)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async AgentClient.buildMessages (/app/api/server/controllers/agents/client.js:452:25)\n at async AgentClient.sendMessage (/app/api/app/clients/BaseClient.js:647:9)\n at async AgentController (/app/api/server/controllers/agents/request.js:210:20)\n at async controller (/app/api/server/routes/agents/chat.js:38:3)","timestamp":"2026-01-11T07:28:28.539Z"}
UI Error
When chatting through the LibreChat UI, the following error message is displayed:
"Something went wrong. Here's the specific error message we encountered: An error occurred while processing your request. Please contact the Admin."
Steps to Reproduce
- Create an agent using the Agent Builder
- Configure
librechat.yaml with the memory.agent.id setting as shown above
- Restart LibreChat
- Attempt to chat with the agent
Expected Behavior
The memory feature should work with the specified agent ID as described in the documentation.
Actual Behavior
The application throws a TypeError: Cannot read properties of undefined (reading 'id') error, and the chat fails.
Additional Context
I followed the documentation at https://www.librechat.ai/docs/features/memory#using-predefined-agents but the configuration does not work as expected. It appears there may be an issue with how the agent.id is being parsed or accessed in the code.
Description
I'm using an agent created with the Agent Builder, and when I try to use the memory feature by specifying
agent.id, I encounter an error. The error log indicates a syntax error inlibrechat.yaml, but I cannot identify what is wrong with my configuration.According to the official documentation on Using Predefined Agents, specifying an agent ID should enable memory for that agent. However, this results in an error.
Version
Configuration
Here is my
librechat.yamlconfiguration:Error Details
Error Log
The following error appears in the error log:
Full stack trace from
/root/LibreChat/logs/error-2026-01-11.log:UI Error
When chatting through the LibreChat UI, the following error message is displayed:
Steps to Reproduce
librechat.yamlwith thememory.agent.idsetting as shown aboveExpected Behavior
The memory feature should work with the specified agent ID as described in the documentation.
Actual Behavior
The application throws a TypeError: Cannot read properties of undefined (reading 'id') error, and the chat fails.
Additional Context
I followed the documentation at https://www.librechat.ai/docs/features/memory#using-predefined-agents but the configuration does not work as expected. It appears there may be an issue with how the
agent.idis being parsed or accessed in the code.