Skip to content

chore(upstream): sync Codex 0.166.0 - #300

Merged
sunerpy merged 891 commits into
mainfrom
upstream-sync/0.166.0
Nov 1, 2026
Merged

sunerpy merged 891 commits into
mainfrom
upstream-sync/0.166.0

Conversation

@sunerpy

@sunerpy sunerpy commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

把 Codex rust-v0.166.0(6ff1e1ca3b)同步到 Zuno main(9202e2c972)。0.162.1 之后上游又发了 0.163.0、0.164.0、0.165.0、0.166.0 四个正式版。巡检按 next 策略逐个重放,从 10-15 起一直停在 0.163.0 的冲突 issue #299。这次直接同步最新的 0.166.0(policy: newest),所以 0.163–0.165 不会有对应的 Zuno 版本。这是手工解决的候选,需要手工合并。

Closes #299

改名重放

沿用 main 上的规则:

  • 自动解决 29 个纯改名冲突,结构性合并 10 个;
  • 删除 3 个上游删掉的快照,刷新 44 个改名文件,改名 15 个上游新增的快照;
  • 28 处没有谓词担保的改写进了 review,已逐条核对。其中三类不对,已改回:
    • Windows 系统策略路径被改成 OpenAI\Zuno(注册表键和测试),但同文件的 ProgramData 路径仍是 OpenAI\Codex,Unix 上一直是 /etc/codex。改回 Codex,系统层和以前一样不改名。
    • 新模型 GPT-6.1 Terra 在上游模型目录里的描述是 "GPT-6.1 Terra Codex model.",3 个模型选择快照被改成了 "Zuno model",与数据不符,已改回。
    • 上游新增的 5 处测试仍用 CODEX_HOME 给子进程隔离主目录(core/tests/common/exec_server.rs、exec-server-cli/tests/standalone.rs、exec-server/tests/capabilities_v2.rs、app-server/tests/suite/v2/gcp_setup_tests.rs),改为 ZUNO_HOME。不改的话子进程会读写真实的 ~/.zuno。

剩余 10 个冲突

  • .github/workflows/rust-release-zsh.yml:上游不再打包 patched zsh,删掉了这个 workflow。随上游删除,边界脚本里对应的守卫项一并去掉。
  • config/src/config_toml.rs、core/src/config/mod.rs:上游改写了 log_dir 的文档注释,取上游文字,$CODEX_HOME 改为 $ZUNO_HOME。
  • cli/src/main.rs:--profile 报错的命令清单合并上游新增的 migrate-nfs-db 和 Zuno 的 acp。
  • app-server/src/message_processor.rs:time provider 的写法取上游版本。
  • tui/src/ide_context/prompt.rs:上游把 ## My request for …: 标记和解析函数挪进了新模块 tui/src/user_prompt.rs。冲突取上游;Zuno 的写法(写 USER_MESSAGE_BEGIN,也能读旧的 Codex 标记)和对应测试一起搬进新模块。
  • login/src/assets/success.html:保持 Zuno 已删除的 "打开 Codex" 跳转。
  • 3 个 desktop_app_tip_* 快照:Zuno 已删掉桌面 App 提示,保持删除。

适配

  • zuno-workflows:code-mode 的 WaitRequest 新增 max_output_tokens,terminate 改为接收 TerminateRequest,RuntimeResponse::Result 新增 result_buffered_for。
  • app-server-daemon:LifecycleCommand::Restart 变成带 feature_overrides 的变体,fail-closed 拦截条件和测试随之改为 Restart { .. },拦截行为不变。
  • cli/src/acp_cmd.rs:cloud_config_bundle_loader_for_storage 改名为 managed_config_bundle_loader_for_storage,新增 requirements 参数,照上游 exec 入口的写法传入。
  • codex-agent-extension:上游删除 detached review 时,把它从工作区依赖和 app-server 依赖里去掉了。Zuno 的工作流代码要用它,两处都加了回来。
  • 单文件二进制(cli/src/embedded_code_mode_host.rs):上游退役了 execve wrapper,Arg0DispatchPaths::main_execve_wrapper_exe 现在永远为空。Zuno 原来靠它定位 arg0 的别名目录,于是内嵌 code-mode host 的别名建不出来,code_mode_only 模型调用工具时报 "failed to spawn code-mode host"。现在改用 arg0 在同一目录创建的 codex-linux-sandbox 别名定位,"不往真实二进制旁边写"的保护不变。
  • 打包:上游发布包新增独立执行器 bin/codex-exec-server,打包脚本无条件要求它。zuno-ci.yml 的编译清单加上 --bin codex-exec-server,smoke_zuno_package.py 检查它的架构并运行 --version。
  • scripts/codex_package/cli.py:上游把打包入口拆成 assemble_package 和 archive_package,结构性合并后 Zuno 那行打印引用了已不在作用域里的 variant,打包时会 NameError。已修复。Zuno 的两个打包单测随上游接口调整(去掉 zsh 参数,加上 exec-server)。
  • core/tests/suite/hooks_executor.rs:新测试的 hook 脚本往 $CODEX_HOME 写文件,执行器辅助函数现在设的是 ZUNO_HOME,脚本同步改为 $ZUNO_HOME。

快照(上游结构或文字变化后,按 Zuno 文案重新渲染,insta 头部保持原样)

  • core 场景快照 19 个:差异只有提示词 hash,以及 "Zuno" 少一个字导致的截断位置变化。mcp_ema__enterprise_sign_in_required 改为 "in Zuno",与产生这条消息的 codex-mcp/src/connection_manager/startup.rs 一致。
  • app-server thread_sample__sample_inherits_parent_context:Zuno 自带 skill 的描述写的是 $ZUNO_HOME,hash 随之变化。
  • cli:doctor_enterprise_network 两份快照显示真实版本 v0.166.0(上游源码树的版本是 0.0.0),以后的版本号联动要把它们算进去;zuno__doctor__…websocket_probe_human_output 新建、zuno__exec_server_args_tests__… 同步,内容与上游的 codex__ 版相同。
  • tui:command_center_daemon_shutting_down 折行和 mermaid 方框宽度("Zuno" 少一个字)。

门禁修复(finalize 之后的追加提交 90d99ea)

上游给 codex_package.test_layout 新增了写 .tar.zst 包的 macOS 测试。CodeBuild 镜像里没有 zstd,仓库里的 zstd DotSlash 清单又只有 Windows 平台,所以首轮门禁的 static job 在这里失败(run 41266368293)。static job 的 apt 依赖里加上 zstd,和 package job 的做法一样。去掉 PATH 里的 zstd 后在本地能复现同样的 5 个错误。

第二轮门禁(run 41266972645)的两个 Windows 包失败:x86_64 在编译 zuno 时报 rustc-LLVM ERROR: out of memory,aarch64 的 runner 直接没了日志。codex-exec-server 依赖 codex-core 和 codex-app-server,链接时用的内存和 zuno 差不多;两者在 15 GB 的 Windows 容器里以 -j2 同时链接,内存就不够了。追加提交 288cc19 把它放到第二遍 cargo 里:第二遍选的包和第一遍相同,复用第一遍的全部产物,只单独链接 codex-exec-server。

派生产物

cargo update --workspace(第三方依赖与上游 Cargo.lock 完全一致,只多 Zuno 自己的 crate 和版本号);write_schema_fixtures.py 跑两次(UV_PYTHON=3.12);codex-write-config-schema。注意上游这次把 v8 换成了 git 依赖(seanh-oai/rusty_v8@350c5a85),cargo 会连同约 2.5 GB 子模块一起拉取。

