Codex APP 更新最新版后报错

今天早上把 Codex APP 更新到最新版 (26.608.12217) 之后,好像在 Code Review 的场景里,就直接报这个错:

[!abstract]
Invalid Value: ‘tools’. Function ‘functions.spawn_agent’ declares encrypted parameters but is not configured for encrypted tool use by this model.

你们也遇到这种情况了吗?我去 Codex 的 GitHub issue 只找到一个类似的反馈:

github.com/openai/codex

invalid_request_error when asking for code review

已打开 04:50PM - 09 Jun 26 UTC

ctrlalttaco

bug

code-review

CLI

subagent

What version of Codex CLI is running?

codex-cli 0.138.0

What subscript…ion do you have?

Pro 5x

Which model were you using?

gpt-5.5 high

What platform is your computer?

Darwin 25.5.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

ghostty 1.3.1

Codex doctor report

{
"schemaVersion": 1,
"generatedAt": "1781023674s since unix epoch",
"overallStatus": "ok",
"codexVersion": "0.138.0",
"checks": {
"app\_server.status": {
"id": "app\_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/Users/steve/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/Users/steve/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/Users/steve/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/Users/steve/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/Users/steve/.codex/app-server-daemon/app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 0
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "/Users/steve/.codex/auth.json",
"auth storage mode": "File",
"stored API key": "false",
"stored ChatGPT tokens": "true",
"stored agent identity": "false",
"stored auth mode": "chatgpt"
},
"remediation": null,
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX\_HOME": "/Users/steve/.codex",
"config.toml": "/Users/steve/.codex/config.toml",
"config.toml parse": "ok",
"cwd": "/Users/steve/code/acf-ftf-2",
"enabled feature flags": "shell\_tool, unified\_exec, shell\_snapshot, terminal\_resize\_reflow, codex\_git\_commit, sqlite, memories, child\_agents\_md, hooks, enable\_request\_compression, multi\_agent, multi\_agent\_v2, apps, tool\_suggest, plugins, in\_app\_browser, browser\_use, browser\_use\_external, computer\_use, plugin\_sharing, image\_generation, skill\_mcp\_dependency\_install, steer, guardian\_approval, goals, collaboration\_modes, tool\_call\_mcp\_elicitation, personality, fast\_mode, tui\_app\_server, prevent\_idle\_sleep, workspace\_dependencies",
"feature flag overrides": "codex\_git\_commit=true, memories=true, child\_agents\_md=true, multi\_agent\_v2=true, prevent\_idle\_sleep=true",
"feature flags enabled": "32",
"log dir": "/Users/steve/.codex/log",
"mcp servers": "1",
"model": "gpt-5.5",
"model provider": "openai",
"sqlite home": "/Users/steve/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.54.0",
"details": {
".git entry": "directory",
"PATH git #1": "/opt/homebrew/bin/git",
"PATH git #2": "/usr/bin/git",
"PATH git entries": "2",
"git branch": "main",
"git build options": "git version 2.54.0; cpu: arm64; no commit associated with this build; sizeof-long: 8; sizeof-size\_t: 8; shell-path: /bin/sh; rust: disabled; feature: fsmonitor--daemon; gettext: enabled; libcurl: 8.7.1; zlib: 1.2.12; SHA-1: SHA1\_DC; SHA-256: SHA256\_BLK; default-ref-format: files; default-hash: sha1",
"git exec path": "/opt/homebrew/opt/git/libexec/git-core",
"git version": "git version 2.54.0",
"repo detected": "true",
"repo root": "/Users/steve/code/acf-ftf-2",
"selected git": "/opt/homebrew/bin/git"
},
"remediation": null,
"durationMs": 13
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/opt/homebrew/bin/codex",
"PATH codex #2": "/opt/homebrew/bin/codex",
"PATH codex entries": "2",
"current executable": "/opt/homebrew/lib/node\_modules/@openai/codex/node\_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin/codex",
"install context": "npm (package /opt/homebrew/lib/node\_modules/@openai/codex/node\_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin, bin /opt/homebrew/lib/node\_modules/@openai/codex/node\_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin, resources /opt/homebrew/lib/node\_modules/@openai/codex/node\_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-resources, path /opt/homebrew/lib/node\_modules/@openai/codex/node\_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-path)",
"managed by bun": "false",
"managed by npm": "true",
"managed package root": "/opt/homebrew/lib/node\_modules/@openai/codex",
"npm update target": "/opt/homebrew/lib/node\_modules/@openai/codex"
},
"remediation": null,
"durationMs": 98
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "1",
"disabled servers": "0",
"stdio servers": "1"
},
"remediation": null,
"durationMs": 0
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"proxy env vars": "none"
},
"remediation": null,
"durationMs": 0
},
"network.provider\_reachability": {
"id": "network.provider\_reachability",
"category": "reachability",
"status": "ok",
"summary": "active provider endpoints are reachable over HTTP",
"details": {
"ChatGPT base URL": "https://chatgpt.com/backend-api/ reachable (HTTP 404)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 529
},
"network.websocket\_reachability": {
"id": "network.websocket\_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 2 IPv6, first IPv4",
"auth mode": "chatgpt",
"connect timeout": "15000 ms",
"endpoint": "wss://chatgpt.com/backend-api/<redacted>",
"handshake result": "HTTP 101 Switching Protocols",
"model provider": "openai",
"models etag present": "true",
"provider name": "OpenAI",
"proxy env vars": "none",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 821
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running npm on macos-aarch64",
"details": {
"commit": "unknown",
"current executable": "/opt/homebrew/lib/node\_modules/@openai/codex/node\_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin/codex",
"install method": "npm (package /opt/homebrew/lib/node\_modules/@openai/codex/node\_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin, bin /opt/homebrew/lib/node\_modules/@openai/codex/node\_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin, resources /opt/homebrew/lib/node\_modules/@openai/codex/node\_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-resources, path /opt/homebrew/lib/node\_modules/@openai/codex/node\_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-path)",
"platform": "macos-aarch64",
"version": "0.138.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "/opt/homebrew/lib/node\_modules/@openai/codex/node\_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-path/rg",
"search command readiness": "file exists",
"search provider": "bundled"
},
"remediation": null,
"durationMs": 0
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "OnRequest",
"codex-linux-sandbox helper": "none",
"execve wrapper helper": "/Users/steve/.codex/tmp/arg0/codex-arg0cfiwMD/codex-execve-wrapper",
"filesystem sandbox": "restricted",
"network sandbox": "enabled"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX\_HOME": "/Users/steve/.codex (dir)",
"active rollout files": "188 files, 352904346 total bytes, 1877150 average bytes",
"archived rollout files": "1 files, 6890571 total bytes, 6890571 average bytes",
"goals DB": "/Users/steve/.codex/goals\_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/Users/steve/.codex/logs\_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/Users/steve/.codex/log (dir)",
"memories DB": "/Users/steve/.codex/memories\_1.sqlite (file)",
"memories DB integrity": "ok",
"sqlite home": "/Users/steve/.codex (dir)",
"state DB": "/Users/steve/.codex/state\_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 434
},
"state.rollout\_db\_parity": {
"id": "state.rollout\_db\_parity",
"category": "threads",
"status": "ok",
"summary": "rollout files and state DB thread inventory agree",
"details": {
"default model provider": "openai",
"rollout DB active files": "188",
"rollout DB active rows": "188",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "1",
"rollout DB archived rows": "1",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread ids": "0",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "0",
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=189",
"rollout DB rows": "189",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "vscode=72, subagent:other=67, subagent:thread\_spawn=29, cli=18, subagent:review=3",
"rollout DB stale rows": "0"
},
"remediation": null,
"durationMs": 991
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-US",
"details": {
"LANG": "en\_US.UTF-8",
"os": "Mac OS 26.5.1 [64-bit]",
"os language": "en-US",
"os type": "Mac OS",
"os version": "26.5.1"
},
"remediation": null,
"durationMs": 3
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORTERM": "truecolor",
"TERMINFO": "/Applications/Ghostty.app/Contents/Resources/terminfo (dir)",
"TERM\_PROGRAM": "ghostty",
"color output": "enabled",
"effective locale": "en\_US.UTF-8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "Ghostty",
"terminal size": "134x65",
"terminal version": "1.3.1"
},
"remediation": null,
"durationMs": 0
},
"terminal.title": {
"id": "terminal.title",
"category": "title",
"status": "ok",
"summary": "terminal title default",
"details": {
"terminal title activity": "true",
"terminal title items": "activity, project-name",
"terminal title project source": "git repo root",
"terminal title project value": "acf-ftf-2",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.138.0",
"check for update on startup": "true",
"last checked at": "2026-06-09T16:43:04.042940Z",
"latest version": "0.138.0",
"latest version status": "current version is not older",
"npm update target": "/opt/homebrew/lib/node\_modules/@openai/codex",
"update action": "npm install -g @openai/codex",
"version cache": "/Users/steve/.codex/version.json"
},
"remediation": null,
"durationMs": 546
}
}
}

