Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test(codex): assert the forwarded HEALTH_REGION value reaches the custom server
AdityaUmale5b9ab44598ef
diff --git a/server/drivers/codex.test.ts b/server/drivers/codex.test.tsindex aba71d3126..051b999262 100644--- a/server/drivers/codex.test.ts+++ b/server/drivers/codex.test.ts@@ -1730,6 +1730,7 @@ process.stdout.write(JSON.stringify({jsonrpc:'2.0',id:m.id,result})+'\\n');});`)const seen = JSON.parse(readFileSync(dump, "utf8"));const envVars = JSON.parse(seen.argv.find((arg: string) => arg.startsWith("mcp_servers.health.env_vars=")).split("=").slice(1).join("="));expect(envVars).toEqual(["HEALTH_REGION"]);+ expect(seen.env.HEALTH_REGION).toBe("eu");});it.each(["ask", "auto"] as const)("pre-allows peer-agent comms without exposing its token in %s mode", async (approvalMode) => {