本地验证

  • 全工作区 cargo check --all-targets 通过(排除需要 GStreamer 的 codex-voice-host);cargo xwin check(x86_64-pc-windows-msvc:zuno、codex-command-runner、codex-windows-sandbox-setup、codex-exec-server、codex-agent-extension、zuno-acp、zuno-workflows)通过。
  • 门禁 static job 的各项在本地全部通过:CI 定向测试清单、cargo check --release -p codex-cli --bin zuno、cargo fmt --check、8 个包的 clippy -D warnings、边界脚本、Python 工具测试、codex_package 测试、actionlint。
  • tui、app-server、cli 全量 8866 个测试,97 个失败:
    • 77 个是上一轮已知的本机红灯;
    • 12 个是上游新增或改动的受管 daemon、自动更新测试,失败信息都是 Zuno 的拦截提示,说明 fail-closed 生效;
    • 1 个 remote-control 测试复用了 daemon_update_recovery 的辅助函数,后者给子进程传 CODEX_HOME,与 main 上已有的 17 个红灯同因;
    • 7 个是上面列出的快照,已更新。
  • codex-core 全量 5565 个测试,42 个失败:15 个是已知红灯,19 个快照和 1 个 hooks 测试已修好;另外 7 个(agent control ×3、multi_agents ×2、guardian 并行投递 ×2)在纯上游 0.166.0(同一环境)上以同样方式失败。
  • 本机构建 musl 单文件二进制(static-pie,zuno 0.166.0):
    • zuno_standalone_smoke.py 在本机和断网的 python:3.13-slim 里都通过,code_mode_host: embedded;修复前同一冒烟失败在 "failed to spawn code-mode host";
    • 空 scratch 镜像里 --version 正常;
    • zuno_standalone_live_check.py 对本机 Kiro(gpt-5.6-sol,code_mode_only)通过:批准的命令执行了,拒绝的文件修改没有发生。

Zuno-Source-Commit: 9202e2c
Zuno-Upstream-Tag: rust-v0.166.0
Zuno-Candidate-Commit: 2c41db5

viyatb-oai and others added 30 commits October 23, 2026 18:40
## What changed

- Expose `aws_sigv4` actions in version 2 MITM permissions configuration and the config schema, rejecting multiple signing actions per hook.
- Give local managed commands placeholder AWS credentials for the selected signing pair, and mask configured credentials in environment values and protected shell snapshots.
- Set `AWS_CA_BUNDLE` to the managed proxy CA bundle when unset, and require `features.credential_masking` for local AWS signing hooks.
- Validate placeholders against every configured signing pair to prevent overlap with real credentials.

## Testing

Extend configuration, signing, and TLS forwarding tests to cover action resolution, invalid signing configuration, credential masking, CA trust, snapshot protection, and exclusion of local AWS defaults from remote environments.

GitOrigin-RevId: 81dfdea30ebde74829882b38891ea41e9737058a
…555)

## What changed

Defer truncation of synchronous Guardian assistant and reasoning entries until `ContextProfile::prepare_transcript`, so the resolved profile's message limit applies before rendering and retention accounting. Keep encrypted agent messages whole when they fit, or replace them with an omission notice at the same transcript position when they exceed the limit.

## Testing

Extend coverage to verify that oversized-action reviews retain assistant commentary and final-answer evidence up to the synchronous message cap, and that encrypted-message omission produces equivalent output through synchronous transcript collection.

GitOrigin-RevId: e17fbfa7b7131559b0599ac1d57987a8d94e137c
## What changed

- Always use the retained conversation backend for asynchronous classification; keep snapshot sampling test-only.
- Accept legacy `async_classifier_mode` values in configuration and model metadata but ignore them. Emit a startup warning when `[features.guardianv2].async_classifier_mode` is configured.
- Ignore legacy classifier mode differences when checking model-switch compatibility, and fail closed if the conversation backend is missing.

## Testing

Update coverage for legacy configuration warnings, model-switch compatibility, retained approval-review context, and conversation-based scoring.

GitOrigin-RevId: 5e8bb7e4e6e7d1589572f38bfe2498c9fa6825a0
## Why

The transport tests used a separate, test-only snapshot sampler instead of the production retained sampler, leaving them exercising different response ownership and cancellation paths.

## What changed

Route the transport test helper through `sample_retained` and remove snapshot execution, its active-request supersession bookkeeping, and test-only compaction compatibility fields. Simplify request-token metrics to reflect the remaining admitted-request path.

## Testing

Update tests to verify early score delivery while the retained response remains pending, WebSocket cancellation and connection reuse, and HTTP cancellation before headers or during response draining. Assert that HTTP cancellation releases classification permits.

GitOrigin-RevId: 33250103ff376af6bcd0f81ef27cdcf057f2bc5f
## What changed

Remove snapshot instruction deduplication, separate retained-assistant framing, and the associated omission-metadata special cases. Use `retain_new_instructions` in transcript rendering tests and replace the test-only Decisions snapshot adapter with the conversation adapter.

## Testing

Extend retained-source delivery and incomplete-metadata coverage to both synchronous and asynchronous context profiles. Keep Decisions HTTP, eviction, and cancellation tests exercising the conversation adapter.

GitOrigin-RevId: 3906f7d7349f73931e570ffa649377c3a235317a
## Why

Deriving a Vertex AI endpoint previously required environment variables. Allow the project and location to be specified directly in GCP provider configuration.

## What changed

- Add `model_providers.gcp.project_id` and `model_providers.gcp.location`, with each taking precedence over its corresponding environment variable. Keep `global` as the default location and preserve explicit `base_url` overrides.
- Validate configured endpoint fields and preserve them through thread configuration serialization.
- Apply built-in GCP defaults, including default command authentication, when checking managed provider requirements so unchanged requirements are accepted.

## Testing

Add coverage for endpoint precedence, invalid explicit configuration, provider construction, thread configuration round trips, and managed GCP requirement checks, including repeated model listing.

GitOrigin-RevId: c3704bcc0b7d4872374e2cae623fd24d75fb02b4
## What changed

- Replace the upstream V8 module and dependency bridge with a source repository rule and `third_party/v8/engine.BUILD.bazel`, wiring dependencies and Python generator inputs directly from Codex.
- Import source filegroups from the pinned upstream BUILD, rejecting missing boundaries, malformed sections, and unexpected compiled targets.
- Define fixed source feature selections in the engine BUILD while retaining release ABI, runtime, and CPU settings. Reuse upstream platform configuration and limit the build integration patch to `bazel/defs.bzl`.
- Document source inventory review and canary validation for V8 upgrades.

GitOrigin-RevId: 1b42672b77fb8f0f34c41ae3345c0e302a892d44
## Why

V8 source and release artifacts require different ABI and C++ runtime settings. Selecting a named artifact should also select its required settings, without callers coordinating separate sandbox, pointer compression, libc++, and CPU flags.

## What changed

- Add Bazel transitions for `source`, `release`, and `sandbox_release` profiles. Source builds use the sandbox ABI and workspace runtime; release pairs use Chromium's pinned runtime with their respective ABI.
- Select the V8 CPU from the artifact target and enforce matching target platform constraints.
- Make the underlying V8 settings unavailable as CLI flags and remove redundant configuration from release tooling and workflows.
- Select Darwin/Linux prebuilts solely through `rusty_v8_from_source`, keeping source archives and bindings paired when enabled.

GitOrigin-RevId: f72fc06b6f74b79ab2ab8ca697e4f2006076a833
…7166)

## Why

Automatic marketplace update failures were only logged, leaving users without a visible startup warning.

## What changed

Send marketplace update errors and task startup failures through app-server warning notifications. Queue background warnings until a client initializes in both standalone and in-process servers, and centralize startup configuration warning delivery.

## Testing

Add a TUI integration test and snapshot covering two marketplace name mismatch failures, the warning count, and navigation between their details with `F2` and the arrow keys.

GitOrigin-RevId: af55a5555affd9d89ac15a546163daeaafd3b3e8
## What changed

Emit `codex_cua_tool_call_started` for `js` MCP calls on Node REPL-backed connectors. Include start time, tool identity, plugin and connector IDs, and available thread and response attribution without recording tool arguments.

Suppress duplicate starts and replayed completions for CUA calls while retaining the existing MCP completion event. A completion received without a start does not prevent a later valid lifecycle from being recorded.

## Testing

Add a lifecycle regression test covering missing starts, duplicate notifications, replay after completion, attribution fields, timestamps, and exclusion of tool arguments from serialized events.

