Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop agent operations can cause the program to crash #3302

Open
tercel opened this issue Feb 6, 2025 · 0 comments
Open

stop agent operations can cause the program to crash #3302

tercel opened this issue Feb 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@tercel
Copy link
Contributor

tercel commented Feb 6, 2025

packages/core/runtime.ts:
stop() can cause the program to crash.

change the below code is work well.

// it doesn't have a strict interface specification, and some don't have STOP methods
if (c && c?.stop) {
    c.stop();
} else {
    elizaLogger.log("client stop skip,", cStr, this.character.name);
}
@tercel tercel added the bug Something isn't working label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant