From 37af374de354dad2de020200e72e89a73edf4290 Mon Sep 17 00:00:00 2001 From: Sweaterdog Date: Thu, 27 Feb 2025 21:13:02 -0800 Subject: [PATCH] Update actions.js --- src/agent/commands/actions.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/agent/commands/actions.js b/src/agent/commands/actions.js index 88e6b9e..19b231e 100644 --- a/src/agent/commands/actions.js +++ b/src/agent/commands/actions.js @@ -49,7 +49,7 @@ export const actionsList = [ agent.actions.cancelResume(); agent.bot.emit('idle'); let msg = 'Agent stopped.'; - if (agent.self_prompter.on) + if (agent.self_prompter.isActive()) msg += ' Self-prompting still active.'; return msg; } @@ -362,8 +362,7 @@ export const actionsList = [ }, perform: async function (agent, prompt) { if (convoManager.inConversation()) { - agent.self_prompter.setPrompt(prompt); - convoManager.scheduleSelfPrompter(); + agent.self_prompter.setPromptPaused(prompt); } else { agent.self_prompter.start(prompt); @@ -375,7 +374,6 @@ export const actionsList = [ description: 'Call when you have accomplished your goal. It will stop self-prompting and the current action. ', perform: async function (agent) { agent.self_prompter.stop(); - convoManager.cancelSelfPrompter(); return 'Self-prompting stopped.'; } },