Skip to content

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

fix(codex): avoid ruling out genuine SSH config permission errors

jonathanwxh-cell56fbc9786aca
diff --git a/server/drivers/codex-instructions.ts b/server/drivers/codex-instructions.ts
index b78ebbbfbe..7959d6e0ff 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 in this turn run inside Codex's Linux user-namespace sandbox, where root-owned files (such as /etc/ssh/ssh_config.d/*) appear owned by nobody (uid 65534) and network access may be restricted. OpenSSH errors like \"Bad owner or permissions on /etc/ssh/...\" are caused by this sandbox rather than host file permissions; ssh and git-over-SSH require an approved escalation outside the sandbox.";
+ "Shell commands in this turn run inside Codex's Linux user-namespace sandbox, where root-owned files (such as /etc/ssh/ssh_config.d/*) appear owned by nobody (uid 65534) and network access may be restricted. OpenSSH errors like \"Bad owner or permissions on /etc/ssh/...\" can be caused by this UID mapping rather than host file permissions (though writable permissions on included SSH config files can trigger the same error); compare with an approved escalation outside the sandbox before assuming a host permission fault, as ssh and git-over-SSH require running outside the sandbox.";
/** Explains Linux user-namespace uid mapping when Codex turns run inside a sandbox. */
export function codexSandboxNote(