Repository navigation
Integrate upstream rust-v0.173.0 - #299
Merged
Merged
Conversation
## Why Fallback lookups repeatedly parse the embedded model catalog even though its contents are fixed for the lifetime of the process. ## What changed Parse the bundled catalog once on first use. Borrow the shared catalog for fallback lookups and copy it when building an owned snapshot or merging remote models. ## Testing Extend the API key discovery test to verify that a bundled model lookup applies a request's `base_instructions` override and that a subsequent lookup returns the original bundled model. GitOrigin-RevId: 27c90b65667724312673c5d5ae01a3fc6b5b1416
Take the payload from the successful tool result and pass it directly to the post-tool-use hooks. GitOrigin-RevId: bb7dbe82bbc7b565257b94a0473476326e60db12
…penai#62534) ## Why Namespace-wide guidance can repeat on every entry in flat Code Mode listings. The existing prefix limit covers only reachable `functions` tools, leaving indirect namespace guidance outside the budget. ## What changed - Add `builtin_tool_namespaces` to put guidance on namespace headers in Code Mode prompts and tool search responses, including headers shared with client tools. The selector applies to namespaces with a registered built-in tool and is omitted from flat listings. Overlapping selectors must agree after trimming. - Validate all four prefix maps together against the selected model's `description_prefix_budget_bytes`, which defaults to 512. Count each trimmed value once in UTF-8 bytes, including unused selectors. Exclude keys, paragraph separators, and rendered copies. ## Testing Cover shared headers, flat listings, and conflicting selectors. Exercise the default budget boundary with multibyte text and verify that a model can raise the limit. GitOrigin-RevId: 1570c23ea1dbad6041cc8e48d0dc2b77f92596c7
## Why Automatic mailbox wakes can start new turns while the app-server is draining or has paused turn admission. Native child results still need to reach the parent during drain so they can survive a daemon restart. ## What changed - Require a turn admission permit for ordinary automatic mailbox wakes and hold it through turn registration. Retry queued work when a temporary pause ends. Explicit follow-ups and native child results can still wake the parent during drain. - Let `thread/inject_items` queue plain-text agent messages for native child threads when native tools are enabled. Injected mail follows the ordinary wake rules. - Extract the remote app-server client, shared event and request types, and WebSocket compression into `codex-app-server-remote-client` so callers can use them without linking the app-server runtime. ## Testing Cover delivery of queued mail when admission reopens, injection into native child threads, and recovery of a child result after a daemon restart. GitOrigin-RevId: 4c5ceeca8829c2612cc2b6b74c03d0c7677a9244
Pass the host's existing `&[UserInput]` into `TurnInputContext` to avoid cloning the input when building extension turn items. Use the borrowed slice directly for skill mention detection and shadow selection. GitOrigin-RevId: f4983b584830e481d914f0c9aa1e39e78b965a19
…ai#62547) ## Why A stalled WebSocket write can leave the remote client's command queue full. Shutdown can then wait indefinitely to enqueue its command, before it reaches the timeout that allows it to abort the worker. ## What changed Apply `SHUTDOWN_TIMEOUT` to enqueuing the shutdown command so the client can reach the existing worker abort fallback even if the queue stays full. ## Testing Add a paused-time regression test that keeps the queue full with a stalled worker and verifies that shutdown returns and the worker has finished. GitOrigin-RevId: d7c1a90442cd2619893144b20e43f6d87d5caa94
## Why The terminal renderer already supports line breaks in flowchart node labels. The same syntax in an edge label causes the diagram to fall back to source text. ## What changed Treat `<br>`, `<br/>`, and `<br />` as line breaks in edge labels. For example, `A -->|"Review<br/>order"| B` renders the label on two lines. Reserve space for each line and preserve blank lines without erasing edge connectors. ## Testing Add snapshots for all four layout directions and update the terminal Markdown snapshot to include a multiline edge label. Test blank lines and terminal width limits. GitOrigin-RevId: 277525d92c6c1f105bc34516893c67eccc22a22c
## Why Local stdio discovery needs to accommodate legacy servers that return an empty response to `server/discover`, take longer to initialize than the discovery watchdog allows, or require `initialize` as their first request. ## What changed Mark `mcp_connection_sharing` stable and enable it by default. Treat an empty discovery response as an unsupported method and let legacy initialization use the configured startup timeout. Give legacy restarts a fresh timeout and keep modern version retries within the original deadline. ## Testing Cover empty discovery responses, slow initialization on the original connection, and restarts after ignored or rejected initialization. Explicitly select legacy mode in tests that depend on legacy behavior. GitOrigin-RevId: 04d87ddfe02fac8491f879ce420bf294dc725128
## What changed
Apply the same Unicode combining tilde as `\tilde` when the
`\widetilde` argument is a single grapheme.
## Testing
Extend the Unicode math snapshot to cover both `\widetilde{I}` and
`\widetilde I` in fraction numerators.
GitOrigin-RevId: e6976f998bb0955ba9c73117bd19dd814b07399a
…#62557) ## Why Process lifecycle handlers could overwrite each other's updates by reading and replacing the entire state. For example, a rejected stdin write could restore an older snapshot after the output collector recorded an exit code. ## What changed Apply lifecycle transitions in place under the watch channel's write lock. Rejected stdin writes and confirmed termination only mark the process as exited, preserving any exit code already reported by the executor. ## Testing Regression tests cover both closed stdin and unknown-process responses. They verify that subsequent lifecycle updates preserve the exit code and sandbox denial recovered from the final read, and that repeated calls to `fail_and_terminate` preserve the first failure message. GitOrigin-RevId: f090c0860c86b6e668c31d122d986ea4f4a119b6
## What changed Set `GN_ARGS` in the rusty_v8 release and V8 canary workflows so `mksnapshot` can load the ICU data file from the build directory. Code mode registers its own copy of the ICU data at runtime. GitOrigin-RevId: a80adca7ce27906b31ae95c055f99b514cac5d9f
## Why An overflowing hook total could send a partial charge to the host, and an overflow in native accounting could leave the posted balance infinite. ## What changed Reject overflowing hook totals before reporting usage. Check both the combined provider and hook charge and the cumulative rollout balance before posting, preserving the previous balance on overflow. Native budgets with limit enforcement enabled still stop new work on overflow. ## Testing Update the hook overflow integration case to verify that the response's tool is blocked and the host receives no usage report. GitOrigin-RevId: 2ac80a6aa1d857924a8807df7bb70c6b7c107cd2
## What changed Use `esc close` to show how to combine the Escape binding's display label with the action text and use the shared shortcut styling in views and mockups. GitOrigin-RevId: 0bb0dc94e503932443076dbe2495e5494e3df5b2
## Why Steering can cancel a paused mock HTTP stream, realtime handoff and turn events can arrive in either order, and streaming tools can run before the response reports token usage. Tests that assume a fixed sequence can fail depending on timing. ## What changed - Pause the hooks test at assistant message completion so both queued prompts enter the same batch before the turn resumes. - Track the handoff and turn events in one pass, waiting for the matching turn to complete on the unblocked path. - Call `get_context_remaining` during the compaction fallback and assert zero remaining tokens using the preceding response's usage. GitOrigin-RevId: ec8a108517c819d7087681e8e2c7b5b57f4b341e
…penai#62566) ## Why The stalled-helper test waits 10 real seconds to check the timeout. ## What changed Use Tokio's paused clock and a named pipe to keep the helper blocked. Assert that it reports the expected timeout after exactly 10 seconds of virtual time. Keep executable paths with spaces covered by a separate test. GitOrigin-RevId: ceabf0697576c7944708e467dd0f1a33fd644f42
## Why Correlating a subagent's creation, turn attempts, and stop requests helps explain what happened when those actions span workers. ## What changed - Emit structured events and counters for successful spawns and accepted `close_agent` and `interrupt_agent` calls. Count accepted stops even when the target is already idle or unloaded. - Track initial, follow-up, and resumed turn attempts for spawned subagents. Record each start and at most one outcome per attempt: completed, failed, interrupted, or suspended. - Use thread, turn, and call IDs to correlate structured events while keeping those IDs out of metric labels. ## Testing Add coverage for lifecycle counts, duplicate outcomes, stop handling, and event correlation across workers. Improve the Windows elevated sandbox test for an approved `git pull` by provisioning the sandbox before the turn and reporting setup or launch failures with diagnostics. GitOrigin-RevId: bc1190302e1dffbdd79c7ac984b6debe1dac4a65
Return a pinned, boxed future from `try_load_managed_auth` so callers store a pointer to the credential loading future in their async state machines instead of embedding the full future. GitOrigin-RevId: 898e4877cc197720d88fc36a566533c5594f4f38
## Why A fixed gap cannot keep two statusline groups at opposite edges as the terminal width changes. ## What changed Set `justify: "between"` on a root `row` to distribute spare footer columns between its items on each line, in addition to the configured `gap`. Nested rows size to their content within the available width, so they can keep related fields together. Use `justify: "start"` to pack items at the leading edge with the configured gap. Both explicit modes group adjacent bare strings into one item. Separate `text` or `row` elements can be positioned independently. Omitting `justify` preserves the existing gaps between authored children. ## Testing Add renderer tests for edge alignment during resizing, spacing on wrapped lines, and root versus nested rows. Extend the row decoding tests and the TypeScript contract fixture to cover `justify`. GitOrigin-RevId: 3319e688f3adfe6d35709ef279345f1db3eb9693
## Why A serving probe that reports no review needed can bypass async scoring. Keeping the async path active lets Guardian compare the two signals while using the existing approval policy. ## What changed Treat streamed review flags as observations. Match each flag to its response item, carry the enclosing item's flag into Code Mode tool calls, and discard the flag when a pre-tool hook rewrites the payload. Emit correlated `codex.guardian_probe_comparison` logs for tool calls, async classification outcomes, and synchronous review results. ## Testing Update integration tests to expect async scoring even when a probe reports no review needed, and verify that Code Mode retains the probe across yield and resume. GitOrigin-RevId: 715f56ba4a82d544ce59f0291bcd1a84dd2daa51
## What changed Request emoji presentation for the cloud marker in thread labels. Preserve the emoji variation selector immediately after the cloud symbol in Unicode terminal titles and keep GNU Screen titles ASCII. ## Testing Update rendering snapshots for the task overview, side panes, mentions, resume picker, and thread identity displays. Extend the terminal title test to cover the cloud marker in both title encodings. GitOrigin-RevId: 15959a0760f63a45d8fff917df2e008cda7536a5
## Why
An unsupported `\underbrace` leaves the display equation as LaTeX source,
so readers have to interpret which terms each label groups.
## What changed
Render `\underbrace{expression}_{label}` with a Unicode brace that spans
the expression's terminal columns and a label centered below it. Keep
surrounding math aligned with the expression. Inline math, unsupported
arguments, and layouts that exceed the available width still use the
existing fallback.
## Testing
Add a snapshot for labeled Boolean clauses, short expressions, and labels
wider than their expressions. Check fallback for inline, malformed,
nested, multiline, and over-width cases.
GitOrigin-RevId: 8fbe92d512d06c73cf21247343ad869743bebd0c
…i#62582) ## Why On macOS, `lsof` can warn about inaccessible mounts even when its search is scoped to the releases directory. Treating every warning as an inspection failure can prevent the installer from pruning unused releases. ## What changed Keep `lsof` matches when stderr contains only complete mount warnings for paths outside the releases tree and its ancestors, on devices different from the releases directory. Continue to reject warnings that could affect release inspection, incomplete warnings, and unexpected errors. ## Testing Extend the mocked macOS `lsof` test to verify that an unrelated mount warning preserves matches and that same-device, ancestor-mount, truncated, and mixed diagnostics fail inspection. GitOrigin-RevId: 006e2a38335c33ce7c974f74d3bb871d818fdd1f
## Why Sidebar previews load a snapshot of the file when opened, so edits on disk leave the open tab showing stale content. ## What changed Watch each previewed file’s parent directory through the app server so the preview refreshes even when an editor saves by atomically replacing the file. Poll every three seconds when a watch cannot be registered, and resubscribe when reconnecting to the same backend. Preserve the text preview’s reading position across reloads, including when the file temporarily becomes unreadable and then returns. ## Testing The sidebar test covers atomic saves and recovery after moving a directory away and back. It checks that the tab shows updated content at the existing reading position. GitOrigin-RevId: d5f7507d1a81a118fb10a0febf5e274c18f19d81
## Why A Guardian policy refresh could leave a thread using its previous restrictions if the new policy disallowed its current model. A refresh could also report success after its managed policy source changed before publication. ## What changed - Use the app server's configuration manager to load Guardian policy from current local and managed configuration. Report an error when the policy source changes before publication or a live thread rejects the update. - Apply updated reviewer and model restrictions even when they block the current model. Keep automatic work queued while the model is blocked and wake it when a later refresh permits it. Allow a new turn to supply a compliant replacement model. ## Testing Regression tests cover policy changes during thread startup and live refresh, queued work resuming after a blocking policy is lifted, and updated policy text reaching Guardian reviews without reconnecting MCP. GitOrigin-RevId: c7d3e119aa409342cc2fa18946ce2b6a4392e0e3
## What changed Choose the full config or shell environment filter schema inside the diagnostics module. Config loaders call the helper for the validation that failed without passing a deserialization type or the `config.toml` filename. Both helpers use the same layer traversal and source location reporting. GitOrigin-RevId: 5dcc7984b907e3769904c303cd08577c6faf4769
## Why Guardian inherits the actor's inference provider by default. Hosts that run actors on a different provider need to route Guardian reviews independently and resolve reviewer policy and model capabilities from the Guardian provider. ## What changed - Share the selected provider and its model catalog between asynchronous scoring and blocking approval reviews. Use the provider's preferred reviewer and resolve policy from managed requirements or reviewer model metadata. - Keep Guardian review history independent of actor compaction when the host selects a provider. Preserve inherited routing when no provider is selected. ## Testing Add integration coverage for separate actor and Guardian endpoints, catalog isolation when both share an endpoint, and routing after resuming a compacted thread. GitOrigin-RevId: 1eb15421f746a58eefe27257e86d948de31bcf86
…62589) ## What changed Stop collecting cumulative MCP tool attribution, sending it in Responses API request metadata, and writing it to rollout checkpoints. Use `model_search_state` for search provider history in new rollouts. When reading older rollouts, decode `mcp_attribution` only to determine whether Search MCP may have been used. Treat malformed or error attribution as possible Search MCP use so native search fallback stays disabled. ## Testing Add a history test that distinguishes legacy Search MCP use, an explicit record of no use, and missing attribution. GitOrigin-RevId: a145b5b6b7d2f423d989af10623ef21120f49d4d
## Why When Windows security policy blocks the sandbox account from signing in, commands cannot start. The runner error previously gave users only the failing API call and the numeric error code. ## What changed For `ERROR_LOGON_TYPE_NOT_GRANTED` (1385), explain the policy denial and point users to the “Allow log on locally” and “Deny log on locally” settings. Advise users on managed PCs to contact their administrator. ## Testing Add a regression test that checks the error explanation and verifies that the denial does not trigger a sandbox credential refresh. GitOrigin-RevId: b638bf3d103dc4aec72f2f9c13cb2c8825594e96
## Why Large file reads over stdio previously allocated both a base64 string and a complete JSON response before writing to stdout. ## What changed Keep file contents as bytes until the stdio writer encodes them directly into the newline-delimited JSON response through a bounded buffer. Clients still receive the same `dataBase64` field. ## Testing Compare streamed output byte for byte with the eagerly encoded response for empty files, inputs that require base64 padding, and files larger than the write buffer. Check that JSON-RPC conversion preserves the request ID and base64 payload. GitOrigin-RevId: 730f201f0905fd15e32b6e9c5b2ef02ca21c7532
## Why A remote exec-server connection could fail during setup if the transport closed before the client received the initialization response. Callers waiting for readiness received the failure even if a new connection could succeed moments later. ## What changed Share retries among callers during startup, reconnect, and connection refresh. After a retryable transport or initialization failure, use backoff and allow new attempts for up to five seconds. Attempts already underway can finish after that window. Keep the registry's existing retry policy and reuse the provisioning deadline across transport retries. ## Testing Add regression coverage for shared startup recovery after a WebSocket closes during initialization, registry retry limits and authentication failures, and child-process cleanup when stdio initialization is cancelled. GitOrigin-RevId: 56004badb67f4e5df8d939f2bc6cdfa46246fdb0
## Why When a turn incurs usage priced directly in USD, reporting only the credit-converted estimate understates its cost. ## What changed Sum `estimated_usage_usd_micros` and `native_usage_usd_micros` for settled turns. Default an omitted native USD field to zero for legacy responses. Suppress the total when either component is unavailable (including explicit null), either is negative, or their sum overflows. ## Testing Cover omitted and null native USD values, zero costs, negative amounts, and overflow in backend client tests. Verify that the combined amount reaches the OTLP exporter in the app-server integration test. GitOrigin-RevId: 8709e48329db813cd66baf270ee3f1bcfd87cb03
Refresh `MODULE.bazel.lock` with the registry hashes and module extension digests recorded for Bazel 9.3.3. GitOrigin-RevId: c7f50510531b456c0e547e8b7cb15d4bdbcca0bb
## Why Config servers that publish OAuth metadata still required administrators to configure OAuth endpoints explicitly for Codex to use them. ## What changed - Discover OAuth metadata when `config_server.oauth` is omitted. Use explicit settings when provided, and fetch managed configuration anonymously when discovery finds no metadata. - Have the Git credential helper resolve the config server before fetching managed configuration. It refuses explicit or discovered OAuth so it can apply workspace policy without opening the OS keyring. - Apply local network policy to discovery during `codex logout`. ## Testing Cover app-server recovery after a discovery failure, Git credential helper rejection of explicit OAuth without a network request, and logout discovery blocked by local network policy. GitOrigin-RevId: 1ad84effef48fd9b56371ee177bd53c54f3e87b8
## What changed At session startup, derive `assistant_record_bytes` from the Sync Elastic per-entry token limit for retained user instructions. Use the default section limit when the configuration omits that section. Store the resolved byte limit in the optional `guardian_retention` field of `ThreadSettingsSnapshot` and update the app-server schema. Fixed-mode snapshots omit the field, and older snapshots can still be read. GitOrigin-RevId: a8de88c5bd0e35c4a114577e70fb0c858acb13c9
## Why The fixed retention window can discard assistant messages before elastic Guardian reviews can use them as context for a user's reply. ## What changed Apply the thread's Guardian retention policy when recording assistant messages, including confirmed messages sent through the user messaging tool. Keep full text within the configured record limit and the overall assistant history byte budget. Preserve an incomplete marker when a confirmed delivery exceeds the record limit. Recover the thread's retention settings from saved history and compaction checkpoints. Fixed-budget reviews continue to use the fixed retention window. ## Testing Add coverage for record limits during capture and restore, thread-owned settings recovery, and replay of oversized confirmed deliveries. GitOrigin-RevId: e828f06824ce6712910a9cc5ef42a438d1ddf27e
…penai#62829) ## Why Fixed retention limits could discard long user instructions or leave older sender messages out of Guardian review even when the configured elastic budget had room for them. ## What changed - Apply the configured retained-instruction entry limit when capturing and restoring user messages. Fixed-budget reviewers use the fixed retention window for both user and assistant messages. - Build elastic sender snapshots at delivery using the receiver's sender evidence budget. Give recent user messages first claim on space, then include preceding assistant context where it fits. Mark omitted evidence and save the snapshot for review and rollback. ## Testing Add coverage for cross-host delivery after compaction, large sender snapshots through checkpoint restore and rollback, and how synchronous and asynchronous reviewers read saved or empty sender snapshots. GitOrigin-RevId: f0b01a2d558e3286335efac85a4f8645dd9b954b
## Why A required hook check can fail to run or return a usable result. Continuing after that failure can let an action proceed without a completed check. ## What changed Add per-handler `onFailure` for command and MCP tool hooks. The default `continue` preserves existing behavior. On supported synchronous hooks, `block` applies the event's blocking behavior and reports the reason while preserving failure diagnostics. For example, a failed `PreToolUse` check prevents the tool from running, while a failed `PostToolUse` check withholds the result of a tool that already ran. Expose the policy in the app-server's `configRequirements/read` response. ## Testing Add tests for command and MCP failures under both policies, and scenario coverage for blocked tool execution, withheld results, and completion after a `Stop` hook recovers. GitOrigin-RevId: 20d6ebda0094382fe052bbf34338edb994cc7bd3
## Why A successful JSON-RPC exchange can still return a failed tool result. MCP error metrics count that failure, but the trace span can lack an error status. Dropped calls can also leave spans without an outcome. ## What changed Record `codex.mcp.call.outcome` on `mcp.tools.call` spans and mark failures with OpenTelemetry error status using the same classification as the metrics. Record `interrupted` when the call future is dropped before completion, including before its first poll. Capture the numeric JSON-RPC error code in `rpc.jsonrpc.error_code` when available, leaving server error messages and data out of the span. ## Testing Extend in-memory telemetry tests to check that spans and metrics agree on error classification and that span attributes omit sensitive test values. Cover success and cancellation before the first poll and while the call is pending. GitOrigin-RevId: 57fcdc36f19cfc2f227c1ec964a932f3cf7eaa04
## Why `codex plugin add` and `codex plugin list` loaded configuration without the managed cloud configuration layer, so plugin discovery and installation could miss settings supplied by that layer. ## What changed Use the shared cloud-aware configuration builder for add and list, passing through CLI overrides. Keep `codex plugin remove` on the local configuration loader and use the loaded configuration's Codex home for all three commands. GitOrigin-RevId: 5ebe94de30e553c57ae6296a2ddb91792260a61f
…i#62840) ## Why Building Markdown styles clones the active syntax theme and constructs a new highlighter for each foreground lookup. ## What changed Borrow the active theme and use one highlighter for all foreground lookups in `MarkdownStyles`. Preserve the readability adjustment for text styles and the accent-color fallback for inline code. GitOrigin-RevId: 8ddfad7e61e2dc7968398ff3bdecd3b389c1bb07
## Why Only catalog role instructions carried the `<multi_agent_role>` tag, so the same guidance appeared in different formats depending on its source. ## What changed Render bundled, catalog, and configured root and subagent guidance as `multi_agent.role_instructions` developer messages. Wrap the guidance in `<multi_agent_role>` tags and preserve configured text that's already tagged. Match untagged parent guidance by its body when filtering forked history. ## Testing Update prompt and session assertions for tagged role instructions, and keep the cold-resume test exercising a rollout with legacy untagged guidance. GitOrigin-RevId: 60c55b5d7227811b92bd1bf125f1cd3a965720fd
## Why An explicit `thread/guardianReview` request could return a null assessment when live execution would skip approval, leaving callers without a verdict on the recorded action. ## What changed Require `assessment` on every successful `thread/guardianReview` response. Review eligible recorded calls even when a command is allowlisted, an MCP tool is configured for automatic approval or has a remembered approval, or the policy disables permission requests. The review runs without executing the call or granting permissions. Include the MCP server's owning environment permissions in the review context, matching live review. ## Testing Cover allowlisted commands, permission requests with prompting disabled, and automatically approved MCP tools. Compare live and recorded MCP review input for a server whose owning environment has denied paths. GitOrigin-RevId: 54689dc043d77f940e10d29842308340f6937980
…2849) ## Why Tool schema budget checks cloned the schema and allocated a JSON buffer just to measure its size. Building a Responses Lite catalog also cloned tool definitions before serializing them. ## What changed - Deserialize schemas from borrowed JSON during compaction, count serialized bytes without allocating a buffer, and reuse the parsed schema when it fits the budget. - Serialize borrowed tool specs and namespace members directly, and pass filtered specs as an iterator. Preserve the serialized namespace field order because the bytes contribute to the `additional_tools` item ID. ## Testing - Compare the exact serialized Responses Lite catalog against the expected namespace layout. - Add a `tool_catalog` benchmark for connector schema preparation and Responses Lite catalog encoding with 1 and 64 tool specs. GitOrigin-RevId: 6bd03a12fcedd4abfa8c3a03f298243483e98c63
## Why When the retried response also meets the guardian's resampling criteria, it can trigger another model request and keep the turn from finishing. ## What changed Consume the original prompt when scheduling the retry. The second verdict stays buffered until completion and is replayed after usage accounting, even if it also meets the resampling criteria. Usage from the discarded first response still counts toward spending. GitOrigin-RevId: f8ded8f31bd7d9e440c0c92a92a80480acec61d2
…i#62854) ## Why The code-mode host exports traces over OTLP/HTTP, and the elevated Windows Filtering Platform setup helper exports Statsig metrics. Both used the general-purpose provider, which made exporter builders for unused signals and transports reachable from those binaries. ## What changed Add `OtelProvider::try_new_http_traces` for the code-mode host and `OtelProvider::try_new_http_metrics` for the Windows setup helper. Select exporter builders at compile time so each constructor reaches only the builders it needs. Both constructors reject unsupported signals and gRPC configuration. The metrics constructor also accepts Statsig. ## Testing Add unit tests for unsupported signals and gRPC configuration. Exercise the specialized constructors in the HTTP loopback tests for trace delivery on a current-thread Tokio runtime and cumulative metrics export. GitOrigin-RevId: 875916791f0176839764c51b5ab289d5dc45a4d2
…i#62857) ## Why Threads that stay in Default mode carry a collaboration-mode prompt even though they have no Plan mode instructions to supersede. ## What changed Omit bundled and model-catalog Default mode instructions until a thread uses Plan mode. Emit Plan mode instructions on entry and Default mode instructions when switching back. Preserve eligible caller-provided instructions and carry the active mode through compaction and resume. ## Testing Cover prompt contents before, during, and after Plan mode in core and app-server tests, including compaction and resume in the core tests. GitOrigin-RevId: b734767da15be53c4eccae71994e46eba63a9ecc
## Why The Agents overview can go stale when Cloud threads change from another client, especially when the TUI has no conversation stream attached. ## What changed - Use Cloud stream notifications to update thread status and refresh the thread list. Poll every 10 seconds while the overview is visible and no stream is attached. - Refresh the history already shown while preserving the `Show more` cursor. Use fresh list metadata for thread names, recency, and unread state, and restore rows when a refresh catches a missed unarchive. ## Testing Cover Cloud inventory notifications, polling while detached, pagination across refreshes, and recovery from a missed unarchive. GitOrigin-RevId: 63c98438b6ddd2e47dd2d1f419c2a676508c6d91
## What changed
Add the optional `target` field to `account/gatewayOAuth/login`.
The startup protocol defines `{"kind":"configServer"}` as a target
for `--startup-oauth`, mutually exclusive with `modelProvider`.
The regular app-server login handler rejects explicit targets.
Define `StartupGatewayOAuthChangedNotification` with the target,
status, and authorization URL for the browser handoff. Export the
new types in the JSON schemas, TypeScript bindings, and Python SDK.
## Testing
Update the TUI device login regression test to expect `target: null`
when signing in to a resumed thread's saved gateway.
GitOrigin-RevId: fb3ce66a143cad9ad56c93f3ac37f8b6f1abdb0e
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)
- Custom status lines can align items left, center, or right, or spread them across the terminal width. (openai#62569, openai#62637) - Terminal Markdown now renders multiline labels on Mermaid flowchart arrows, labeled underbraces in display equations, and `\widetilde` over a single character. (openai#62550, openai#62554, openai#62577) - Codex shares MCP connections by default and supports older local servers that require `initialize` as their first request. (openai#62552) - Supported synchronous command and MCP tool hooks can set `onFailure` to `block`. A failed `PreToolUse` check then prevents the tool from running. (openai#62831) - Administrators can block both scheduled and manual daemon updates by setting `features.daemon_updates = false` in managed `requirements.toml` or local MDM policy. (openai#62690) - Codex automatically discovers OAuth endpoints published by a config server when `config_server.oauth` is omitted. (openai#62824) ## Bug Fixes - Open sidebar previews refresh when files change on disk, even when an editor replaces the file on save. (openai#62583) - Pasting an image path creates a private copy, so the attachment survives moving or deleting the original before sending. (openai#62687) - The Agents overview refreshes Cloud thread names, status, and unread indicators when another client makes changes. (openai#62858) - The task mention picker now fuzzy-matches the titles you see and keeps recent threads in the results. (openai#62691) - Running threads pick up updated approval requirements and Guardian policies when you reload configuration, sign in, or sign out. (openai#62585, openai#62614) - Codex can report why the server rejected a WebSocket request, including when it was too large, even if the upload stalls or fails. (openai#62749, openai#62771) ## Documentation - The TUI style guide shows how to pair a keyboard shortcut with its action and style hints such as `esc close`. (openai#62560) ## Chores - Smaller npm packages reduce the download size when installing or updating Codex. (openai#62643) ## Changelog Full Changelog: openai/codex@rust-v0.172.0...rust-v0.173.0 - openai#62525 Reuse the parsed bundled model catalog @jif-oai - openai#62532 Avoid cloning the `PostToolUse` hook payload @jif-oai - openai#62534 Add built-in namespace guidance and budget tool description prefixes @tz-openai - openai#62537 Respect app-server turn admission for agent mailbox wakes @jif-oai - openai#62540 Borrow user input in extension turn contexts @jif-oai - openai#62547 Prevent remote app-server shutdown from hanging on a full queue @jif-oai - openai#62550 Render multiline Mermaid flowchart edge labels @etraut-openai - openai#62552 Enable MCP connection sharing by default @charliemarsh-oai - openai#62554 Render `\widetilde` in terminal Markdown math @etraut-openai - openai#62557 Preserve process state across concurrent unified exec updates @jif-oai - openai#62558 Stage ICU data for mksnapshot in rusty_v8 builds @charliemarsh-oai - openai#62559 Reject overflowing rollout budget charges before posting @tz-openai - openai#62560 Document how to render TUI shortcut labels @fcoury-oai - openai#62564 Fix timing races in core integration tests @dylan-hurd-oai - openai#62566 Remove the real-time wait from the OTLP headers helper timeout test @dylan-hurd-oai - openai#62567 Add OpenTelemetry for subagent lifecycles @bryanashley - openai#62568 Box the managed credential loading future @charliemarsh-oai - openai#62569 Add justification to custom statusline rows @joesavona - openai#62571 Keep async Guardian scoring active for serving probes @jif-oai - openai#62573 Use the cloud emoji for cloud thread labels @bc-openai - openai#62577 Render LaTeX underbraces in TUI display math @etraut-openai - openai#62582 Allow macOS installer cleanup despite unrelated mount warnings @etraut-openai - openai#62583 Refresh open sidebar file previews when files change @fcoury-oai - openai#62585 Enforce refreshed Guardian policy on running threads @ioanbudea-OAI - openai#62587 Centralize schema selection for config diagnostics @charliemarsh-oai - openai#62588 Support a host-selected inference provider for Guardian @XMLIU-oai - openai#62589 Remove cumulative MCP attribution from requests and rollouts @owenlin0 - openai#62593 Explain Windows sandbox logon policy failures @zm-oai - openai#62599 Stream app-server `fs/readFile` responses over stdio @charliemarsh-oai - openai#62601 Retry transient exec-server connection failures @richardopenai - openai#62602 Apply additional context when turn input is delivered @dylan-hurd-oai - openai#62604 Expose current turn admission state on `CodexThread` @keitht-openai - openai#62607 Enable Guardian V2 scoring with an explicit Guardian provider @XMLIU-oai - openai#62609 Apply backpressure to app-server request replay on thread resume @ztanner-oai - openai#62610 Refresh plugin recommendations after installed state changes @zamoshchin-openai - openai#62614 Refresh Guardian policy on config reload and account changes @rreichel3-oai - openai#62615 Split in-memory execution policy rules into a separate crate @charliemarsh-oai - openai#62621 Handle rollout budget decisions in each accounting path @tz-openai - openai#62624 Share slash command argument range mapping in the TUI @imac-oai - openai#62627 Retry Guardian model discovery in the background @XMLIU-oai - openai#62633 Centralize thread context ID allocation @euroelessar - openai#62635 Centralize request and prefix ID handling in `ThreadContextIds` @euroelessar - openai#62636 Reduce rollout scanning overhead when listing threads @dkovalenko-oai - openai#62637 Add center and end alignment to status line rows @joesavona - openai#62639 Defer queue-only mail after a retained final answer @pash-openai - openai#62640 Reuse executor Discovery V2 inventories across turns @TAFOYA-OAI - openai#62641 Release persisted MCP tool results from active-turn memory @btraut-openai - openai#62642 Hide the warning navigation hint for a single warning @imac-oai - openai#62643 Shrink npm release tarballs with libdeflate @imac-oai - openai#62644 Pass inherited history visibility to the thread store @owenlin0 - openai#62648 Fix standalone release pruning on macOS with GNU coreutils @fcoury-oai - openai#62653 Return file sizes from `fs/getMetadata` @fcoury-oai - openai#62654 Add thread and child retention policies for injected items @vivi - openai#62674 Prewarm executor capability discovery during remote startup @TAFOYA-OAI - openai#62675 Force executor capability rescans after V2 cache invalidation @TAFOYA-OAI - openai#62677 Keep explicitly pinned history outside the carryover token budget @vivi - openai#62679 Retry executor discovery V2 failures with backoff @TAFOYA-OAI - openai#62684 Allow hosts to route selected analytics events @ding-oai - openai#62687 Copy pasted image files into temporary TUI attachments @etraut-openai - openai#62690 Let administrators disable Codex daemon updates @etraut-openai - openai#62691 Match TUI task mentions by displayed title @etraut-openai - openai#62709 Link agent tool calls to delivered messages in rollout traces @cassirer-openai - openai#62742 Flush idle Responses WebSocket pongs under backpressure @charliemarsh-oai - openai#62749 Recover server replies after Responses WebSocket write failures @charliemarsh-oai - openai#62771 Read Responses WebSocket messages during blocked uploads @charliemarsh-oai - openai#62807 Reset TUI thread-switch state on reconnect @fcoury-oai - openai#62808 Remove model-selected Search MCP routing @yitaoh-oai - openai#62810 Include native USD in ChatGPT turn cost telemetry @jfoo-oai - openai#62820 Upgrade Bazel to 9.3.3 @ioanbudea-OAI - openai#62824 Enable OAuth discovery by default for config servers @vishnu-oai - openai#62827 Persist Guardian retention limits in thread settings @ioanbudea-OAI - openai#62828 Honor Guardian retention settings for assistant messages @ioanbudea-OAI - openai#62829 Apply elastic Guardian budgets to retained user and sender evidence @ioanbudea-OAI - openai#62831 Let required hooks block continuation on failure @rtaylor-oai - openai#62833 Record MCP tool call outcomes in traces @tigrantsat-openai - openai#62837 Load managed cloud config for plugin add and list @mpc-oai - openai#62840 Reuse one syntax highlighter when building TUI Markdown styles @charliemarsh-oai - openai#62842 Tag all multi-agent role instructions consistently @rhan-oai - openai#62846 Return an assessment for explicit Guardian reviews @swastik-oai - openai#62849 Reduce allocations when preparing tool schemas and catalogs @dkovalenko-oai - openai#62852 Limit guardian response resampling to one retry @charliemarsh-oai - openai#62854 Specialize OpenTelemetry providers for HTTP traces and metrics @charliemarsh-oai - openai#62857 Defer built-in Default mode instructions until after Plan mode @dylan-hurd-oai - openai#62858 Keep Cloud threads current in the Agents overview @bc-openai - openai#62859 Define the startup OAuth protocol for config servers @arnavpatidar-OAI
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
JJLiebig
marked this pull request as ready for review
December 2, 2026 14:15
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.
Merge upstream rust-v0.173.0 at fcff6f6, preserving its original commits.
Preserve process-completion wakes and queued client context through upstream input delivery and mailbox admission. Preserve account failover, explicit hook review, Windows hook tool names, config server exports, and TUI rate limit polling. Regenerate stable and experimental app-server exports.
Validation