Update action_manager.js

This commit is contained in:
Sweaterdog 2025-02-27 21:10:04 -08:00 committed by GitHub
parent 95b56f5301
commit f14f86a518
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,7 +46,7 @@ export class ActionManager {
assert(actionLabel != null, 'actionLabel is required for new resume');
this.resume_name = actionLabel;
}
if (this.resume_func != null && (this.agent.isIdle() || new_resume) && (!this.agent.self_prompter.on || new_resume)) {
if (this.resume_func != null && (this.agent.isIdle() || new_resume) && (!this.agent.self_prompter.isActive() || new_resume)) {
this.currentActionLabel = this.resume_name;
let res = await this._executeAction(this.resume_name, this.resume_func, timeout);
this.currentActionLabel = '';
@ -152,4 +152,4 @@ export class ActionManager {
}, TIMEOUT_MINS * 60 * 1000);
}
}
}