What issue are you seeing?

› I need code reviews on the following PRs. Provide your feedback here with explanations so I can understand how I should word the
feedback in the PR comments
https://github.com//pull/129
https://github.com//pull/143
https://github.com//pull/144
■ {
“type”: “error”,
“error”: {
“type”: “invalid_request_error”,
“message”: “Invalid Value: ‘tools’. Function ‘functions.spawn_agent’ declares encrypted parameters but is not configured for
encrypted tool use by this model.”,
“param”: “tools”
},
“status”: 400
}

What steps can reproduce the bug?

Uploaded thread: 019ead44-87a8-7251-aea4-1abf3f515ea8

What is the expected behavior?

_No response_

Additional information

_No response_

现在直接没法写代码了,真是……

Mark,等大佬出解决方案

这东西就那样,回退版本吧

我也遇到了!昨天晚上更新完,今天早上想 review 一下新写的函数就报这个错,关键是昨天还好好的。有人知道怎么临时绕过吗?项目卡住了

小白问一下,这个报错意思是说模型不支持加密工具,但函数声明了加密参数?这跟权限配置有关吗?我不太确定

楼上给的 GitHub issue 链接我看了,楼主你试过他们说的临时方案没?就是去设置里把 ‘Enable encrypted tool use for subagents’ 那个选项关掉,好像有人说能行

这种更新引入 breaking change 还不提前通知的情况真的绝了,测试是怎么做的?付费用户成付费测试员了是吧?我看 issue 下面一堆人骂,官方到现在还没回复,效率感人

遇到过类似的,但不是在这个场景。我之前用他们那个 workflow 功能调用外部 API 也报过 ‘encrypted parameters’ 的错,折腾了半天发现是本地配置的密钥文件格式不对,重新生成一下就解决了。不过跟你的报错路径不太一样,仅供参考

你帖子里那个 doctor report 显示 app server 没在跑 (‘background server is not running’),这个是正常的吗?还是说跟这个报错有关系?需不需要先手动启动一下服务再试试看?

哎,周末本来想搞点代码,结果被这个破事耽误一上午。我最后是直接找到旧版本的安装包降级回去了,版本号 26.607.12205 目前工作正常。先去官网下载页找历史版本吧,别等修复了

说起更新,你们觉得这次新版的 UI 改动怎么样?我感觉侧边栏图标变小了有点不习惯,而且反应好像还变慢了,是我的错觉吗?

降级回旧版本确实是目前最快的解法,我也是退到旧包先用着

breaking change还不提前通知,付费用户硬生生成测试员了