Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Recognize English action announcements with a curly apostrophe
vincent36070c08ddc1
diff --git a/server/drivers/chat-announcement.ts b/server/drivers/chat-announcement.tsindex 36ecb40de2..0c35651b66 100644--- a/server/drivers/chat-announcement.ts+++ b/server/drivers/chat-announcement.ts@@ -25,7 +25,7 @@ function endsWithAnnouncingSentence(reply: string): boolean {}export function announcesAction(text: string): boolean {- const reply = text.trim();+ const reply = text.trim().replace(/’/g, "'");if (!reply || reply.length > 4_000 || reply.includes("?")) return false;if (/[?\p{Script=Han}]/u.test(reply)) {const prose = blankCode(text);diff --git a/server/drivers/openai-chat-announcement.test.ts b/server/drivers/openai-chat-announcement.test.tsindex a92a493164..a7aa79e228 100644--- a/server/drivers/openai-chat-announcement.test.ts+++ b/server/drivers/openai-chat-announcement.test.ts@@ -8,6 +8,7 @@ describe("announcesAction", () => {"I'm in the VM and I will check the files.","I’m in the VM and will launch XFCE Terminal first.","I'll open the browser.",+ "I’ll check the service health.","Opening the page now:","Got the structure. Now I'll pull the actual content from each — inbox, tasks, unread messages, and today's calendar.","Yes, I'm here. Let me pull from all four MCP servers now.",