GitOrigin-RevId: 68554ad76c636bb3c2be38bda56f5ea6da8d9830
## What changed

- Add `.nvmrc` pinning Node.js to `24.22.1` and raise the root package's minimum Node.js version to match.
- Use `.nvmrc` in repository checks, SDK CI, and npm packaging and publishing workflows.
- Update MCP conformance instructions to use the repository's pinned Node.js version.

GitOrigin-RevId: d864875e538de2b99df73e5a03fc870ce0f90cf0
## What changed

- Rename ChatGPT-specific bundle loaders to `chatgpt_config_bundle_loader*` and use managed-config terminology for shared loader plumbing.
- Pass `Config` directly when updating the app-server's managed configuration loader.
- Share configuration loading, logging setup, and result handling between browser and device-code login.
- Expose the CLI cloud-config helpers and `provider_uses_first_party_auth_path` through their library APIs.

## Testing

Extend CLI login coverage to verify that `forced_login_method="api"` rejects both `login` and `login --device-auth` while preserving saved API-key credentials.

GitOrigin-RevId: 9e8fa6110dc80882ba365e550b48ac77da604940
## What changed

- Refresh the DotSlash artifact URLs, sizes, and digests for all four supported platforms.
- Update the documented toolchain to `nightly-2026-08-20` and clarify how the bundled runner and repository wrapper normalize Dylint library filenames.

GitOrigin-RevId: f78190dd5fdab81e5accd20e811af51524c0864a
## What changed

- Add opt-in runtime authentication through `ModelClient::with_runtime_auth`, requiring the provider and runtime manager to share the selected OpenAI credentials.
- Keep runtime identity, credentials, routing, and transport selection consistent for each request and its retries, signing a fresh assertion for each attempt.
- Apply authentication asynchronously to WebSocket handshakes, replace stale authentication headers, and reconnect when the runtime changes.
- Reject account, organization, or project selectors that conflict with the registered runtime, and preserve gateway OAuth composition.

## Testing

Add coverage for dual-header and assertion-only authentication, HTTP retries, runtime replacement and account switches, stale WebSocket headers, selector mismatches, gateway OAuth failures, transport revocation, and Realtime compatibility.

GitOrigin-RevId: 45b9efc2c80481406a0f6f6396a8cdd21d933c12
## What changed

- Add nullable `startedAtMs` and `completedAtMs` fields to `ThreadItem` in live notifications and turn history. Values are Unix milliseconds when recorded.
- Preserve recorded item times through history reconstruction, pagination, and resume, including command start times recorded during approval.
- Separate the Rust item payload into `ThreadItemPayload` while keeping the JSON payload flat, and update consumers, schemas, and generated TypeScript and Python types.

## Testing

Extend coverage for timestamp serialization, history reconstruction, paginated reads and resume, and persisted Python SDK items.

GitOrigin-RevId: ecbcee95af52db7c807b46a6e9deb30e5fba1f80
## What changed

- Add `body_secret_substitution` actions to version 2 MITM configuration, replacing exact opaque placeholders with secrets from environment variables or files within the matching hook's scope.
- Bound body size, expansion, replacement count, and search work. Reject overlapping matches, compressed payloads, trailers, and supplied payload-integrity headers.
- Recompute `Content-Length` and substitute before SigV4 signing so signatures cover the transmitted body.

## Testing

Add coverage for markers split across chunks, expansion limits, invalid payloads, overlapping bindings, secret redaction, and search limits. Add a TLS forwarding test that verifies hook scope and independently checks the signature of the substituted body.

GitOrigin-RevId: fa95c9ae0c8fc8f695e03c0e87a0a4875d8418fd
…175)

## What changed

- Use the managed configuration loader in CLI, exec, TUI, and app-server configuration flows so `requirements.toml` can select a config server.
- Sign in to the config server when needed during interactive TUI startup and CLI login, reload configuration after CLI sign-in, and clear config-server credentials on CLI logout.
- Preserve the app-server's config-server settings and refresh worker across OpenAI login and logout.
- Require config-server settings to be applied when loading CLI and doctor configuration.

## Testing

Add app-server integration tests using a local HTTPS config server to verify managed provider and instruction settings at startup, preservation across API-key login and logout, and cache reuse after restart and thread resume.

GitOrigin-RevId: 27ee81f7943d2290a5c3fcc0ac556579ec63f8b4
…#57176)

## What changed

Preserve complete Node REPL tool outputs during synchronous transcript collection and apply the configured output token limit during prompt preparation, after full or delta transcript selection.

## Testing

Update transcript assertions to verify that oversized Node REPL outputs remain intact during collection and are truncated to the selected token cap when rendered.

GitOrigin-RevId: 30ced935c04db456a277f7e58281d45e0e2047dd
## Why

API keys with FedRAMP issuance markers previously used commercial endpoint defaults without a FedRAMP request header.

## What changed

- Recognize `sk-proj-fedramp-` and `sk-svcacct-fedramp-` prefixes as routing hints and send `X-OpenAI-Fedramp: true`, preserving the complete key for authentication.
- Select `https://gov.api.openai.com/v1` for default OpenAI API routing and `https://gov.chatgpt.com/backend-api/` for default ChatGPT backend requests, including model discovery and analytics.
- Preserve explicit endpoint overrides, including an explicitly configured commercial default URL.
- Resolve provider routing and authentication from the same credential snapshot, and apply key-dependent routing to realtime WebSocket startup.

## Testing

Add regression coverage for prefix recognition, unchanged key storage and authorization, provider credential precedence, endpoint overrides, credential rotation, model discovery, analytics routing, and realtime request preparation.

GitOrigin-RevId: a62576ce205c34e067532b8e6c0e431f87a157e2
## What changed

Remove `AuthProvider::resolve_auth_headers` and use `apply_auth_headers` as the async interface for header-only authentication. Migrate providers, callers, and existing tests to the shared interface, passing an empty `HeaderMap` when only authentication headers are needed.

Document that providers may refresh credentials asynchronously and that callers must use the returned header map so providers can remove superseded credentials.

GitOrigin-RevId: 42449de6fddd2be2c50c475c8e92628493197007
## What changed

- Export `StaticNetworkProxyConfig` to parse and serialize network policy with constraints, and validate them before building proxy state.
- Add `--strict` and `from_slice_strict` for managed callers, requiring explicit `constraints` and rejecting unknown fields at every typed level. Default parsing permits top-level `metadata` and omitted constraints while still rejecting unknown policy fields.
- Match allowed Unix socket paths case-sensitively when validating constraints.
- Bound configuration file reads to the size limit plus one byte.

## Testing

Add coverage for constraint round trips, weakened policy rejection, exact socket path matching, parsing modes, and CLI flag selection. Exercise automatic MITM enablement through both parsers.

GitOrigin-RevId: c45d094624240f23dd4659128e72a4208d5d5f1c
## What changed

- Add an optional `name` to `AdditionalContextEntry` across the protocol, app-server schemas, and generated clients.
- Accept names matching `[a-z][a-z0-9_]{0,63}` only for `untrusted` context. Reject invalid names and names on `application` context before admitting turn input, returning invalid-request errors from `turn/start` and `turn/steer`.
- Preserve existing model-input rendering and deduplicate context when only its name changes.

## Testing

Add coverage for valid name boundaries, callers that omit `name`, invalid-name rejection without admitting input, and deduplication across name changes.

GitOrigin-RevId: 2caffa6fddd40ddb178733b335f520f317239edd
## What changed

Introduce `CapturedStream` to keep retained output text and omitted-byte counts together. Use its shared renderer for unified exec logs and model-facing output, preserving omission markers and truncation notices.

GitOrigin-RevId: 045d925df1e31945755196dafed5f78ed507b33b
## Why

Linux sandbox deny-glob expansion silently skipped search roots when metadata lookup failed, potentially discarding a deny rule.

## What changed

Return a fatal error with the search root and underlying error when metadata lookup fails, except for missing or non-directory roots, which still have no matches. Continue following directory symlinks.

## Testing

