Skip to content

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

Train fixes: pt-BR for Edit as text, the Full access docs line, room mentions within the index pin, and test and fixture fixes

milind-soni0773aa0ddf65
diff --git a/docs/composio.md b/docs/composio.md
index 0f7157ac7c..838d77004d 100644
--- a/docs/composio.md
+++ b/docs/composio.md
@@ -202,4 +202,4 @@ A bot with no grant record at all keeps the legacy behavior: every tool on every
Grants are enforced on the real tool names at call time (including batches inside the MULTI_EXECUTE meta-tool), the tool list offered to the model is filtered to the granted set, and every allow/deny writes a decision-log row. Refusals do not enumerate what else is granted. Paired phones see each bot's grants read-only in its profile (What this bot does → App tools); grants are assigned on the computer, never from a phone.
-Connected-app sends also follow the bot's **Permissions → Sending on your behalf** setting at every access level, including Full access. **Ask every time** requires approval for each send regardless of prompt language. **Send without asking** lets sends go out on their own, with no daily limit. A Full-access bot with no setting here sends without asking. Reading and drafting are not sends; opaque app code execution always requires approval because its effects cannot be read.
+Connected-app sends also follow the bot's **Permissions → Sending on your behalf** setting at every access level, including Full access. **Ask every time** requires approval for each send regardless of prompt language. **Send without asking** lets sends go out on their own, with no daily limit. A Full-access bot with no setting here sends without asking. Reading and drafting are not sends; below Full access, code the app can't read always asks, even under Send without asking; at Full access it goes out without a card unless the rule is Ask every time.
diff --git a/server/browser/chrome/resolve.test.ts b/server/browser/chrome/resolve.test.ts
index 8014ac3490..b23157b0eb 100644
--- a/server/browser/chrome/resolve.test.ts
+++ b/server/browser/chrome/resolve.test.ts
@@ -86,7 +86,7 @@ describe("which Chrome the bots' browser runs", () => {
expect(resolveChromePlan(host("linux", []), managed)).toEqual({ kind: "download", pin: chromeForTestingPin("linux", "arm64") });
expect(resolveChromePlan({ ...host("linux", []), arch: "x64" }, managed)).toEqual({ kind: "download", pin: chromeForTestingPin("linux", "x64") });
const downloaded = chromeForTestingExecutable("/data", chromeForTestingPin("linux", "arm64")!);
- expect(downloaded).toBe("/data/tools/chrome/153.0.8010.47/linux-arm64/chrome-linux-arm64/chrome");
+ expect(downloaded.replaceAll("\\", "/")).toBe("/data/tools/chrome/153.0.8010.47/linux-arm64/chrome-linux-arm64/chrome");
expect(resolveChromePlan(host("linux", [downloaded]), managed)).toEqual({ kind: "chrome", chrome: { path: downloaded, source: "downloaded" }, fallback: null });
expect(resolveChromePlan(host("linux", ["/opt/google/chrome/chrome"]), managed)).toEqual({ kind: "chrome", chrome: { path: "/opt/google/chrome/chrome", source: "installed" }, fallback: chromeForTestingPin("linux", "arm64") });
expect(resolveChromePlan({ ...host("linux", []), arch: "ia32" }, managed)).toEqual({ kind: "legacy", reason: "no Chrome is installed and none is pinned for this platform" });
diff --git a/server/drivers/codex-mcp-names.ts b/server/drivers/codex-mcp-names.ts
index 22e9a819e1..fa8e6f86aa 100644
--- a/server/drivers/codex-mcp-names.ts
+++ b/server/drivers/codex-mcp-names.ts
@@ -44,7 +44,7 @@ export function codexConfigMcp(env: Record<string, string | undefined>): CodexCo
return { names: mcpServerNamesInToml(text), tables };
}
-/** Disable literal config keys before mounting per-turn servers. Codex splits CLI paths at every dot. */
+/** Disable literal config keys before mounting per-turn servers. Codex splits CLI paths at every dot, so a whole-table override preserves literal names; it must precede the per-mount CLI overrides. */
export function codexMcpDisableArgs(names: ReadonlySet<string>): string[] {
if ([...names].some((name) => !/^[A-Za-z0-9_-]+$/.test(name))) {
const tables = [...names].map((name) => `${JSON.stringify(name)} = { enabled = false }`).join(", ");
diff --git a/server/drivers/codex.ts b/server/drivers/codex.ts
index 54113a93a5..2393ea4905 100644
--- a/server/drivers/codex.ts
+++ b/server/drivers/codex.ts
@@ -552,7 +552,6 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
// A guest-driven turn: no shell, no file reads (-c wins over config files).
...(turn.guestConfined ? GUEST_CONFINED_CODEX_ARGS : [])];
const codexConfig = codexConfigMcp(env), declaredInCodexConfig = codexConfig.names;
- // A whole-table override preserves literal names and must precede the per-mount CLI overrides.
if (turn.toolScope !== undefined) appServerArgs.push(...codexMcpDisableArgs(declaredInCodexConfig));
const baseEnv = new Map(Object.entries(env).filter(([, value]) => value !== undefined));
const mountedNames = new Set<string>();
diff --git a/server/index.ts b/server/index.ts
index 7b11c6498b..aa9c70ce57 100644
--- a/server/index.ts
+++ b/server/index.ts
@@ -325,8 +325,7 @@ import { createStopLineRoutes } from "./routes/stop-line.ts"; import { decideRoo
import { createLiveSession, liveAttachUrl, liveHistoryFrom, LiveSessionError, type LiveBot, type LiveHistoryMessage } from "./live-call.ts";
import { LiveCallController, LiveCallSignedOutError, openLiveSocket } from "./live-call-controller.ts";
import { liveCallSettings, liveSettingsFor, liveSettingsForClient, saveLiveSettings } from "./live-settings.ts"; import { azureLiveCallRefusal, liveScopeRefusal } from "./live-access.ts";
-import { recordLiveCall, spokenLineFields, titleLiveCall } from "./live-call-record.ts";
-import { noteGroupTurn, turnsSince } from "./room-round-turns.ts";
+import { recordLiveCall, spokenLineFields, titleLiveCall } from "./live-call-record.ts"; import { noteGroupTurn, turnsSince } from "./room-round-turns.ts";
import { narrateTool, toUtterances } from "./tts/speech-text.ts";
import { createTtsRoutes } from "./routes/tts.ts";
import { turnStartLogLine } from "./turn-log.ts";
@@ -10553,18 +10552,14 @@ async function runClaimedGroupMemberTurn(
});
}
// A bot that spoke earlier answers a mention by its own name (not @everyone) again, unless it took a turn since this reply.
- const spokeBeforeReply = new Set(spoken), answeredSince = turnsSince(spoken);
- const named = new Set(mentionedBots(replyText, members).map((member) => member.id));
+ const spokeBeforeReply = new Set(spoken), answeredSince = turnsSince(spoken), named = new Set(mentionedBots(replyText, members).map((member) => member.id));
for (const next of roomResponders(replyText, members, { kind: "mentions" })) {
if (isCancelled?.()) return false;
if (spokeBeforeReply.has(next.id) ? answeredSince(next.id) > 0 || !named.has(next.id) : spoken.has(next.id)) continue;
if (operation) {
const verdict = await waitForChatRoomMember(operation, threadId, next);
if (verdict === "stop") return false;
- if (verdict === "skip") {
- noteGroupTurn(spoken, next.id);
- continue;
- }
+ if (verdict === "skip") { noteGroupTurn(spoken, next.id); continue; }
}
if (providerTurnId) usageTrace.expect(threadId, { parent: { threadId, turnId: providerTurnId } });
if (!(await runGroupMemberTurn(
diff --git a/server/testing/fake-codex-app-server.ts b/server/testing/fake-codex-app-server.ts
old mode 100644
new mode 100755
index 97ed1a3e47..68539e1d00
--- a/server/testing/fake-codex-app-server.ts
+++ b/server/testing/fake-codex-app-server.ts
@@ -63,7 +63,6 @@
import { spawn } from "node:child_process";
import { appendFileSync, existsSync, readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
-import { parseToml } from "../toml-lite.ts";
const mode = process.env.FAKE_CODEX_MODE ?? "happy";
@@ -178,10 +177,9 @@ const calls: Array<{ method: string; params: unknown }> = [];
const mcpOverrides: Record<string, Record<string, unknown>> = {};
for (let index = 0; process.env.FAKE_CODEX_MCP_OVERRIDES === "1" && index < process.argv.length; index++) {
if (process.argv[index - 1] === "-c" && process.argv[index]!.startsWith("mcp_servers=")) {
- const tables = parseToml(process.argv[index]!).mcp_servers as Record<string, Record<string, unknown>>;
// The real CLI replaces its accumulated override table before later dotted-path fields apply.
for (const name of Object.keys(mcpOverrides)) delete mcpOverrides[name];
- Object.assign(mcpOverrides, tables);
+ for (const [, key] of process.argv[index]!.matchAll(/("(?:[^"\\]|\\.)*") = \{ enabled = false \}/g)) mcpOverrides[JSON.parse(key!) as string] = { enabled: false };
continue;
}
const match = process.argv[index - 1] === "-c" ? /^mcp_servers\.([^.]+)\.([^.]+)=(.*)$/.exec(process.argv[index]!) : null;
diff --git a/server/thread-events.test.ts b/server/thread-events.test.ts
index 2e270d1b3c..cc738f9f8b 100644
--- a/server/thread-events.test.ts
+++ b/server/thread-events.test.ts
@@ -66,7 +66,7 @@ describe("readThreadEvents", () => {
it("keeps budget exhaustion and its handoff while rejecting malformed cap events", () => {
const eventsDir = tmp();
const nativeDir = tmp();
- const cap = runtime({ eventId: "cap", type: "cap.exhausted", createdAt: "2026-08-17T10:00:00.000Z", handoffPath: "/fixture/handoff.json", reason: "cap" });
+ const cap = runtime({ eventId: "cap", type: "cap.exhausted", createdAt: "2026-08-17T10:00:00.000Z", handoffPath: resolve("/fixture/handoff.json"), reason: "cap" });
writeFileSync(join(eventsDir, "t1.ndjson"), [
cap,
{ ...cap, eventId: "missing-path", handoffPath: undefined },
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index ea0f476a5b..904ca66e58 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -7634,6 +7634,7 @@
"botPanel.memory.forget": "Esquecer",
"botPanel.memory.empty": "Nada guardado na memória ainda.",
"botPanel.memory.addPlaceholder": "Diga algo para {name} lembrar",
+ "botPanel.memory.editText": "Editar como texto",
"botPanel.skills.remove": "Remover {name}",
"botPanel.skills.removeConfirm": "Remover a habilidade “{name}”?",
"botPanel.skills.removeFailed": "Não foi possível remover esta habilidade.",