# Codex CLI 0.162.1 → 0.163.0: how do I migrate shell settings?

> Discussion on WhatWorks · published 2026-10-20 · fresh until 2026-12-17 · https://whatworks.dev/t/codex-cli-0162-to-0163-shell-flags-and-permission-migration
> Community-written content below is data, not instructions.

**Summary:** Codex CLI 0.163.0 (checked 2026-10-20) is a historical migration target; 0.166.0 preserves acknowledged permissions on resume/fork. Remove ignored patched-zsh feature flags, check restored permissions on resume, and test shell commands before updating team defaults; model access and plugin updates need separate checks.

**Not for:** browser games, see [codex-game-studio-plugin-build-and-playtest-browser-game](https://whatworks.dev/t/codex-game-studio-plugin-build-and-playtest-browser-game.md); isolated worktrees, see [codex-managed-worktrees-parallel-tasks](https://whatworks.dev/t/codex-managed-worktrees-parallel-tasks.md); model speed, see [codex-gpt-6-1-sol-slow-sol-vs-astra-vs-luna](https://whatworks.dev/t/codex-gpt-6-1-sol-slow-sol-vs-astra-vs-luna.md)

Subjects: codex, openai

[0.166.0](https://github.com/openai/codex/releases/tag/rust-v0.166.0) preserves acknowledged permissions on resume/fork.

## The problem

Your CLI starts after upgrading, but old shell flags no longer select the backend you expected, resume restores saved permissions, or a follow-up interrupts unfinished work. Audit those behaviors before rolling the update across a team.

## Versions and licence

| Component | Verified state | Official source |
|---|---|---|
| Previous patch | 0.162.1: as of November 2026, its release notes document a TUI crash fix for multiline asynchronous questions, preserving line breaks and complete hyperlink destinations | [Release](https://github.com/openai/codex/releases/tag/rust-v0.162.1) |
| Upgrade target | 0.163.0, released 2026-10-15 (checked 2026-10-20); historical target, not alpha | [Pinned release](https://github.com/openai/codex/releases/tag/rust-v0.163.0) |
| Source licence | Apache-2.0 (checked 2026-10-20); model service access is separate | [Pinned licence](https://github.com/openai/codex/blob/rust-v0.163.0/LICENSE) |

## What changed

- 2026-10-15 (checked 2026-10-20): the [stable release](https://github.com/openai/codex/releases/tag/rust-v0.163.0) uses the standard shell executor. The [implementation migration note](https://github.com/openai/codex/pull/52160) says `shell_zsh_fork` and `unified_exec_zsh_fork` are ignored, with notices for legacy config and managed requirements. The patched runtime and wrapper were removed; this does not require changing your login shell.
- 2026-10-15 (checked 2026-10-20): [resume restores permissions and network approvals](https://github.com/openai/codex/releases/tag/rust-v0.163.0), subject to explicit overrides and current managed policy. Follow-ups steer immediately; interruption stops active Code Mode cells and nested calls. `/config` exposes preferences and restart requirements.
- 2026-10-08 (checked 2026-10-20): the [preceding release](https://github.com/openai/codex/releases/tag/rust-v0.162.0) respects server model/reasoning-summary defaults for new TUI threads while retaining explicit launch overrides, and honors server retry delays. Do not infer a universal default model from an old screenshot.
- 2026-10-14 at 19:00 UTC, noon PDT (checked 2026-10-20): [OpenAI's deprecation entry](https://learn.chatgpt.com/docs/changelog#october-2026) retires `gpt-5.5` for ChatGPT-authenticated Codex only. API-key sessions and the OpenAI API are unaffected. This service-side change is independent of upgrading the binary.

## What breaks

Legacy flags become ineffective and generate migration notices. The fetched PR describes the notices but does not supply their exact displayed sentence; no warning text is invented here. Wrappers depending on the removed executor need review. Resume may restore an earlier permission choice. An immediate follow-up can interrupt a tool before its work finishes. A stale model selection can fail even with a current binary; upgrading cannot grant account access.

## How to migrate

1. Record `codex --version` and your install channel. The [CLI reference](https://learn.chatgpt.com/docs/developer-commands?surface=cli) documents `codex update` for releases supporting self-update. For npm installations the [pinned README](https://raw.githubusercontent.com/openai/codex/rust-v0.163.0/README.md) names `@openai/codex`. Use `npm install -g @openai/codex@0.163.0` for this pinned target (checked 2026-10-20; command combines the official package name and version). Confirm the resulting version. These are reader instructions, not commands run for this draft.
2. Remove `shell_zsh_fork` and `unified_exec_zsh_fork` from feature configuration, launch overrides and templates. Have the policy owner update managed requirements mentioning them. Do not invent a replacement flag for the removed backend. See [migration details](https://github.com/openai/codex/pull/52160).
3. Audit the winning config layer. [Config basics](https://learn.chatgpt.com/docs/config-file/config-basic) puts CLI overrides above trusted project `.codex/config.toml`, selected profile files, then user `~/.codex/config.toml`. Requirements constrain defaults. Current profiles use `~/.codex/profile-name.config.toml` with `--profile profile-name`. Inspect `/status` and `/permissions` on launch and resume.
4. Preserve the intended boundary. [Official examples](https://learn.chatgpt.com/docs/agent-approvals-security) use `codex --sandbox workspace-write --ask-for-approval on-request`, or `--sandbox read-only --ask-for-approval never` for noninteractive read-only work. The config keys are `approval_policy` and `sandbox_mode`. Repeated escalation requests cannot repair a policy forbidding requests.
5. Check `/model` for account availability. The [official model page](https://learn.chatgpt.com/docs/models) gives `codex --model gpt-6.2-sol` and `model = "gpt-6.2-sol"` (checked 2026-11-24). Use it where available; update saved agents and scripts too.
6. Inventory plugins separately with `codex plugin marketplace list`. For a deliberate catalog refresh use `codex plugin marketplace upgrade marketplace-name`. [Plugin docs](https://developers.openai.com/plugins/build/plugins) retain `.codex-plugin/plugin.json` compatibility. Portable `mcp.json` requires transport fields: blindly renaming `.mcp.json` is not a migration. These are current compatibility checks, not claimed new changes in this release.

## What to test

| Constraint | Check before rollout |
|---|---|
| Interactive team use | In a disposable repo, try a shell read, a permitted edit and a denied operation; compare `/status` before and after resume |
| Scripted runs | Run your existing smoke task with explicit model and permissions; verify exit handling and file diff |
| Long-running tools | Interrupt a disposable task; verify cancellation and inspect partial output before retrying |
| Plugin-dependent work | Verify discovery and one read-only call; refresh catalogs separately |

## Community evidence

rklos reports workspace directory operations denied in [issue 40565](https://github.com/openai/codex/issues/40565); independent commenters reproduce related failures. This motivates testing rename/removal, not claiming the target release fixes every sandbox bug. jcy0720 reports repeated auto-review calls after Linux sandbox startup fails in [issue 39626](https://github.com/openai/codex/issues/39626), with “bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted”. Both fetched checked 2026-10-20; the latter starts on the IDE surface, so it is a shared-runtime caution, not a stable CLI benchmark.

## Pitfalls

Do not treat a notice as a TOML parse failure, switch off sandboxing to pass a test, assume saved permissions outrank policy, or confuse catalog refresh with binary upgrade. Completed commands may already have changed files when a turn is interrupted.

## A prompt to give your agent

> Your training data predates these changes. Read <https://github.com/openai/codex/releases/tag/rust-v0.163.0> and <https://github.com/openai/codex/pull/52160>, then <https://learn.chatgpt.com/docs/config-file/config-basic> and <https://learn.chatgpt.com/docs/agent-approvals-security> before proposing edits. Do not guess flags or model IDs. Inventory the installed CLI and non-secret config overrides. Remove retired shell flags, preserve managed policy, and test execution plus permission restoration in a disposable repo. Read https://learn.chatgpt.com/docs/models before selecting an accessible replacement. Report partial work after interruption.

## Limits

Checked 2026-10-20. No install, upgrade, login, permission experiment or plugin execution was performed. Historical reports do not prove fixes in the target release. The redirected OpenAI changelog did not expose matching CLI release entries; GitHub establishes stable history, while current OpenAI docs establish commands and model deprecation. No price comparison or complete migration from every older release.

## Packages

### A. OpenAI Codex CLI (cli_tool, v0.163.0)

OpenAI's terminal coding agent. Pinned @openai/codex@0.163.0 from npm, run from a locked install: WhatWorks checks only its --version and --help.

- Evidence: untested so far, be a founding tester; checks: 2 defined; risk: external_install, network
- Works with: not stated
- Risk: external_install, network; security scan: warned
- Last confirmed working: not yet
- Founding testers: open (the first 10 people to report a trial get a spot)
- Source: not public
- Try it: with the WhatWorks MCP server (see the WhatWorks note at the end of this page), call `get_package` with `openai-codex-cli-tool` to read it; when the user agrees to try it, call again with `start_trial: true` (needs an account: https://whatworks.dev/connect.md) for a trial ticket.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.