Add regression tests for symlink-loop metadata errors stopping expansion before scanning, absent and non-directory roots being skipped, and symlink roots expanding to both logical and canonical paths without ripgrep.

GitOrigin-RevId: bd97804ec5b599376c525addaacce6b1f29f9895
## What changed

Add `features.rollout_budget.enforce_limit`, defaulting to `true`. Setting it to `false` keeps shared usage accounting and budget reminders active while allowing turns to continue after the budget is exhausted.

## Testing

Extend coverage to check enforced and advisory budgets on the current and subsequent turns, including a zero-remaining-budget reminder in advisory mode. Verify that configuration defaults to enforcing the limit.

GitOrigin-RevId: deeac8dae5714cc7c10d030cade6f3bfbfc8d3a7
## What changed

Support `model_providers.gcp.credential_file` as an absolute path to a Google Application Default Credentials (ADC) file. Pass it as `GOOGLE_APPLICATION_CREDENTIALS` in the provider auth command's environment, retaining the override for token refreshes without changing the parent process environment.

Validate the path before merging GCP defaults and preserve the setting in thread configuration serialization.

## Testing

Add coverage for invalid paths, configuration round trips, separate provider token caches, and credential overrides retained after a `401` refresh. Include a Windows regression test for credential paths containing command metacharacters.

GitOrigin-RevId: d9a1d4b3775a9a4c4325dddaa153d92a2d1430a0
## What changed

Consume local stdout and stderr receivers directly with `tokio::select!`, removing the intermediate broadcast channel and its lag-related chunk skipping. Drain both streams until they close.

Pass `ExecOutputStream` through local and remote output collection to `OutputBuffers::push_chunk`, while retaining combined output buffers.

## Testing

Update output-buffer tests for the stream argument and exercise stderr chunks in pushed-event and replay test fixtures.

GitOrigin-RevId: be7804fd30cefeb812e372454665923ba051ddb4
## Why

Executors older than `0.164.0` can advertise V2 discovery support without implementing the final contract. Enabling V2 also suppressed V1 discovery for incompatible executors, hiding selected capability roots and skills.

## What changed

Require both the V2 capability flag and an executor version of at least `0.164.0` before issuing `capabilities/discoverV2`. Share this compatibility check between session discovery and the exec-server client. Fall back to V1 when incompatible executors provide no V2 snapshots, clearing any previously stored V2 inventory.

## Testing

Add coverage for version boundaries, prereleases, missing and malformed versions, and transport recovery for compatible executors. Verify that an older executor retains selected plugins and skill instructions through V1 with V2 enabled.

GitOrigin-RevId: 93adf52fc91f02b58fd14f8ff3b093712b3346b8
## Why

Invalid model arguments to `write_stdin` represent a tool failure, but parsing them could fail rollout trace replay.

## What changed

Skip terminal operation creation when dispatched `write_stdin` arguments cannot be parsed or lack a usable `session_id`. Preserve the generic tool call and its error, including the original arguments, so replay can continue.

## Testing

Add a regression test covering malformed JSON and missing or null `session_id` values. Verify that replay retains the failed call's arguments and error without creating terminal operations or sessions.

GitOrigin-RevId: 967e975a88072c169eb3e391d5c62e807d608fbf
## Why

Tool interception and MCP aliases can route a requested callable to a different handler. Rollout traces need to reflect the handler that actually executes, including when an `exec_command` invocation is intercepted as `apply_patch`.

## What changed

Carry an explicit `ToolCallKind` in runtime-start events and use it to update the tool call's execution classification. This replaces MCP-specific payload inspection while preserving the original callable summary and invocation for intercepted patch and aliased MCP calls.

## Testing

Add a regression test verifying that an intercepted `exec_command` is recorded as `ApplyPatch`, retains its original summary and invocation, completes successfully, and creates no terminal operations or sessions.

GitOrigin-RevId: 0e72f3ef55cda2796e779efd16241e4a0dbf0c5b
iceweasel-oai and others added 23 commits October 28, 2026 16:48
Default read access on Windows now excludes network shares unless they contain
the policy or command working directory. Skip object-identity probes and
implicit read enumeration for unrelated shares while preserving explicit
read/write grants.

GitOrigin-RevId: 869bacd578989f5348a449277ffbea795494f487
## Why

A thread runtime can shut down while listener setup is awaiting I/O, and a cold resume can start before the previous listener forwards `ShutdownComplete`. Listener replacement must preserve those buffered terminal events.

## What changed

- Coordinate listener installation and connection subscriptions with pending unloads, and reject closing or replaced runtimes.
- Allow a newly created runtime that has already shut down to drain its queued events, while enforcing one event reader per runtime.
- Track shutdown draining with a shared watch channel so cold resume and runtime replacement wait for terminal events to be processed.
- Serialize idle unloading with goal edits and cold resume, and recheck thread state after acquiring the lock.

GitOrigin-RevId: d05e348b0a81bddb2defa963d0cfd3fde08dbd03
## Why

Waiting for the event channel to close after `ShutdownComplete` retains the thread runtime because the thread owns its event sender. Remaining subscribers still need late notifications after shutdown.

## What changed

- Release runtime references after `ShutdownComplete` while keeping the listener command queue available for ordered notifications and late request resolutions.
- Preserve other subscribers when a client unsubscribes or disconnects from an unloaded thread, and serialize terminal cleanup with cold resumes.
- Return the thread-closing error when `thread/resume` encounters a terminated runtime or a listener that cannot complete the request.
- Close the status watch when removing a thread so a later load gets a fresh watch.

## Testing

Add regression coverage for listeners attached before and after shutdown, verifying runtime release, preservation of remaining subscribers, late notification delivery, and rejection of resumes against a terminated runtime. Add a test that removing and reloading a thread closes the old status watch.

