Skip to content

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

Import mkdirSync in the Codex driver again (#4917)

Milind Sonidf6556016022
diff --git a/server/drivers/codex.ts b/server/drivers/codex.ts
index dadf4148ac..625626b310 100644
--- a/server/drivers/codex.ts
+++ b/server/drivers/codex.ts
@@ -10,6 +10,7 @@ import { reportUnsupportedCalls, rolloutMark, type RolloutMark } from "./codex-u
// The `codex` CLI headless over its app-server JSON-RPC (NDJSON on stdio): completion is
// `turn/completed`, approvals arrive as server→client requests, resumeCursor is the codex thread id.
import { createHash } from "node:crypto";
+import { mkdirSync } from "node:fs";
import { join } from "node:path";
import { homedir } from "node:os";
import { codexConfigMcp, codexConfigRunsServer, mountedMcpServerName } from "./codex-mcp-names.ts";