Fixed Agent.js error caused by Jules

This commit is contained in:
Sweaterdog 2025-06-07 01:49:11 -07:00 committed by GitHub
parent e9160d928e
commit 5c1a8c46b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -540,7 +540,7 @@ export class Agent {
cleanKill(msg='Killing agent process...', code=1) {
// Assuming cleanKill messages don't have images
await this.history.add('system', msg, null);
this.history.add('system', msg, null);
this.bot.chat(code > 1 ? 'Restarting.': 'Exiting.');
this.history.save();
process.exit(code);