The post has been translated automatically. Original language: Russian
OpenAI has released Codex CLI 0.172.0, a new version of its console AI agent for development. It was released on November 24, 2026. For those who run the agent in scripts and CI, only two things are important in it. A resumed non-interactive session now saves the sandbox settings, and MCP servers start only when they are really needed. In addition, there are notable improvements to the terminal interface and error handling in the release.
The sandbox is no longer lost when resuming
The codex exec command starts the agent without an interactive interface, and codex exec resume continues the previously saved session. Prior to this version, such a continuation might not start with the parameters that the session initially worked with. Now, when resuming, the saved sandbox rights, the working directory, and the workspace roots are restored, if they have not been explicitly redefined.
Another fix concerns deleted sessions. Work directories, workspace roots, and writable paths are now saved correctly, even if the client and server have different operating systems.
MCP servers and confirmation of actions
- Optional MCP servers running via stdio are now started by default when the tool is first invoked, if their list of tools is already in the cache. Servers that the agent has not accessed do not start at all.
- In the config.toml file, you can now assign an approval reviewer separately for each tool of the connected application. This way, the confirmation rules can be set point-by-point, rather than in one mode for the entire application.
- App-server clients can choose Amazon Bedrock Runtime as their provider when configuring or logging in.
Interface and diagnostics
From the terminal, you can now click on links to threads from search results and transcripts.: This opens saved conversations and nested agents. The arguments of the supported slash commands are supplemented with the Tab key, for example, "/mcp lo" turns into "/mcp login". In the Agent Control Center, you can switch between task groups using Shift+Up and Shift+Down.
Provider errors are now displayed as soon as they arrive in the response stream, and the API cost limit is reached separately. If you interrupt the parent agent's turn, the responses of the child agents in the queue are not lost and are transferred to the next turn.
In the service changes, Code Mode has been switched to gRPC for all connections to the host, and the code_mode_host_grpc setting has been deprecated. When formatting Python code and generating SDK types, dependency hashes are now checked against the lock file.
What does this mean in practice?
If you use codex exec in pipelines and continue interrupted tasks via resume, the update should be put first. Previously, the session could continue with different permissions or in a different directory, and the agent did not get the access to files that you expected. After updating, check the scripts that explicitly pass the sandbox or working directory flags when resuming: explicit values are still more important than saved ones, and a forgotten old flag may override the correct settings.
Lazy start of MCP servers speeds up the start, but changes the moment when errors appear. A server with an incorrect configuration or an unavailable dependency will crash not when the agent is started, but when the tool is called for the first time, that is, in the middle of the task. If you are monitoring an agent in CI, keep this in mind when parsing logs.
If code_mode_host_grpc is specified in config.toml, remove it in advance: the setting is outdated, and its support may be removed in future versions. It is convenient to use object-by-object reviewers for tools of connected applications as an additional level of protection. It is better to configure them explicitly than to rely on a common confirmation mode for all agent actions.
The draft text was prepared with the participation of AI, the facts were checked against the original source — the official ChatGPT and Codex changelog from OpenAI
OpenAI выпустила Codex CLI 0.172.0, новую версию своего консольного ИИ-агента для разработки. Релиз вышел 24 ноября 2026 года. Для тех, кто запускает агента в скриптах и CI, в нём важнее всего две вещи. Возобновлённая неинтерактивная сессия теперь сохраняет настройки песочницы, а MCP-серверы стартуют только тогда, когда они действительно нужны. Кроме того, в релизе есть заметные доработки терминального интерфейса и обработки ошибок.
Песочница больше не теряется при resume
Команда codex exec запускает агента без интерактивного интерфейса, а codex exec resume продолжает ранее сохранённую сессию. До этой версии такое продолжение могло стартовать не с теми параметрами, с которыми сессия работала изначально. Теперь при возобновлении восстанавливаются сохранённые права песочницы, рабочий каталог и корни рабочего пространства, если их не переопределили явно.
Ещё одно исправление касается удалённых сессий. Рабочие каталоги, корни рабочего пространства и пути, доступные для записи, теперь корректно сохраняются, даже если у клиента и сервера разные операционные системы.
MCP-серверы и подтверждение действий
- Необязательные MCP-серверы, работающие через stdio, теперь по умолчанию запускаются при первом вызове инструмента, если их список инструментов уже есть в кеше. Серверы, к которым агент так и не обратился, не запускаются вовсе.
- В файле config.toml теперь можно назначить проверяющего (approval reviewer) отдельно для каждого инструмента подключённого приложения. Так правила подтверждения можно задавать точечно, а не одним режимом на всё приложение.
- Клиенты app-server при настройке или входе в систему могут выбрать Amazon Bedrock Runtime в качестве провайдера.
Интерфейс и диагностика
Из терминала теперь можно переходить по ссылкам на треды из результатов поиска и расшифровок: так открываются сохранённые беседы и вложенные агенты. Аргументы поддерживаемых слэш-команд дополняются клавишей Tab, например «/mcp lo» превращается в «/mcp login». В центре управления агентами между группами задач можно переключаться сочетаниями Shift+Up и Shift+Down.
Ошибки провайдера теперь показываются сразу, как только они пришли в потоке ответа, а исчерпание лимита расходов на API определяется отдельно. Если прервать ход родительского агента, ответы дочерних агентов, стоящие в очереди, не теряются и переходят в следующий ход.
В служебных изменениях Code Mode переведён на gRPC для всех подключений к хосту, а настройка code_mode_host_grpc объявлена устаревшей. При форматировании Python-кода и генерации типов SDK хеши зависимостей теперь сверяются с lock-файлом.
Что это значит на практике
Если вы используете codex exec в пайплайнах и продолжаете прерванные задачи через resume, обновление стоит поставить в первую очередь. Раньше продолжение сессии могло пойти с другими правами или в другом каталоге, и агент получал не тот доступ к файлам, на который вы рассчитывали. После обновления проверьте скрипты, которые при resume явно передают флаги песочницы или рабочий каталог: явные значения по-прежнему важнее сохранённых, и забытый старый флаг может перекрыть правильные настройки.
Ленивый запуск MCP-серверов ускоряет старт, но меняет момент, когда проявляются ошибки. Сервер с неверной конфигурацией или недоступной зависимостью упадёт не при запуске агента, а при первом вызове инструмента, то есть посреди задачи. Если вы мониторите агента в CI, учитывайте это при разборе логов.
Если в config.toml указан code_mode_host_grpc, заранее уберите его: настройка устарела, и её поддержку могут убрать в следующих версиях. Пообъектные ревьюеры для инструментов подключённых приложений удобно использовать как дополнительный уровень защиты. Лучше настроить их явно, чем полагаться на общий режим подтверждения для всех действий агента.
Черновик текста подготовлен с участием ИИ, факты сверены с первоисточником — официальный журнал изменений ChatGPT и Codex от OpenAI
Comments 0
Newest Popular