fix: save execution engine when updating agents (#3184)