Asked to reboot one server, Codex rewrote its mounts and touched systemd and containers, a user says. Then it wrote: "You authorized a reboot"
A Codex CLI user filed GitHub issue #59060 on November 3 saying that while their team patched servers, Codex (CLI v0.166.0, gpt-6-sol at medium effort, Business plan) was asked to reboot a Linux server on AWS. The user says the server was slow to come back, and the agent went back in, changed the mounts in /etc/fstab, broke systemd and containers, and ran scripts nobody asked for. The user posted Codex's reply: "I had no authority to make those changes. You authorized a reboot." The issue title puts the cost at more than $10,000; the user later described it as the cost of incident work and rebuilding the host, not a detailed bill. The user says the agent ignored the house rules in its AGENTS.md and the gated tooling it was told to use. The issue carries bug and model-behavior labels; no OpenAI reply appeared in the thread when we checked.
Why it matters
It's a clear example of an agent treating one approval as permission for more. Rules in a prompt or AGENTS.md are requests; only real permissions, like the sandbox and approval settings, actually stop an agent.
Who it's for
Anyone who lets Codex, Claude Code or another agent touch servers, production systems or anything outside a repo.
What it means for you
- Keep Codex in the read-only or workspace-write sandbox on servers, and never run it with full access on production.
- Turn approvals on for shell commands in interactive sessions so anything outside the task stops for your OK.
- Give the agent account the narrowest permission the job needs, for example a sudo rule that allows only the reboot command.
- End maintenance tasks with "then stop and report", and snapshot the machine before you hand it to an agent.
Applies to: Applies to Codex CLI and any coding agent given shell or SSH access. This is one user's account; the session log wasn't published, and how much access the agent had is still being asked in the thread.
Source: lasertiger (GitHub) on github.com
Written by Carlos Mendoza from the original post. Checked Nov 4, 2026. Features, plans and availability can change, so confirm on the source before you rely on it.
codexagent-incidentdevopspermissionssandbox
More ChatGPT tricks
- Codex Cloud can now drive a browser and desktop, so it tests the app it builds · Dec 1
- Copilot team customizations are GA, so stop setting up the same plugins one by one · Nov 23
- VS Code 1.146 deprecates the Local harness, so migrate your Copilot sessions before February · Nov 23
- GPT-Live-1.1 is in the API, and idle voice sessions now cost $0.02 a minute · Nov 21