Repository navigation
Integrate upstream rust-v0.172.0 - #290
Merged
Merged
Conversation
…openai#62190) ## What changed Move rollout work admission into `RolloutWorkGate` and route compaction deferral through `ThreadBudgetPolicy`. Use `TurnWork` to check the budget when accepting a sampling response and to handle checkpoints after stop hooks, compaction, and sampling errors. Pass sampling charges and response completion through `ResponseWork`. The existing budget check still rejects responses after exhaustion. The new checkpoints leave retry, completion, compaction, and charge handling behavior unchanged. GitOrigin-RevId: 7526416b8ce24ca84035494aeb2a23abd8ca3ddc
…penai#62192) ## Why When a registered Core provisioning request timed out or its pipe closed before a reply, setup reported only that the service was unavailable. That made the two failures indistinguishable in setup metrics. ## What changed Preserve the underlying I/O error and attach distinct setup error codes for timeouts and pipe closures. Registered Core still reports the service as unavailable and refuses helper fallback. `codex doctor` advises checking that the sandbox service is running and letting pending setup finish before retrying. ## Testing Add a unit test that checks error classification for timeouts, unexpected EOF, and broken pipes. It also checks that a non-registered request still returns an unavailable response on timeout and that permission errors receive neither new code. GitOrigin-RevId: fa6653fe5f9cafd10fc1562eb0763857a1bd628f
…#62194) ## Why `codex exec resume` sends the current process's sandbox defaults as overrides. A session started with `:read-only` can therefore resume with workspace write access when the configured default is `:workspace`. ## What changed - Restore the saved permission selection, working directory, and workspace roots by default. Honor explicit overrides and append directories requested with `--add-dir` to the resumed workspace roots. - Recover built-in read-only permissions from older history without widening current read access. Require an explicit permission selection when a saved named profile cannot be loaded or saved read-only access cannot be restored. - Report sandbox permissions and writable roots from the running thread. ## Testing Add regression coverage for a denied write on the first resumed shell call, legacy read-only history, explicit permission overrides, and workspace root preservation with and without `--add-dir`. GitOrigin-RevId: ed2cf3132f9ce34570661f801c9534a55696e3a5
## Why Row and page navigation make users step through tasks to reach another group. ## What changed Use `Shift+Down` or `Shift+J` to jump to the first task in the next visible group, and `Shift+Up` or `Shift+K` to jump to the first task in the previous group. Navigation stops at the ends of the list. Expose `agents.next_group` and `agents.previous_group` in the keymap picker and show the active shortcuts in Task shortcuts. ## Testing Add coverage for jumps in both directions, list boundaries, and key handling during search and rename. Update snapshots for shortcut help and the keymap picker. GitOrigin-RevId: 2542a75e7fdd7a3326c0914e19a9f5c191de082b
## Why `/status` appends `(unknown)` to the server label when a cloud or remote server does not report a version. ## What changed Show the cloud label or remote address on its own when the version is unavailable. When a version is reported, use the same `v` prefix for cloud and remote servers. The daemon menu still displays `unknown` for a running local daemon whose version is unavailable. ## Testing Add `/status` snapshots for cloud connections with and without a reported version and for a remote WebSocket connection without a reported version. GitOrigin-RevId: 113d2502fc7de6af37da3b3029ee28923af29e6f
## What changed - Keep the prepared `SandboxExecRequest` intact in core and let `command/exec` borrow the prepared command for streaming. Windows restricted-token commands continue through the dedicated sandbox launcher. - Move runtime read-path selection for exec-server commands and filesystem helpers into `SandboxManager`. It derives the paths from the executor's binaries and, for managed process launches, finds the generated proxy CA bundle in the command environment. GitOrigin-RevId: 8c9d278496d84589bc4a7b7d0ed08cb1b8e6ba21
…openai#62206) ## Why A first user turn and a concurrent raw response-item injection can both observe that the session has no reference context. Both can then append the initial prompt prefix and persist a full world-state snapshot. ## What changed Allow context preparation to run concurrently, then serialize publication of the initial prefix and its checkpoints. If injection publishes first, the user turn computes its context updates against the published baseline. If the user turn publishes first, injection appends only the caller-provided items. ## Testing Add an integration test that forces the overlap in both preparation orders. It checks the first request's world-state updates, verifies that the follow-up request contains the initial instructions and injected content once each, and checks that history contains one full snapshot. GitOrigin-RevId: b66f9c6ccc5d42a2be0e852b4d83b78adbc9e5b2
## Why A choice taller than the TUI's answer area could never be displayed in full at that terminal size, so users could neither read it to the end nor submit it. ## What changed Let `PageUp` and `PageDown` scroll through the wrapped lines of an oversized choice while keeping it selected. Allow submission once every line of the choice has been displayed in order and at full width. ## Testing Add regression coverage for paging without changing the selection, rejecting submission when repeated page keys skip lines before redraw, and rejecting choices clipped horizontally. GitOrigin-RevId: c296323494bd387581c2bb046272a8ccd773ad75
…2215) ## Why Managed proxy routes require bubblewrap's network namespace even when `features.use_legacy_landlock` is enabled. WSL1 compatibility checks and helper arguments need to agree on the effective mode. ## What changed Resolve bubblewrap or legacy Landlock once and use that mode for both the WSL1 check and the `codex-linux-sandbox` arguments. Use Linux sandbox naming for the shared launcher and CLI code, and preserve the published analytics category for a missing helper executable. ## Testing Unit tests exercise the production argument builder, including managed network context serialization when legacy Landlock is requested. They also cover which sandbox configurations WSL1 accepts and rejects. GitOrigin-RevId: 619ab9d3eef965de6bc6cb13ff8a33132018abcf
## Why The app server's Bedrock setup and login flows always selected Mantle. Clients using Bedrock Runtime had to configure that provider separately. ## What changed Accept an optional `providerId` in `account/bedrock/setup` for AWS profiles and environment credentials, and in `account/login/start` for Bedrock API keys and AWS access keys. Pass `"amazon-bedrock-runtime"` to select Runtime. Omit the field or pass `null` to keep the Mantle default. Save configuration for the selected provider and check that provider for an existing `aws.credential_export` before changing credential sources. ## Testing Extend app-server tests to cover Runtime setup with profiles and environment credentials, Runtime login with both key types, and Mantle fallback. Verify that environment setup selects the Runtime default model for a new thread and that a configured Runtime credential exporter blocks profile setup. GitOrigin-RevId: 6396b638208ab9b12f50f13f13bd517a919d0848
## Why Guardian review counts need a way to distinguish automation-triggered turns from other turns, including when a subagent requests the review. ## What changed Add a `turn_origin` tag to the `codex.guardian.review` counter based on the trigger recorded when the turn started. Recognized automation triggers map to `automation`, missing or empty triggers map to `unknown`, and all other values map to `other`. This keeps the set of metric labels bounded. ## Testing Cover trigger classification for both allow and deny verdicts and verify that a later user turn on the same thread is counted separately from an automation turn in both main and subagent threads. GitOrigin-RevId: 6a5808798df7d184203cea18e60a94a82d71f036
## What changed Move realtime text routing into `realtime_handoff` and keep it on the shared start-or-steer path. Extract UTF-8-safe range selection for realtime delegation truncation. Use `RolloutItem` accessors for realtime timestamps and items in recording, clock restoration, and thread history reads. Pass annotated response items to turn-boundary checks in core and migration rollback so callers can work directly with history envelopes. GitOrigin-RevId: 3dd37cf91ee5abdca84e87b7d7e304749d9baf04
## Why Accepted handoffs and saved transcript chunks need to appear in realtime history. Their text can come from the same user message that model history uses, avoiding a second persisted copy for the receipt. ## What changed - Reconstruct `turnInputAccepted` and transcript chunk receipts from user messages annotated with realtime provenance. Use the stored observation time when restoring the realtime clock. - Replace `sessionEndInputSaved` in the app-server protocol with `sessionInputSaved` and a `reason` of `chunk` or `sessionEnd`. Update the generated schemas and bindings. ## Testing Add coverage for reconstructing both receipt types, preserving rollout order in paginated realtime history, and restoring observation time across a restart after wall-clock rollback. GitOrigin-RevId: fcb4e0e539f4e4066726e83fa1e945fb659a2ca8
## Why Legacy rollout migration rewrites rolled-back history and can disrupt the realtime stream. Enroll local threads once they use paginated history so the stream stays intact. ## What changed - Add the off-by-default `features.realtime_frames_local` flag for paginated local threads with a state database. Accept runtime updates through the app server and keep threads enrolled once they have a persisted canonical session start. - Add thread-store APIs to recover a realtime session and look up the latest session ID from durable history. Route frame completion through a store seal so completion acknowledges durable writes. - Add a local seal for accepted model input that writes source frames before the input and lets callers retry an uncertain flush without appending the input twice. ## Testing Cover enrollment for legacy and paginated threads, continued enrollment after disabling the flag, and retrying a local input seal after a failed directory sync. GitOrigin-RevId: 2012feeca3857da90f9b026f077b31a26d15191b
## Why Refreshing Guardian policy should preserve session configuration and allow policy updates even when unrelated managed settings are invalid. ## What changed Add a revisioned snapshot that loads and applies Guardian reviewer restrictions, required models, and policy text together. Preserve the cloud bundle binding and allow the active policy to carry forward when another refresh rebuilds the configuration stack. Merge refreshed `auto_review.policy` fallbacks with retained layers in precedence order before validating the result. ## Testing Add a regression test covering an invalid unrelated managed setting, fallback validation after merging a session override, and removal of stale policy text when its managed bundle disappears. GitOrigin-RevId: ac42925eb916355d9972c3e2a0dd91041b06e47a
## Why Managed approval requirements can change while an MCP runtime is still in use. Later turns need to honor those changes without restarting MCP, while in-flight MCP actions need to retain the mandatory review requirements of their issuing turn. ## What changed - Add `CodexThread::refresh_guardian_policy` to apply managed policy updates to an existing thread. MCP configuration refreshes preserve the active Guardian policy, including when a policy update lands while MCP configuration is loading. - Resolve MCP tool and elicitation reviewers against the issuing turn's policy. Live requirements can still require Guardian review, and a live policy change cannot waive mandatory review captured by the turn. ## Testing Extend coverage for overlapping Guardian and MCP refreshes and for an existing MCP runtime that must prompt the user on the next turn after a policy update allows only the `user` reviewer. GitOrigin-RevId: 5a1649f917313f6fb152a206bc89986fe6345481
## Why The in-memory MCP backend depended on the runner's clock, so a runner clock failure could prevent posting. The standalone SQLite backend already uses the system clock. ## What changed Read UTC time from the MCP backend's system clock after validating caller membership. Apply this to both tree and agent-specific bindings. ## Testing Update the HTTP integration scenario to make the runner clock fail and verify that a child agent's post timestamp falls within the posting window. GitOrigin-RevId: bad5dec5a9be7246cf627b017897fbfe2c960cd1
## Why Realtime history needs to record which transcript frames reached the coding agent and which turn received them. If a handoff fails or the conversation reconnects, Codex needs to distinguish speech that was already used from speech that is still available for the next input. ## What changed - Route handoffs through normal turn admission to start or steer a turn. When realtime frame history is enabled, persist the transcript frames and the receiving turn's input before publishing acceptance or exposing the input to the model. Attribute only transcript frames represented in the rendered input. - Reserve transcript frames across overlapping handoffs and release them on definite rejection. Retry an uncertain write with the same input and require history recovery if the write still cannot be confirmed. - On V3 reconnect, restore persisted speech that has not been consumed and put it before newly captured speech. ## Testing Add regression tests for attribution after transcript truncation, overlapping handoffs, V3 reconnect ordering, and preservation of typed input when a handoff in the same turn fails before model sampling. GitOrigin-RevId: 432dd51971f7ced20344ebc7f0c7b007bb849f54
…i#62292) ## Why Raw response injection bypasses the native mailbox wake policy, so injected agent messages cannot wake a sleeping thread through that policy. ## What changed In native Multi-Agent v2, route batches consisting entirely of single-text agent messages with valid agent paths through the mailbox as queue-only mail. Hold a residency pin across the batch so capacity eviction cannot interrupt delivery between submissions. Mixed batches, multipart or encrypted messages, and configurations with native tools disabled continue to use raw response injection. Only preempt model sampling for pending mail when the matching turn still accepts mailbox delivery. ## Testing Extend coverage for waking live and reloaded sleeping threads, delivering older queued mail before a new task, and retaining mail in order when a batch exceeds the submission channel capacity and eviction is attempted. GitOrigin-RevId: 3df60d2a4a9e7b193ef298e01f31c565ad8a2785
## Why A realtime call can end with completed speech that has yet to reach a Codex turn. The next turn needs that context even if the call's transport has already disconnected. ## What changed - For V3 calls with realtime frame history enabled, save pending speech as context for the next turn. Restore it on thread reload and exclude it from the turn count used by rollback. - Drain already received transcript events and settle pending handoffs before saving the call's closing marker. Report recovery required if shutdown cannot confirm that history was saved. - Keep transport detach separate from ending a call. Reattaching restores saved pending speech, and an open call can be ended from persisted history after a reload. Use the call ID for TUI attachments so successive calls on one thread have distinct history. ## Testing Add coverage for queued speech at hangup, reconnect and stop after reload, retries after an uncertain write, and rollback across saved session-end context. GitOrigin-RevId: 657491f1d7e446a1a48e22189758810c8bdd82cb
…penai#62302) ## What changed In opt-in local MCP mode, deliver board notifications through `inject_response_items` when the recipient uses Multi-Agent V2 with native tools enabled. Other deliveries continue to use `Op::InterAgentCommunication`. ## Testing Extend the HTTP board scenario to check that the parent receives exactly one `CHANNEL_POST` agent message with the worker as author, the parent as recipient, and the expected post preview text. GitOrigin-RevId: deaa1451619a94d9c70c771327892069325c5e60
…#62308) ## What changed - Extract synchronous verdict execution into the Guardian review session. It starts the review turn, tracks evidence admission, and clears pending routing and context when the attempt ends. - Add a context builder for reviewers that already have the evidence. It presents the exact pending action and any applicable permission restrictions without repeating the transcript. ## Testing Add a composition test that checks that an encrypted tool call is replayed unchanged with its matching evidence-only output. GitOrigin-RevId: a0c120936c80459b0928550d23ba1137e125013c
## Why An attached reviewer needs to catch up on evidence before issuing a verdict. If the approval context changes during that preparation, the first verdict must still be checked against the authorization captured before preparation began. ## What changed Bind the attached reviewer to the pending action and reserve a review session after evidence preparation. Submit the action and its permissions for a synchronous verdict, checking authorization before and after the verdict. Retries reserve a new session under the original review deadline. ## Testing Extend the review tests to check that preparation and verdict execution share a deadline. Cover when optional synchronous review falls back to user approval after local input exhaustion and when context-limit or server failures result in denial. GitOrigin-RevId: 0ea835ba897069d19d045605d97b58f47406a4b4
## Why A pending action can reach approval review before Guardian V3 has routed the latest user messages to the reviewer's subscribed channels. That can leave a revocation or renewed approval out of the evidence used to decide the action. ## What changed Attach the Guardian V3 reviewer to the synchronous approval path when available. Start evidence catch-up when the action requests review, then deliver queued evidence before submitting it for a verdict. If preparation fails, report the reason and block the action. Request strict structured output for board routing. Represent channel description updates as a list, reject duplicate descriptions and empty routes, and write each source once per distinct destination. ## Testing Add app-server coverage for subscribed revocation and reapproval, unavailable evidence, routing failures, and native review when V3 is disabled or the thread is ephemeral. Add routing tests for duplicate descriptions, duplicate destinations, and empty routes. GitOrigin-RevId: 193802d39c120fbad9d77544ab57f4b5d02576b0
## Why A prepared agent fork needs its ancestor's conversation for context. Treating that conversation as the child's own authorization evidence can attribute the ancestor's messages and approvals to the child. ## What changed Allow host-started prepared forks that reference stored history to inherit the root session ID. Keep ancestor messages as conversation context and exclude ancestor authorization evidence when starting or resuming the fork and when reconstructing sender evidence from storage. Preserve the inherited disabled-plugin settings and the child's own authorization evidence. ## Testing Cover prepared forks across startup and resume, including inherited context, plugin settings, and child-local authorization. Verify that live and stored sender evidence both contain only the child's messages. GitOrigin-RevId: 5c5a6547d31fe78dfad3742efb8a41df539173c6
## What changed Have `SandboxManager` handle backend selection and shared preparation, then delegate command wrapping and session setup to the Linux, macOS Seatbelt, Windows token, and Windows MXC backends. Centralize Windows managed proxy routing in `codex-sandboxing` so the exec server and other callers use the same rule for selecting dedicated MXC listeners. GitOrigin-RevId: a75886809aefebf6c267bb39dbc104f76bda3409
## Why When MCP binding capture or a catalog refresh is slow, separate spans help identify whether the time went to startup, lock waits, or tool catalog processing. ## What changed - Trace server startup waits, catalog revision checks and snapshot reads, and tool preparation and normalization. - Trace catalog refresh lock waits, fetching, and publication, including time spent waiting for active tool calls to finish. - Record `cache_hit` on the binding capture span and trace the cache lock wait. Box the catalog capture future on cache misses to keep it out of callers' future layouts. GitOrigin-RevId: e5a5c037455c755fe74ead9f0efabfcd7a9529bf
## Why Remote Noise executors previously connected outbound to a rendezvous relay. An inbound listener lets harnesses that can reach the executor connect directly while retaining registry-backed authorization. ## What changed Use `--listen ws://IP:PORT` with `--remote` in Noise mode to accept inbound WebSockets. The listener serves RPCs over encrypted Noise streams after the registry authorizes the harness. It limits concurrent connections and handshake attempts, closes sockets that miss the first authorization deadline, and drains connections on shutdown. Noise clients can attach optional admission headers from the connection bundle to `wss://` requests. ## Testing The inbound integration test exercises a registry-authorized file read, rejection of a registry-denied harness, the absence of a plaintext RPC response, and connection closure on shutdown. Unit tests cover handshake limits and rejection of admission headers before dialing a plaintext WebSocket. GitOrigin-RevId: b388672e49a3fe806e38f6db38825435ba25d27a
…penai#62326) Record how long initial context assembly waits for prompt-only plugin recommendations in `codex.initial_context.plugin_recommendations_wait_ms`. Use named info-level spans for loading recommendations, reading the tooling change marker, and fetching the recommendation catalog. GitOrigin-RevId: 67b26f79252f8cba6e770f43df252ec1d73a569f
## Why Generic quota errors hide whether the project or organization spend limit blocked a request. Reporting the scope tells users which limit to check. ## What changed Recognize API key, project, and organization spend limit errors across HTTP, SSE, and WebSocket responses. Show a message that names the scope and treat the error as non-retryable, even when the provider sends `Retry-After`. Apply the existing usage-limit handling to goals and compaction. Expose distinct `CodexErrorInfo` values in the app-server protocol and generated bindings so clients can identify the limit in live errors and failed turn history. ## Testing Extend the transport tests to cover all three scopes and verify that they stop retries. Extend the app-server test to check that the error survives `thread/read` and that a subsequent turn can succeed in the same thread. GitOrigin-RevId: 03341f7a78daa7540e7baa519f1a29ec07e34509
…2415) ## Why Remote runners can block bubblewrap from creating a nested network namespace, preventing the shell from starting and reaching the filesystem checks. ## What changed Enable network access in `denied_read_in_second_workspace_root` so the test can exercise denied reads across both workspace roots without requiring a nested network namespace. GitOrigin-RevId: 26eada1e5efde4a31190628f4696c6beb400454d
## Why Clients sampling a thread could only use the source thread's model. ## What changed Add an optional `model` field to the experimental `thread/sample` request. Omitting it or passing `null` inherits the source thread's model. When an override is supplied, the server uses the selected model's capabilities to decide whether to apply the requested reasoning effort. ## Testing Add an app-server integration test that checks model selection and reasoning effort for the overridden sample, then verifies that a subsequent sample and a follow-up turn use the source model. GitOrigin-RevId: f5c54ca3d693d31e1f3e0628a520583330a5d56d
## Why Callers of `CodexThread::inject_response_items` each compile a copy of its concrete future, duplicating compilation work. ## What changed Return a `BoxFuture` from `CodexThread::inject_response_items` so the concrete future stays in the core crate. Raise the core integration test crate's recursion limit to 256. GitOrigin-RevId: 2ccb280c7887278fc8011c37df35df84c47b3e35
…enai#62421) ## Why The Responses client checks the gateway URL and request headers before allowing connector result bodies to be attached. Provider query parameters can also change the request while leaving those checks satisfied. ## What changed Require an empty provider query parameter map, or no map, when selecting a connector result destination. Check the ChatGPT credential variants directly and retain the current auth owner for thread grant verification. ## Testing Extend the client setup test to check that a custom provider URL is ineligible even with refreshed ChatGPT credentials. Extend the enterprise MCP lifecycle test to check that the configured provider receives the account bearer token and executed tool-call metadata. Allow HTTP client tests to cache a direct system proxy decision as well as a proxied route. GitOrigin-RevId: 1e7e77ec6e65263eaff658ba39943ec51230d332
…ai#62423) ## Why Result body capture covered direct Apps calls, leaving eligible calls made inside Code Mode without their result bodies in follow-up sampling metadata. ## What changed Capture eligible nested MCP results and bind them to the originating `exec` or `wait` output for the current turn. Send `tool_result` and `tool_result_call_id` together when both fit the request budget. Keep the bodies out of conversation history and reclaim capture capacity when the output binding is lost. Require analytics to be enabled and the provider to allow request metadata before starting turn-level capture. Check the call's credentials at dispatch and again when recording the result. ## Testing Add coverage for yielded and finished outputs, late results, retries with replacement output items, capture budget recovery, and the request size boundary for sending the body and call ID together. GitOrigin-RevId: 0983261ac39021099d14efa5c9a9acac47ac9269
## What changed Let in-process sessions and hosts using stdio or gRPC supply trusted JavaScript helpers. Run each helper before the cell's module in the same V8 context, only when the cell exposes a unique matching binding with the expected tool name and namespace. Report ambiguous bindings and preload failures as bounded cell errors. Suppress V8 diagnostics on stdout so they cannot corrupt stdio protocol frames. ## Testing Add coverage for per-session helper selection, exact tool matching, ambiguous bindings, and bounded compile and execution errors. A stdio subprocess test checks that a failed preload leaves another session on the same connection usable. Allow more time for existing CLI and MCP integration tests to connect, start their test server, or shut down. GitOrigin-RevId: f9f037de7f9d6018ae755b38475c4131ca7ba1f0
## What changed Allow config server bundle and auth loaders to discover authorization and token endpoints, plus an optional device authorization endpoint, from OAuth metadata when callers enable discovery and omit `config_server.oauth`. Discovery uses the bootstrap HTTP policy, times out after five seconds, and keeps the discovered settings in memory. Existing managed-config entry points pass `ConfigServerDiscovery::Disabled`. If bundle loader initialization fails, report the error on the first read and retry on later reads until a loader and its refresh worker can start. ## Testing Add tests for endpoint parsing and defaults, the discovery timeout, explicit OAuth precedence, disabled discovery, and local network policy. GitOrigin-RevId: 7cb72054147ec34f985d55dfe708fccfafcb4ba3
…penai#62434) ## What changed Pass the resolved result-body destination into sampling, where its owner is used to select retained bodies for the turn. Check that the capture owner is current under the retention lock before converting an MCP result and again before retaining its body. ## Testing Extend the request-budget integration test for direct calls and Code Mode to check when executed calls carry result metadata. Cover ungranted and custom endpoints, independent model credentials, hosted Apps OAuth and header overrides, and disabled result-body passthrough. Check that the shared configuration preserves metadata on a subsequent turn. GitOrigin-RevId: 8e5ac88ba323d10e0f3e696d4ae356d52bdf22a3
## What changed Add `ToolLifecycleContributor::mcp_tool_request_meta` so an extension can use thread and turn data and the captured tool registration to attach an entry to the outgoing request's `_meta`. Codex rejects duplicate keys. Expose the registering plugin's package ID in `McpToolContext` so contributors can scope metadata to that plugin. Export `PERSISTED_MCP_RESULT_MAX_BYTES`, the existing 64 KiB limit for untruncated MCP results in durable history. ## Testing Extend the multi-environment MCP scenario to check that only the call for the selected plugin receives the metadata and that the result callback sees the same plugin context. GitOrigin-RevId: 25a2afc5402a5c9323de184313d614aede3692fb
## Why A turn interrupted during setup can be discarded before it runs. Starting the worktree scan during setup can spend time scanning for a turn that will never send a model request. ## What changed Collect `HEAD` and remote URLs in the background after turn setup, and start the worktree status scan only after the turn is admitted to run. Model requests use the latest available Git metadata while collection continues, and later requests can include the worktree status once it is available. Use shared background Git root discovery for the memory extraction change probe and pass the resolved root into the probe. ## Testing Regression tests cover requests proceeding while status is blocked, later requests carrying the updated `HEAD`, remote URL, and dirty status, and an interrupted wake skipping the worktree scan. GitOrigin-RevId: 00f465a5621d672d8b6d9063c384fb62e493c79f
## Why Launch errors and timeouts can be hard to diagnose without knowing which stage the launcher reached or how long each stage took. ## What changed Log MXC launch phases by process ID in the Windows sandbox runtime log. Distinguish filesystem helper launches from regular commands and record filesystem grant counts, preparation, spawn, and wait durations, and launch outcomes or errors. Reuse the runtime log's rolling file appender across entries in the same launcher process. GitOrigin-RevId: 8d55261fc9efeab8afe4b5be67b5aacb6868f3da
## Why The existing GPT-6 migration guidance points to the earlier Astra quickstart. Explicit GPT-6.2 Astra and Sol requests need guidance for the selected model and its endpoint requirements. ## What changed Direct both GPT-6.2 targets to the shared migration quickstart and document that both support Responses and Chat Completions, with tool calling requiring Responses. Refresh the fallback model guidance and point onboarding examples to the model selection guide. Specify model choices for legacy Chat Completions examples, Codex CLI examples, and configuration shared with the IDE extension. GitOrigin-RevId: 14000eedac4f2a4169bb76212cb74d8342b5752e
…2474) ## Why HTTP sampling can attach private connector result bodies, but Responses WebSocket sampling leaves them out. WebSocket requests need the same destination and account checks before sending those bodies. ## What changed Apply the existing HTTP eligibility checks to each WebSocket attempt and attach only result bodies that belong to the current account and match the input being sent, including when that input is an incremental update. Keep prewarm requests free of private result bodies. Update `tungstenite` and `tokio-tungstenite` to keep sensitive payload bytes out of frame diagnostics. ## Testing Add regression coverage for connector results reaching the server while staying out of request observers and client logs. Cover custom-provider requests and retries across an account change with results from both Code Mode `exec` and `wait`. GitOrigin-RevId: df5ec8608e59bb3a0444fafd5268279e669ccb55
## What changed Remove the legacy framed stdio protocol and its client and server. Local Codex launches the standalone host with `--listen grpc+stdio://`, which is also the host's default. The `stdio` and `stdio://` aliases now select gRPC over stdio. The `features.code_mode_host_grpc` setting is deprecated and ignored. Carry execution trace context into gRPC tool callbacks and notifications. Reject oversized execute requests before sending them so an encoding failure does not appear as a connection reset. ## Testing Exercise gRPC callback cancellation, trace context across overlapping yielded cells, and isolation of tool preload failures between sessions. Check that both values of the deprecated feature setting are ignored. GitOrigin-RevId: f5faff3901dc60958627f677f50cfad834291b69
## Why Boxing the thread startup future at each call site makes each caller compile its own copy of the future. ## What changed Return a `BoxFuture` from `spawn_thread` and move the startup logic into `spawn_thread_inner`. Thread start, resume, and fork paths now await `spawn_thread` directly. GitOrigin-RevId: 5004651423551e173b1cc98b185c6a1dc2bc097e
## Why Attached reviews used fixed evidence limits even when elastic budgeting was configured. This could reject a pending tool call whose exact arguments would fit within the review request's input budget. ## What changed Use the configured budgeting policy to prepare the pending action and permissions for attached reviews. With elastic budgeting enabled, check whether the exact call fits when enforcing the final request budget. ## Testing Add a regression test for a tool call that exceeds the fixed evidence limit. Elastic budgeting rejects it when the request budget is too small and preserves the original call when it fits. GitOrigin-RevId: 42cc4a8682a98badfe6be95434703500403e7118
## Why A thread can start while managed Guardian policy is being refreshed. Startup and refresh need to coordinate so the thread does not register with policy that the refresh has already superseded. ## What changed Let hosts provide a `GuardianPolicyLoader` to `ThreadManager` for startup and on-demand refresh. Pause thread registration while a refresh loads and publishes policy. If publication overtakes a thread's startup configuration, reload Guardian policy before registering the thread. Apply the published policy to live threads concurrently. Once published, the updates continue even if the refresh caller is canceled. Return an error if any live thread rejects the update. ## Testing Add regression coverage for an idle thread receiving the update while another thread holds its session lock, and for reporting a live thread's rejection of invalid Guardian configuration. GitOrigin-RevId: ca0cfa2a30f0d45c4ac5ded3400e0e18177ede1d
## Why Clients need to distinguish a caller who must enroll in Daybreak from a model that does not support it. The list of accepted access programs alone cannot express that distinction. ## What changed Carry the server-resolved status for each caller and model from the model catalog into `model/list` as `availableAccessPrograms.daybreakAvailability`. Update the JSON schemas, TypeScript bindings, and Python SDK to expose the field. Rust decoders use `default` for missing or unrecognized statuses. The Python SDK also defaults missing statuses and preserves new strings from newer hosts. ## Testing Cover catalog decoding, app-server response serialization, and Python SDK round trips with known, missing, and future status values. GitOrigin-RevId: c1e5ddef68fd19b25e583bb6996a93fd78ab9d18
## Why Dividing total handler time by the call count gives a per-call mean without averaging histogram export batches. ## What changed Record `codex.exec_command.duration_total_ms` and `codex.exec_command.calls` for built-in `exec_command` handler runs, including failures. Measure from handler entry through command exit or the first yield, including shell setup and startup. Exclude calls rejected before the handler runs and retain tags such as `shell_snapshot_mode`, `success`, and `product_sku` when available. ## Testing Cover Statsig export of both counters and check that their counts and duration totals match the tool duration histogram for eligible calls within each tag set. GitOrigin-RevId: 4bf6dc628bca5758999bf0ed5f67051f870a61e8
App-server clients that prepare threads for later use need to be able to skip Daybreak propagation for an individual thread when the server configuration enables it. With `experimentalApi`, pass `daybreakProgramPropagationEnrolled: false` to `thread/start` to opt a new root thread out. Managed requirements take precedence. Omitting the field or passing `null` or `true` uses the configured enrollment rule. The same field on `Thread` reports actual enrollment for the live session, including in the start response and `thread/started` notification. Reusing a live session preserves its enrollment. A thread returned from stored metadata alone reports `null`, and resuming it from storage in a new session reports `false`. App-server tests cover enrollment under enabled, required, and disabled configuration, as well as reporting across live reads and resumes, unload, and resume from storage. A core test checks that opting out prevents native helpers from inheriting the root's saved Daybreak choice. GitOrigin-RevId: f9aae9ff76702b1e5a38d45120cd889a26f8ece5 (cherry picked from commit 566020b)
…penai#63266) ## Why Discovering project instructions and repository skill directories can require several metadata checks per ancestor directory. Batching those checks reduces remote executor round trips and sandbox helper launches. ## What changed Add bounded metadata batches that return a result or error for each path in input order. Remote executors advertise support for `fs/getMetadataBatch`, and sandboxed filesystems can process a batch in one helper invocation. Check project root markers alongside the first working-directory instruction candidate, then batch the next candidate across unresolved directories in filename priority order. Batch checks for `.agents/skills` directories between the project root and the working directory. Fall back to individual checks when batching is unsupported. ## Testing Extend tests to assert batch counts for shallow and nested `AGENTS.md` discovery and verify that metadata batches preserve result order and per-path errors. GitOrigin-RevId: 6cb04202a905d783454908348d008def95b9a5d6 (cherry picked from commit 5f645d7)
- Follow thread links from search results and transcripts to open saved conversations and nested agents in the terminal. (openai#62332) - Press `Tab` to complete arguments for supported slash commands. For example, `/mcp lo` completes to `/mcp login`. (openai#62343) - Jump between task groups in the agent command center with `Shift+Up` and `Shift+Down`. (openai#62200) - Optional stdio MCP servers with cached tool lists now start on their first tool call by default. (openai#62366) - Set an approval reviewer for individual connected app tools in `config.toml`. (openai#62360) - App-server clients can select Amazon Bedrock Runtime during setup or sign-in. (openai#62222) ## Bug Fixes - `codex exec resume` restores saved sandbox permissions, the working directory, and workspace roots unless explicitly overridden. (openai#62194) - Remote sessions preserve working directories, workspace roots, and writable paths when the client and server run on different operating systems. (openai#62375, openai#62376, openai#62377) - Codex reports provider errors as soon as they arrive in a response stream and identifies which API spend limit was reached. (openai#62329, openai#62356) - Interrupting a parent turn preserves queued replies from child agents for the next turn. (openai#62348) - Use `PageUp` and `PageDown` to read and submit answer choices that are taller than the terminal’s answer area. (openai#62209) - Cloud replies that finish after history loads now update in place, keeping the terminal transcript in order. (openai#62403) ## Documentation - The bundled `openai-docs` skill now covers migration to GPT-6.2 Astra and Sol, including endpoint choices and tool-calling requirements. (openai#62447) ## Chores - Code Mode now uses gRPC for all host connections. The `code_mode_host_grpc` setting is deprecated. (openai#62476) - Python formatting and SDK type generation now verify dependency hashes against the repository lockfile. (openai#62346) ## Changelog Full Changelog: openai/codex@rust-v0.171.0...rust-v0.172.0 - openai#62190 Route turn and response checkpoints through the rollout budget policy @anp-oai - openai#62192 Distinguish Windows sandbox provisioning timeouts and pipe closures @zm-oai - openai#62194 Preserve saved sandbox permissions when resuming `codex exec` @viyatb-oai - openai#62200 Add task group navigation to the agent command center @bc-openai - openai#62202 Omit unknown server versions from `/status` @bc-openai - openai#62205 Keep sandbox preparation with the command through launch @viyatb-oai - openai#62206 Prevent duplicate initial context when injection races the first turn @euroelessar - openai#62209 Allow paging through long choices in async questions @bc-openai - openai#62215 Resolve Linux sandbox mode once before launching the helper @viyatb-oai - openai#62222 Allow Bedrock Runtime selection during setup and login @alexsong-oai - openai#62225 Tag Guardian review counts with turn origin @cazhang-oai - openai#62245 Refactor realtime handoff and history access @zahan-oai - openai#62251 Derive realtime input receipts from thread history @zahan-oai - openai#62271 Gate local realtime frame history on paginated storage @zahan-oai - openai#62274 Support independent refreshes of managed Guardian policy @ioanbudea-OAI - openai#62276 Refresh managed Guardian policy independently of MCP @ioanbudea-OAI - openai#62284 Use the system clock for in-memory MCP message boards @jif-oai - openai#62288 Persist realtime handoffs before accepting turn input @zahan-oai - openai#62292 Route injected plaintext agent mail through the native mailbox @jif-oai - openai#62299 Preserve pending realtime speech when a call ends @zahan-oai - openai#62302 Route local MCP board notifications through response item injection @jif-oai - openai#62308 Extract Guardian verdict execution and pending-action context @felixxia-oai - openai#62309 Use attached Guardian reviewers for synchronous approvals @felixxia-oai - openai#62310 Use Guardian V3 board evidence for synchronous approvals @felixxia-oai - openai#62314 Keep authorization evidence local to agent forks @rhan-oai - openai#62317 Move sandbox preparation into platform backends @viyatb-oai - openai#62320 Trace MCP binding capture and tool catalog refresh @bkotsopoulos - openai#62325 Accept inbound Noise connections in remote exec-server @richardopenai - openai#62326 Measure plugin recommendation latency during initial context setup @bkotsopoulos - openai#62329 Report API spend limit errors by scope @apcha-oai - openai#62331 Migrate the Windows MXC sandbox to the public V1 SDK @iceweasel-oai - openai#62332 Open Codex thread links inside the TUI @bc-openai - openai#62335 Let users open the command center from provider error screens @bc-openai - openai#62337 Box the config reload future for persistent MCP tool approvals @dylan-hurd-oai - openai#62338 Account for macOS voice build parallelism in Bazel @dylan-hurd-oai - openai#62343 Add slash command argument completion to the TUI composer @bc-openai - openai#62346 Verify dependency hashes when running Python repository tools @colby-oai - openai#62348 Preserve queued agent messages when a parent turn is interrupted @jif-oai - openai#62350 Support piped I/O when starting Seatbelt sandbox commands @charliemarsh-oai - openai#62353 Add a shared sandbox launcher for Linux and macOS @charliemarsh-oai - openai#62354 Treat statusless bio and cyber policy errors as terminal @charliemarsh-oai - openai#62356 Surface Responses stream errors as soon as they arrive @charliemarsh-oai - openai#62357 Report why turn critical path capture is incomplete @akak-oai - openai#62358 Reserve credential permission tables in Codex configuration @viyatb-oai - openai#62360 Allow per-tool approval reviewers for Codex apps @jameswt-oai - openai#62362 Make sidebar file preview errors easier to act on @fcoury-oai - openai#62366 Enable lazy startup for stdio MCP servers by default @charliemarsh-oai - openai#62370 Share config layer entries across snapshots @charliemarsh-oai - openai#62372 Make Guardian V3 routing and retrieval guidance configurable @felixxia-oai - openai#62373 Add opt-in in-memory message boards for Guardian v3 @felixxia-oai - openai#62374 Reconsider denials in attached Guardian reviews @felixxia-oai - openai#62375 Preserve app-server thread working directories across platforms @etraut-openai - openai#62376 Preserve sandbox writable roots across client and server platforms @etraut-openai - openai#62377 Preserve workspace roots across client and server platforms @etraut-openai - openai#62378 Remove the 4,000-byte prompt limit for `thread/sample` @keyz - openai#62382 Skip the sandbox denial wait when unified exec output closes @richardopenai - openai#62384 Centralize transcript overlay input routing @fcoury-oai - openai#62386 Prepare managed proxy settings once per sandbox command @viyatb-oai - openai#62387 Expose custom status lines in `/experimental` @joesavona - openai#62388 Support optional Apps tool results in Responses requests @ssetty-oai - openai#62389 Pause runtime sandbox integrity checks @iceweasel-oai - openai#62390 Highlight clickable links and controls on hover in the fullscreen TUI @fcoury-oai - openai#62392 Pass eligible connector results through to ChatGPT Responses @ssetty-oai - openai#62400 Test saved chat hover highlighting in the sidebar chooser @fcoury-oai - openai#62403 Reconcile unfinished Cloud replies in the TUI transcript @bc-openai - openai#62407 Deduplicate large tool output strings in rollout traces @cassirer-openai - openai#62415 Enable network access in the shell snapshot filesystem test @TAFOYA-OAI - openai#62419 Allow per-sample model overrides in `thread/sample` @keyz - openai#62420 Box the future returned by response item injection @charliemarsh-oai - openai#62421 Reject provider query parameters for connector result passthrough @ssetty-oai - openai#62423 Include nested Apps tool results in Code Mode sampling requests @ssetty-oai - openai#62430 Support tool-specific JavaScript preloads in Code Mode @hlevy-openai - openai#62432 Add opt-in OAuth discovery to config server loaders @vishnu-oai - openai#62434 Expand connector result metadata coverage across auth configurations @ssetty-oai - openai#62435 Let extensions attach metadata to MCP tool requests @tepman-oai - openai#62437 Defer Git worktree status until the turn starts @ningyi-oai - openai#62439 Add Windows MXC sandbox launch diagnostics @iceweasel-oai - openai#62447 Update the `openai-docs` skill for GPT-6.2 @kkahadze-oai - openai#62474 Send authorized connector results over Responses WebSockets @ssetty-oai - openai#62476 Use gRPC for all code-mode host connections @cconger - openai#62477 Box the thread startup future in `spawn_thread` @charliemarsh-oai - openai#62489 Honor elastic budgets for attached Guardian reviews @felixxia-oai - openai#62496 Refresh managed Guardian policy across Codex threads @ioanbudea-OAI - openai#62499 Expose Daybreak availability in model discovery @igorrybalka-oai - openai#62507 Add Statsig counters for `exec_command` latency @jif-oai
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
JJLiebig
marked this pull request as ready for review
November 24, 2026 00:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Integrate upstream
rust-v0.172.0(3d86e43b07) with its original commits.Preserve process-completion wake claims through upstream turn checkpoints and durable realtime input admission. Keep imported-account managed configuration, independent hook-requested reviews, the Windows command launcher, prompt-cache state, and packaged version display on current upstream APIs.
Validation
Hosted PR CI is disabled. The full Rust workspace suite and Unix-only hook tests were outside local validation.