Skip to content

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

chore(server): keep server/index.ts within its size cap

milind-soni09d21516adad
diff --git a/server/index.ts b/server/index.ts
index c0c17eb987..6a9f2fae23 100644
--- a/server/index.ts
+++ b/server/index.ts
@@ -13941,8 +13941,7 @@ const handleRequest = async (req: IncomingMessage, res: ServerResponse) => {
// Work a person's request hands on opens in the receiving bot's chat with them when it may use their own apps.
const opener = (room ? null : handOnFor) ?? openerFrom(address.threadId);
const continued = room || fresh ? undefined : workThreadFor(store, { botId: target.botId, botName: recipient.name, fromBotId: internalSender.id, fromThreadId: address.threadId, thread: call.thread, notice: mode === "notify",
- answering: coordinator.answersTo(internalCapability.roomHandoffId ?? generation),
- also: (task) => !CLOUD_TEAM || threadStarters.get(task.threadId) === opener });
+ answering: coordinator.answersTo(internalCapability.roomHandoffId ?? generation), also: (task) => !CLOUD_TEAM || threadStarters.get(task.threadId) === opener });
const relayed = EXTERNAL || (!call.answers && (room || fresh || mode === "consult")) ? undefined : await questionRouting.relay({ sender: internalSender, senderThreadId: address.threadId,
senderNode: coordinator.node(internalCapability.roomHandoffId ?? generation), target: recipient, message: call.message, ...(call.answers ? { answers: call.answers } : {}), ...(continued ? { threadId: continued.threadId } : {}),
...(internalCapability.delegatedThisTurn ? { sentThisTurn: internalCapability.delegatedThisTurn } : {}) });