GitOrigin-RevId: 6dda8f83a0fbe06c9a713e9801356753a0de172e
…ssing (#57789)

## Why

When `codex-auto-review` is missing from the model catalog, Guardian falls back to the parent model. Refresh the catalog before accepting that fallback so reviews and checkpoint compatibility checks can use the default reviewer when it becomes available.

## What changed

- Share one refresh attempt per parent session, preserving it across cancelled waiters and retaining the parent fallback if recovery fails.
- Respect explicit reviewer overrides and custom catalogs, and skip recovery for basic sessions.
- Resolve reviewers from the in-memory catalog so a failed disk cache write does not discard a recovered reviewer.
- Apply review deadlines and cancellation to configuration setup, and avoid reviewer resolution during history replay unless checkpoint compatibility requires it.

## Testing

Add coverage for recovery, failed fetches and cache writes, overrides and custom catalogs, checkpoint compatibility, cancelled prewarming, review deadlines, and interruption.

GitOrigin-RevId: 87ae285713afde518a12bc2daba006a043b13bc5
## What changed

- Separate evidence collection from prompt preparation and pass reviewer history, model limits, and image preparation policy through shared `guardian-context` APIs.
- Detect captured images before composition and measure reviewer history tokens only when images and a valid context window require it.
- Share instruction and native-message delivery filtering across budget checks, including restoration of retained evidence after history changes.

GitOrigin-RevId: 65ef53cf0bc22e1bde9abfb7a9ffce65cfab6f1c
Increase GitHub release reads for contract runners from three to five
attempts, with base retry delays of 2, 5, 15, and 45 seconds. Add random
jitter of up to half the base delay before each retry.

GitOrigin-RevId: 9d66ab21a7f7646a9f737e65c08284e82f39991b
## Why

`codex exec` recovers turn items at completion because item notifications can be dropped under backpressure. This recovery needs to respect the thread's history mode.

## What changed

For paginated threads, fetch every page from `thread/items/list`, scoped to the completed turn. Preserve items already present in the completion notification when merging the recovered history, and stop recovery if a cursor repeats. Keep `thread/read` recovery for other history modes.

## Testing

Add regression coverage for recovering a final answer across multiple item pages and for a failed fork recovering only its own turn.

GitOrigin-RevId: f005ca2cf9d8313bbbf32ed4c228ebb5e51428a2
## Why

Stopping a sideband observer should close its WebSocket while preserving the frontend-owned realtime session. The existing frameless session close also sends `session.close`, so observer shutdown needs a transport-only close.

## What changed

- Add `close_transport()` to send a normal WebSocket close without `session.close`.
- Close the sideband transport on cancellation or when the call becomes inactive, including an existing connection awaiting adoption by the input task. Bound the close attempt to five seconds.
- Thread an optional sideband base URL through realtime start processing and allow nested thread ID fields in request serialization scopes.

## Testing

Add WebSocket and core conversation regression tests covering observer detachment for both realtime parsers and conversation versions. Verify that explicit frameless session close still sends `session.close`.

GitOrigin-RevId: 874a8980b0fcd45058e976b00c0d968f5b4b2404
## What changed

- Skip path resolution for empty TOML tables and apply resolved values in place, preserving unknown keys and omitting defaults introduced by deserialization.
- Avoid scanning project trust entries after an exact lookup misses on non-Windows platforms. On Windows, select the smallest case-insensitive matching key without allocating and sorting a list.
- Only build the effective configuration for credential-origin filtering when credential origins are present.

GitOrigin-RevId: 77f1b24ffc4ec49c686331c318c5452fd0de170e
## What changed

Overlap independent plugin filesystem and skill loads with a concurrency limit of eight. Consume results in configured-name order to preserve duplicate MCP server precedence and startup hook warning order.

## Testing

Add a regression test with ten plugins that verifies skill loads overlap within the concurrency limit, results match sequential loading, and MCP precedence and hook warnings are preserved.

GitOrigin-RevId: 6ce8a05954fad157d8559abe9fd2dc684692cf3e
## What changed

- Allow `/quit` and `/exit` while offline, exiting without waiting for server shutdown.
- Retry `thread/resume` when the server reports `serverShuttingDown` instead of treating the conversation as unavailable.
- Report which reconnect stage timed out, including waiting for server shutdown, without exposing transport errors that may contain endpoint credentials.

## Testing

Extend regression coverage for offline quit commands and stage-specific timeout messages. Update the reconnect integration test to exercise a draining server and verify that local approval and sandbox settings are preserved.

GitOrigin-RevId: 4f6ed33db809f56ea09fc9423f3ffe28f22b7cc5
## What changed

When a diagnostic upload includes logs, include saved threads attached directly to the reported thread in the existing bounded thread selection alongside spawned descendants. Query attached threads from the state database, including archived threads, so their rollouts, logs, and retained review failures can be collected. Log a warning and continue if the lookup fails.

## Testing

Extend the upload integration test to verify that the rollout archive includes the reported and directly attached threads, excludes unrelated threads, and is omitted when logs are disabled.

GitOrigin-RevId: 1bcd2794938339fb4b1c433c3731f507601cd8a4
GitOrigin-RevId: f41342a7f09ca7e2047feffca9cad0cb261058a7
## Why

Source-built V8 archives and generated Rust bindings must agree on their ABI, including in debug builds. Linux platform selection must also distinguish GNU and musl when using LLVM platforms.

## What changed

- Always select source-built V8 archives and matching bindings for Bazel consumers, removing the `rusty_v8_from_source` flag.
- Use LLVM's libc-aware Linux selectors for archives, bindings, headers, and bindgen targets.
- Keep `V8_ENABLE_CHECKS` undefined in debug builds to match Rust's `HandleScope` layout, and set `V8_LOGGING_LEVEL=2` for debug verification.
- Include compiler-rt builtins in the ARM64 GNU/Linux archive to provide `__clear_cache`.
- Set the Intel macOS minimum version for `codex-code-mode-host` releases to 10.13 for V8's aligned allocation support.

## Testing

Always include the existing ignored CppGC ABI checks in Bazel `v8-poc` unit tests and remove their exclusion from Bazel CI.

GitOrigin-RevId: f698a47502154cdfb80febed02e4465d9f2d1e0c
## What changed

Add `ReviewInput` to bundle an approval request with its captured parent history and review context. Its `assess_isolated` method runs a fresh reviewer without publishing a live approval, honors deadlines and cancellation, and returns a `GuardianAssessment` or review error.

Share review parameter construction with the live review path and extract assessment parsing and error conversion into `GuardianReviewSessionOutcome::into_assessment`.

## Testing

Add a mock-backed test that verifies the isolated assessment is returned and the reviewer receives the captured history without instructions added after capture.

GitOrigin-RevId: 10dd5fddf5fc58bfab124f5962a6b7f45d435c83
Replace `join_all` with a buffered stream in `replace_unresolvable_image_files` so at most eight distinct image file IDs are checked concurrently. Collect unavailable IDs as checks complete before replacing their image content with placeholders.

GitOrigin-RevId: 2a9ed8742fbb6157c99c69a15f212df3ed88810c
## What changed

Add an output schema for `image_gen.imagegen` so its code-mode declaration returns `Promise<{ image_url: string; output_hint?: string; }>`. Direct API tool serialization remains unchanged.

## Testing

Add coverage for the generated return type and unchanged direct API serialization, assert the full declaration in the app-server integration test, and verify that code-mode results omit oversized output hints.

GitOrigin-RevId: b3cee52a6b68c881f0c7507e791cc0fe86ca0d24
## What changed

- Include `codex-exec-server` in canonical CLI and app-server packages and advertise its path through `execServer` in `codex-package.json`.
- Build and sign the executor in release workflows, preserve signed prebuilt inputs, and verify packaged signatures. Use empty entitlements for the macOS executor.
- Have installers check for the executor when package metadata advertises it, while continuing to accept older packages.
- Omit the standalone executor and its manifest entry from npm packages to stay within npm's package size limit. Keep `codex exec-server` and its runtime helpers available.

## Testing

Add package smoke tests for executor initialization, version reporting, filesystem and process sandbox enforcement, and invalid-argument/configuration parity with `codex exec-server`. Extend archive, npm staging, and macOS signing tests to cover executor contents, executable permissions, preserved bytes, and entitlement verification.

GitOrigin-RevId: bc741fe7faa6fe631d076de18d448c55247c23c7
## Why

Resuming or forking a thread loses the session flag indicating that reported token usage already includes retained reasoning. Counting that reasoning again can trigger automatic compaction too early.

## What changed

Persist `last_usage_includes_reasoning` with `TokenUsageInfo` and use it when estimating context usage. Record the flag with completed sampling and compaction usage, and mark local estimates as including reasoning. Older records without the field retain the existing accounting behavior.

## Testing

Add coverage for saved inclusive, exclusive, and legacy token counts. Extend the encrypted-reasoning compaction test to verify the compaction threshold for live, forked, and cold-resumed threads.

GitOrigin-RevId: 9f22262a693111ec0406dce11804eb4844ad8983
## Why

Existing chats retain their provider configuration when the selected provider changes. Reject resume and input until the configured provider matches the chat, while keeping history readable and allowing recovery after configuration is restored.

## What changed

- Validate saved providers before applying resume overrides, preserving the provider when only model or reasoning settings change.
- Check the current provider selection, including profiles and launch overrides, before accepting input. Reject input when configuration cannot be loaded.
- Return structured `ModelProviderError` data for provider mismatches, missing definitions, and policy conflicts, with generated JSON Schema, TypeScript, and Python types.

## Testing

Add coverage for override bypass prevention, provider restoration, readable history after rejection, and blocked requests sending no inference traffic. Verify schema fields and Python round trips match the error wire format.

GitOrigin-RevId: 051f97c3815c547d8411c71b770df30eae969f68
## What changed

- Add `GetProcessMetrics` and provider sampling APIs for process ID, start time, cumulative CPU time, and resident memory, exposed through `ThreadManager` without creating a thread or session.
- Distinguish unsupported collection, a locally absent host, and sampling failures. Process-owned providers never start or replace a host when sampling.
- Bound gRPC sampling to one second without retries or explicit connection resets. Run optional collectors on a detached worker with at most one collection in flight, so stalled collection cannot block the HTTP/2 driver or runtime shutdown.

## Testing

Add coverage for snapshots, collector errors and panics, deadlines, overload, and shutdown with a stuck collector. Extend lifecycle tests to check that sampling preserves session state and keepalive behavior without starting or restarting local hosts.

GitOrigin-RevId: eeafe275891d0464636f28a29345a87aed1a12dc
- Added keyboard-driven transcript selection with word, line, and page motions, integrated search, and configurable shortcuts. (#57221, #57222, #57223, #57224)
- Rendered Markdown consistently in async questions, choices, answers, and transcript replies. (#57259, #57292)
- Added GPT-6.1 Terra to the bundled, Vertex AI, and Amazon Bedrock model catalogs. (#57293)
- Added `codex queue --resume` to resume unloaded threads after queueing a message. (#57232)
- Added clearer safety-block explanations and selectable safer follow-up prompts in the TUI. (#57363, #57365)
- Added `codex doctor --network-only` for focused configuration, connectivity, and WebSocket diagnostics. (#57606)

## Bug Fixes

- Preserved acknowledged approval and permission settings when resuming or forking threads. (#57227)
- Preserved local image attachments when restoring killed composer text. (#57502)
- Fixed standalone release cleanup on macOS when installations are in use or paths contain non-ASCII characters. (#57503)
- Restored spawned descendant threads when unarchiving their parent. (#57635)
- Fixed app-server thread startup and shutdown races and released completed runtimes promptly. (#57787, #57788)
- Improved TUI reconnection recovery, including offline `/quit` and `/exit` handling. (#57820)
- Preserved reasoning-token accounting across resume and fork to avoid premature compaction. (#57839)

## Chores

- Switched Bazel to source-built V8 with target-matched Rust bindings and native Windows MSVC archive support. (#57164, #57269, #57644, #57832)
- Shipped the standalone executor in canonical CLI and app-server release packages. (#57837)
- Standardized development and release builds on Node.js 24.22.1 and Rust 1.95.0. (#57168, #57373)

## Changelog

Full Changelog: openai/codex@rust-v0.165.0...rust-v0.166.0

- #56468 Preserve `SystemRoot` for Windows filesystem sandbox helpers @jif-oai
- #56477 Move Guardian approval reason caps into context composition @ioanbudea-OAI
- #56483 Allow installed plugin metadata to skip display enrichment @bkotsopoulos
- #56493 Move Guardian tool description preparation into context composition @ioanbudea-OAI
- #56494 Add channel upserts to message boards @felixxia-oai
- #56495 Add paginated channel subscription queries to the local message board @felixxia-oai
- #56505 Defer synchronous Guardian tool-call truncation to preparation @ioanbudea-OAI
- #56514 Preserve tracing context throughout tool dispatch @bkotsopoulos
- #56515 Add trace instrumentation for turn startup and response streaming @bkotsopoulos
- #56516 Respect server approval policy defaults during TUI startup @etraut-openai
- #56524 Add turn, tool, and skill attribution to traces @bkotsopoulos
- #56525 Remove the 1 MiB response limit for explicit model catalogs @eternal-openai
- #56530 Record skill and plugin catalog sizes on publication @TAFOYA-OAI
- #56533 Defer sync Guardian tool-output truncation to transcript preparation @ioanbudea-OAI
- #56535 Extract the head-tail buffer into a utility crate @seanh-oai
- #56543 Track resume picker pagination and selection metadata per backend @bc-openai
- #56552 Initialize SQLite databases with DELETE journaling on NFS @dkovalenko-oai
- #56553 Include environment hooks in thread hook listings @andrewgu-oai
- #56554 Enable masked AWS credentials for local proxy signing @viyatb-oai
- #56555 Apply sync Guardian message limits during transcript preparation @ioanbudea-OAI
- #56556 Use conversations for all Guardian v2 async classification @felixxia-oai
- #56557 Exercise retained sampling in Guardian transport tests @felixxia-oai
- #56559 Remove Guardian snapshot-specific context helpers @felixxia-oai
- #56560 Allow configuring GCP project and location in provider settings @alexsong-oai
- #57164 Move the V8 Bazel build graph into Codex @seanh-oai
- #57165 Enforce V8 artifact profiles at Bazel target boundaries @seanh-oai
- #57166 Surface automatic marketplace update failures as startup warnings @dkovalenko-oai
- #57167 Track CUA tool call starts and deduplicate lifecycle events @trpcic-openai
- #57168 Centralize Node.js version selection on 24.22.1 @anp-oai
- #57169 Clarify config loader APIs and share interactive login setup @smurching-oai
- #57170 Update prebuilt argument-comment-lint to `rust-v0.164.0` @tamird
- #57171 Integrate runtime authentication into model requests @cooper-oai
- #57172 Expose lifecycle timestamps on app-server thread items @charliemarsh-oai
- #57174 Add scoped request-body secret substitution to MITM hooks @viyatb-oai
- #57175 Integrate config-server policies with startup and authentication @smurching-oai
- #57176 Defer Guardian Node REPL output truncation until prompt preparation @ioanbudea-OAI
- #57178 Route FedRAMP API keys to government endpoints by default @lsingh-oai
- #57179 Consolidate async header authentication in `apply_auth_headers` @cooper-oai
- #57180 Add constraint-aware standalone network proxy configuration @viyatb-oai
- #57181 Add optional names to untrusted additional context @akira-oai
- #57185 Centralize unified exec output rendering @anp-oai
- #57186 Fail closed on unreadable glob search root metadata errors @viyatb-oai
- #57187 Allow advisory rollout budgets with optional limit enforcement @nvogt-oai
- #57188 Add a credential file override for GCP provider authentication @alexsong-oai
- #57191 Read unified exec output directly from stdout and stderr @anp-oai
- #57192 Gate capability discovery V2 on executor version @TAFOYA-OAI
- #57193 Preserve failed `write_stdin` calls in rollout trace replay @cassirer-openai
- #57194 Classify rollout tool calls by their runtime handler @cassirer-openai
- #57196 Isolate MCP inputs and timeouts for callers sharing a connection @charliemarsh-oai
- #57197 Clarify skill toggle summaries in the TUI @fcoury-oai
- #57198 Report the local command working directory in PreToolUse hooks @eternal-openai
- #57199 Truncate rollout JSON summaries at UTF-8 character boundaries @cassirer-openai
- #57201 Capture direct-tool critical paths behind a feature flag @taohong339
- #57202 Preserve the tool dispatch span across runtime futures @trpcic-openai
- #57203 Preserve command cwd in permission and post-tool hooks @eternal-openai
- #57204 Register the `untrusted_as_tool_output` feature flag @akira-oai
- #57206 Ignore the crypto-bigint timing advisory in dependency checks @etraut-openai
- #57207 Attribute approval waits to tool critical-path timing @taohong339
- #57208 Propagate installer download failures in standalone Unix updates @etraut-openai
- #57209 Report turn critical-path timing in analytics @taohong339
- #57210 Add opt-in protocol discovery for local stdio MCP servers @charliemarsh-oai
- #57211 Share eligible local stdio MCP connections across chats @charliemarsh-oai
- #57212 Enable zstd compression for code-mode gRPC responses @cayoub-oai
- #57215 Coordinate resume picker sources independently @bc-openai
- #57218 Support negotiated WebSocket compression in the remote app-server client @thorvald-oai
- #57220 Log app-server WebSocket compression statistics @thorvald-oai
- #57221 Expand keyboard navigation and selection in the transcript @fcoury-oai
- #57222 Integrate Find with transcript selection mode @fcoury-oai
- #57223 Wire keyboard selection into transcript overlays @fcoury-oai
- #57224 Fix transcript selection input routing and preserve composer drafts @fcoury-oai
- #57225 Add managed enforcement of DELETE journaling on NFS @dkovalenko-oai
- #57226 Allow NFS database migration with shared file permissions @dkovalenko-oai
- #57227 Preserve acknowledged permissions when resuming and forking threads @charliemarsh-oai
- #57228 Give remote control pairing a 35-second deadline @etraut-openai
- #57229 Simplify code-mode cell completion delivery @cconger
- #57232 Add optional thread resumption to `codex queue` @etraut-openai
- #57233 Stop dotenv loading on persistent I/O errors @etraut-openai
- #57234 Prevent credential collisions in registry auth test fixtures @jif-oai
- #57235 Tag exec_command telemetry with the configured shell snapshot mode @jif-oai
- #57238 Exercise V2 spawning in subagent context inheritance tests @tamird
- #57239 Make the MCP HTTP probe timeout test deterministic @jif-oai
- #57240 Bound memory baseline files and recover incomplete snapshots @dhruvgupta-oai
- #57241 Honor configured message limits for encrypted guardian transcripts @ioanbudea-OAI
- #57242 Reduce the default thread unload delay to one minute @jif-oai
- #57243 Pause Tokio time in startup draft handoff tests @goodman-oai
- #57244 Wait for process completion in the unified exec reuse test @goodman-oai
- #57245 Stabilize the rejected queue message test @goodman-oai
- #57247 Release the rollout maintenance lock when its guard is dropped @goodman-oai
- #57248 Make login token-refresh tests wait for auth publication @goodman-oai
- #57249 Allow disabling plugin discovery prefetch at app-server startup @zamoshchin-openai
- #57251 Show native dollar thread usage for ENT26 plans @jif-oai
- #57253 Allow slow daemon startup while detecting early process exits @etraut-openai
- #57255 Record reviewed exceptions for zstd security advisories @charliemarsh-oai
- #57256 Keep parent history out of attached thread views @btraut-openai
- #57257 Avoid unnecessary connector directory work for tool suggestions @charliemarsh-oai
- #57258 Reduce remote plugin catalog cache probing overhead @charliemarsh-oai
- #57259 Render Markdown in TUI async question choices @imac-oai
- #57260 Centralize permission request preparation and approval actions @swastik-oai
- #57261 Separate `apply_patch` request preparation from execution @swastik-oai
- #57262 Add incremental skill catalogs behind `skill_catalog_deltas` @adaley-openai
- #57263 Support model-catalog wording for permission path warnings @goodman-oai
- #57265 Show effective processing tiers in TUI status surfaces @etraut-openai
- #57267 Keep cloud conversation settings server-owned in the TUI @bc-openai
- #57268 Record reasons for embedded TUI starts @etraut-openai
- #57269 Add native Windows MSVC V8 source archive builds @seanh-oai
- #57270 Load cloud config for sandbox and remote exec-server commands @abhinav-oai
- #57271 Enable text selection and mouse scrolling in the warning viewer @imac-oai
- #57272 Add code-mode output truncation protocol contracts @seanh-oai
- #57273 Reject unsupported options for `codex queue` @etraut-openai
- #57274 Defer REPL evidence rendering to synchronous context preparation @ioanbudea-OAI
- #57275 Preserve image generation failure metadata for premium usage limits @jimxie-oai
- #57276 Support window prefixes for extension world-state sections @fc-oai
- #57277 Use the crates.io release of `i18n-config` @goodman-oai
- #57278 Refactor agent spawning, startup, and communication helpers @rhan-oai
- #57279 Render untrusted additional context as named tool outputs @akira-oai
- #57280 Preserve full MCP results in rollout traces @cassirer-openai
- #57281 Enable agents navigation for remote App Server sessions @etraut-openai
- #57282 Promote rounded token counts to the next compact unit @etraut-openai
- #57284 Express TUI mouse capture as an explicit policy @imac-oai
- #57285 Let the terminal handle links in expanded questions @imac-oai
- #57286 Support `network_proxy` in managed requirements @viyatb-oai
- #57287 Preserve parent tool declarations in prediction forks @keyz
- #57290 Add a plugin process host with bounded IPC and lifecycle management @joesavona
- #57291 Represent user message presentation with an enum @imac-oai
- #57292 Render async questions and replies with Markdown in the TUI @imac-oai
- #57293 Add GPT-6.1 Terra to model catalogs @BOZHANG-OAI
- #57294 Extract plugin manager errors and box realtime handoff routing @TAFOYA-OAI
- #57295 Defer synchronous Guardian evidence limits to preparation @ioanbudea-OAI
- #57304 Surface refresh-token rejection errors during workspace routing @smurching-oai
- #57307 Bump `openai/fence` to `v0.12.2` in the blob size policy @joesavona
- #57311 Preserve tool output versions and history order in rollout traces @cassirer-openai
- #57312 Centralize Guardian root context preparation @ioanbudea-OAI
- #57313 Default gateway OAuth delivery to Authorization bearer tokens @smurching-oai
- #57314 Format all Rust sources and clean up repository checks @joesavona
- #57315 Keep failed subagents from marking tasks as needing attention @bc-openai
- #57317 Add opt-in concise hints for explicitly selected plugins @adaley-openai
- #57325 Add model catalog fields for granular approval templates @goodman-oai
- #57342 Separate TUI session resume preparation from activation @bc-openai
- #57352 Preserve child signal failures in the npm wrapper @dkovalenko-oai
- #57353 Avoid object-identity preflight for MXC path grants @iceweasel-oai
- #57357 Report when NFS database migration finds no databases @dkovalenko-oai
- #57358 Serialize session index mutations across processes @dkovalenko-oai
- #57360 Bound waits for the thread writer coordination lock @dkovalenko-oai
- #57363 Explain safety policy blocks with turn-scoped recourse in the TUI @etraut-openai
- #57365 Offer safer rewrites after safety blocks in the TUI @etraut-openai
- #57366 Show the selected ChatGPT workspace in `/status` @etraut-openai
- #57373 Pin the Rust toolchain to 1.95.0 @TAFOYA-OAI
- #57391 Drain pending terminal reports before returning to the shell @etraut-openai
- #57393 Render integral limits and parenthesized matrices in TUI math @etraut-openai
- #57394 Add experimental GCP account setup to the app server @alexsong-oai
- #57420 Make thread item timestamps optional in TypeScript exports @keyz
- #57425 Centralize Guardian root context preparation @ioanbudea-OAI
- #57430 Test goal provenance in existing workers' Guardian reviews @jif-oai
- #57433 Add opt-in synchronous Guardian review for native tool calls @jif-oai
- #57435 Extract unified exec command preparation into a reusable module @swastik-oai
- #57438 Carry prepared commands through unified execution @swastik-oai
- #57439 Preserve Guardian request metadata with custom OpenAI base URLs @jif-oai
- #57441 Add Guardian native multi-agent history feature flag @jif-oai
- #57448 Preserve native multi-agent calls in Guardian review history @jif-oai
- #57451 Route state-changing multi-agent calls through Guardian review @jif-oai
- #57452 Distinguish policy-restricted capacity failures from server overloads @toml-openai
- #57455 Centralize Guardian classification of multi-agent tool calls @jif-oai
- #57458 Move Guardian token usage calculation into the reviewer crate @jif-oai
- #57462 Always put Code Mode tool descriptions before namespace descriptions @swastik-oai
- #57468 Fix guardian handoff mocks for native history tests @jif-oai
- #57474 Test encrypted native call history across Guardian reviews @jif-oai
- #57476 Move Guardian session helpers into the reviewer crate @jif-oai
- #57478 Move Guardian approval request types into the reviewer crate @jif-oai
- #57483 Skip unrelated indexed rollouts during selected thread migration @charliemarsh-oai
- #57488 Move guardian prompt composition into the reviewer crate @jif-oai
- #57493 Move Guardian action JSON formatting into the reviewer crate @jif-oai
- #57494 Centralize synchronous Guardian context preparation @ioanbudea-OAI
- #57500 Add an option to omit descriptions from skill catalogs @adaley-openai
- #57501 Render escaped percent signs in TUI math @etraut-openai
- #57502 Preserve local image attachments when restoring killed text @etraut-openai
- #57503 Fix macOS standalone release pruning @etraut-openai
- #57504 Use the native clipboard for WSL SSH sessions with X11 forwarding @etraut-openai
- #57506 Move Guardian request mappings into the reviewer crate @jif-oai
- #57507 Resolve Guardian command path conventions inside `ReviewAction` @swastik-oai
- #57508 Add a bounded V8 runtime for UI plugin processes @joesavona
- #57509 Extract Guardian planned-action assembly into the reviewer crate @jif-oai
- #57512 Explicitly unlock daemon PID reservation probes on Unix @jif-oai
- #57513 Replace the npm wrapper with the native binary using `execve` @bolinfest
- #57514 Add experimental ChatGPT workspace switching to app-server @dhruvgupta-oai
- #57515 Limit MXC volume expansion probes to symbolic links @iceweasel-oai
- #57516 Add profile and provider status line items @etraut-openai
- #57519 Defer synchronous Guardian heartbeat compression to preparation @ioanbudea-OAI
- #57522 Add isolated reviews to the guardian reviewer pool @swastik-oai
- #57533 Release empty PID probe locks explicitly on Unix @jif-oai
- #57538 Preserve host-assigned user input IDs in Responses messages @zbrunson-openai
- #57542 Add model-gated literature search to standalone web search @rhan-oai
- #57552 Expose and persist image generation IDs @jimxie-oai
- #57553 Allow replacing dynamic tools between model steps @sdcoffey
- #57554 Keep submitted prompts shaded when terminal colors are unavailable @bc-openai
- #57563 Avoid retaining unneeded output items in HTTP response streams @btraut-openai
- #57564 Preserve rich composer content in Vim registers @bc-openai
- #57567 Allow catalog URL overrides for the built-in OpenAI provider @jamy-OAI
- #57568 Configure memory consolidation service tiers independently @mandal-OAI
- #57569 Preserve process output and control replies under backpressure @ztanner-oai
- #57572 Support Apps tool catalogs without shared snapshots @bkotsopoulos
- #57573 Add filesystem-free classification of intercepted patch commands @swastik-oai
- #57575 Refactor HTTP client construction and request execution @bz-openai
- #57581 Allow model catalogs to customize approval instruction headings @goodman-oai
- #57584 Preserve output boundaries through token truncation @seanh-oai
- #57585 Replace unavailable image references in model requests @kchainani-oai
- #57586 Add host-reserved V2 child creation APIs @rhan-oai
- #57589 Add a standalone `codex-exec-server` executable @dkovalenko-oai
- #57590 Ship `codex-exec-server` in CLI and app-server packages @dkovalenko-oai
- #57593 Remove empty local staging routing files @fcoury-oai
- #57597 Preserve WebSocket probe evidence and redact diagnostic details @dob-oai
- #57598 Cache empty remote skill discovery with filesystem watches @adams-oai
- #57599 Support catalog headings for saved command-prefix notices @goodman-oai
- #57606 Add `codex doctor --network-only` for focused network diagnostics @dob-oai
- #57607 Share runtime authentication with model providers and catalogs @cooper-oai
- #57612 Disable terminal status sequences on older VTE backends @fcoury-oai
- #57615 Preserve rollout tracing across sub-agent reloads @cassirer-openai
- #57618 Release sampling prompts after stream setup @btraut-openai
- #57626 Show Bedrock setup for explicitly configured OpenAI providers @alexsong-oai
- #57628 Stop shipping `codex-exec-server` in release artifacts @fcoury-oai
- #57635 Restore spawned descendants when unarchiving a thread @etraut-openai
- #57638 Add OpenTelemetry requirement types to the app-server protocol @arnavpatidar-OAI
- #57644 Generate Rust bindings that match Bazel-built V8 archives @seanh-oai
- #57649 Support managed OpenTelemetry configuration requirements @abhinav-oai
- #57654 Redact OTEL exporter headers in app-server config responses @arnavpatidar-OAI
- #57657 Fix trace exporter activation after account switches @arnavpatidar-OAI
- #57658 Support managed OpenTelemetry metadata and PEM client identities @abhinav-oai
- #57667 Remove detached delivery from `review/start` @yansenzhou-oai
- #57692 Wait for turn profiles before asserting sampling counts in trace tests @ioanbudea-OAI
- #57697 Move Guardian review state into the reviewer extension @jif-oai
- #57698 Move Guardian context policy and prompts into the reviewer extension @jif-oai
- #57702 Move Guardian review evidence into the reviewer extension @jif-oai
- #57710 Preserve parent routing affinity for Guardian reviews @jif-oai
- #57720 Move `ReviewAction` into the Guardian reviewer crate @jif-oai
- #57723 Disable optimization for the on-demand Bazel schema generator @jif-oai
- #57729 Remove `free_guardian` configuration from Guardian tests @ioanbudea-OAI
- #57741 Separate test-only Rust sources from Bazel library and binary inputs @jif-oai
- #57742 Avoid recompiling Bazel integration tests for runtime fixture changes @jif-oai
- #57743 Move Guardian MCP elicitation helpers into the reviewer crate @jif-oai
- #57757 Expose Guardian assessments in response streams @jif-oai
- #57758 Include terminal launch commands in Guardian stdin reviews @jif-oai
- #57770 Respect model catalog origins when selecting Guardian reviewers @ioanbudea-OAI
- #57774 Skip non-regular files when detecting pasted image paths @etraut-openai
- #57782 Restrict code-mode host replacement to session admission @aakash-oai
- #57783 Exclude unrelated network shares from MXC default reads @iceweasel-oai
- #57787 Fix app-server thread listener startup and shutdown races @charliemarsh-oai
- #57788 Release app-server thread runtimes after shutdown @charliemarsh-oai
- #57789 Refresh the model catalog once when Guardian's default reviewer is missing @jif-oai
- #57790 Centralize synchronous Guardian prompt preparation @ioanbudea-OAI
- #57796 Extend GitHub release read retries and add jitter @imac-oai
- #57800 Backfill exec completion items through paginated history @btraut-openai
- #57817 Detach realtime sideband observers without ending the session @jiahao-oai
- #57818 Reduce unnecessary work in configuration processing @bc-openai
- #57819 Load up to eight plugins concurrently @bc-openai
- #57820 Improve TUI reconnect recovery and offline exit handling @etraut-openai
- #57824 Include directly attached threads in diagnostic uploads @btraut-openai
- #57825 Update CI setup to use `meta/install-dotslash` @seanh-oai
- #57832 Build V8 from source by default in Bazel @seanh-oai
- #57834 Add isolated Guardian assessments for prepared actions @swastik-oai
- #57835 Limit concurrent image availability checks to eight @kchainani-oai
- #57836 Declare the image generation result type in code mode @alicec-oai
- #57837 Ship the standalone executor in release packages @dkovalenko-oai
- #57839 Preserve reasoning token accounting across resume and fork @andrewgu-oai
- #57840 Validate thread providers before resume and input @abhinav-oai
- #57841 Add optional process metrics sampling for code-mode hosts @aakash-oai
Merges exact Codex release rust-v0.166.0 into the reviewed Zuno source 9202e2c.

Zuno-Source-Commit: 9202e2c
Zuno-Upstream-Tag: rust-v0.166.0
Zuno-Upstream-Commit: 6ff1e1c
@sunerpy sunerpy added the upstream-sync Codex upstream release candidate prepared by automation label Nov 1, 2026
@sunerpy
sunerpy merged commit 27098a3 into main Nov 1, 2026
14 checks passed
@sunerpy
sunerpy deleted the upstream-sync/0.166.0 branch November 1, 2026 07:16
sunerpy added a commit that referenced this pull request Nov 1, 2026
0.166.0 同步(#300)把工作区版本改成 0.166.0 之后,
startup_draft_renders_full_empty_and_multiline_composer_frames 在 main 上失败。
18 列的窄帧里 "Zuno" 比 "OpenAI Codex" 短,标题显示到版本号的前 5 个字符;
测试只把完整版本号替换成 <VERSION>,所以快照里留着上一版的 `v0.162…`。
版本号联动的替换只匹配完整的 `Zuno (v0.162.1)`,漏了这处截断的写法。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upstream-sync Codex upstream release candidate prepared by automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(upstream): Codex rust-v0.163.0 candidate has replay conflicts