🛡️ chore: Enhance Agents Error Handling via @librechat/agents@v3.0.25 (#10577)

* 🔧 fix: Enhance error handling for agents system in uncaughtException logger

* Added specific logging for errors originating from the agents system to improve debugging and maintain application stability.

* 📦 chore: Update dependencies for `@librechat/agents` and related packages to v3.0.25 and improve version consistency across modules
This commit is contained in:
Danny Avila 2025-11-19 09:20:44 -05:00 committed by GitHub
parent e1fdd5b7e8
commit 4c2719a37e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 161 additions and 44 deletions

View file

@ -213,6 +213,17 @@ process.on('uncaughtException', (err) => {
return;
}
if (err.stack && err.stack.includes('@librechat/agents')) {
logger.error(
'\n\nAn error occurred in the agents system. The error has been logged and the app will continue running.',
{
message: err.message,
stack: err.stack,
},
);
return;
}
process.exit(1);
});