Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Chat: keep server/store.ts at its size limit
luishron1234ae974fa96e9
diff --git a/server/store.ts b/server/store.tsindex 487d9265db..7d3697fc49 100644--- a/server/store.ts+++ b/server/store.ts@@ -1202,16 +1202,14 @@ export class Store {const full: Message = {id: newId(),at: Date.now(),- role: "user",- kind: "text",+ role: "user", kind: "text",text,parentId: source.parentId ?? null,replyToId: source.replyToId,...(source.reaction && source.text === text ? { reaction: source.reaction } : {}),// Regenerate and Try again send the stored words back: an automation's line stays the automation's....(source.automated === true && source.text?.trim() === text.trim() ? { automated: true } : {}),- ...(sendId ? { sendId } : {}),- ...(sender ? { sender } : {}),+ ...(sendId ? { sendId } : {}), ...(sender ? { sender } : {}),...(dataContext ? { dataContext } : {}), ...from,};t.messages.push(full); this.threads.grew(threadId, full);