Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Idle workspace sweep yields between workspaces; Codex sandbox note says usually
milind-sonid52c396242f8
diff --git a/server/drivers/codex-instructions.ts b/server/drivers/codex-instructions.tsindex 7de0a870b9..cd49875b45 100644--- a/server/drivers/codex-instructions.ts+++ b/server/drivers/codex-instructions.ts@@ -8,7 +8,7 @@ import { writeFileAtomic } from "../atomic.ts";import type { CodexApprovalParams } from "./codex-approval-config.ts";export const CODEX_LINUX_SANDBOX_NOTE =- "Shell commands here run in Codex's Linux sandbox: root-owned files appear owned by nobody (uid 65534) and the network may be blocked, so ssh and git over SSH can fail with \"Bad owner or permissions on /etc/ssh/...\". That is the sandbox, not a host fault: run them through an approved escalation outside the sandbox.";+ "Shell commands here run in Codex's Linux sandbox: root-owned files appear owned by nobody (uid 65534) and the network may be blocked, so ssh and git over SSH can fail with \"Bad owner or permissions on /etc/ssh/...\". That is usually the sandbox, not a host fault: run them through an approved escalation outside the sandbox before calling it one.";/** Explains Linux user-namespace uid mapping when Codex turns run inside a sandbox. */export function codexSandboxNote(diff --git a/server/task-workspace-retention.ts b/server/task-workspace-retention.tsindex 0b61470e92..ceefe68bc8 100644--- a/server/task-workspace-retention.ts+++ b/server/task-workspace-retention.ts@@ -67,6 +67,8 @@ export async function sweepTaskWorkspaceBuildFolders(const botDir = join(root, candidate.botId);const workspace = join(botDir, candidate.threadId);if (!isRealDirectory(botDir) || !isRealDirectory(workspace)) continue;+ // One workspace's walk per turn of the event loop, even where nothing is removed.+ await new Promise((resolve) => setImmediate(resolve));const found: string[] = [];findRecreatable(workspace, 1, found);for (const path of found) {