Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

fix(routines): stopping a one-on-one goal keeps a turn the person started

AdityaUmale180c65a5ce59
diff --git a/server/index.ts b/server/index.ts
index f8a9a11ba8..215c6021f3 100644
--- a/server/index.ts
+++ b/server/index.ts
@@ -8705,7 +8705,7 @@ async function interruptRoutineGroupGoal(
if (!groupId) {
oneOnOneGoals.stop(threadId, outcome);
const owner = store.botByThread(threadId);
- if (owner) await interruptDirectThread(owner.id, threadId);
+ if (owner && directRequestOwners.get(threadId)?.origin?.kind !== "user") await interruptDirectThread(owner.id, threadId);
return;
}
const speaker = groupSpeakers.get(threadId);