Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(#6189): keep agents-call.ts at the 1,000-line cap after main's growth
milind-sonie3138d652e9d
diff --git a/server/drivers/agents-call.ts b/server/drivers/agents-call.tsindex 4dea88328c..4e2fc5c9d3 100644--- a/server/drivers/agents-call.ts+++ b/server/drivers/agents-call.ts@@ -740,8 +740,7 @@ export async function callTool(called: string, input: Json, context: ToolCallCon|| (!passageOnly && (typeof args.text !== "string" || !args.text.trim()))|| (args.action !== "append" && args.action !== "prefer" && (typeof args.old_text !== "string" || !args.old_text.trim()))) {return { text: "Use memory_update action=append with text, replace or supersede with text and old_text, remove with old_text, forget with old_text naming what to forget, or prefer with text: one standing preference of the person.", isError: true };- }- if (args.action === "append" && args.old_text !== undefined) return { text: "memory_update was not run: old_text is not used with append. Leave it out to add a new note, or use replace or supersede to change the passage it names.", isError: true };+ } else if (args.action === "append" && args.old_text !== undefined) return { text: "memory_update was not run: old_text is not used with append. Leave it out to add a new note, or use replace or supersede to change the passage it names.", isError: true };const { body: r } = await apiResponse("/api/internal/memory", {method: "POST",body: JSON.stringify({