## What changed
Delete `codex-agent-extension`, whose `AgentRunner` submitted resolved
agent prompts in forked legacy threads and was used only by the crate's
integration test. Remove the test, the Bazel target, and the crate's
Cargo workspace and lockfile entries.
GitOrigin-RevId: 1e966ccb7b7f37f6cdd68882975bb1e940ae85db
## What changed
Have the MCP connection pool return an optional startup measurement
alongside the connection result. For a new connection, measure through
lease registration when required, including when registration fails.
If a chat falls back to opening its own connection, start the timer at
the fallback. Joining an existing connection produces no startup
measurement.
## Testing
Pool tests cover timing a lease-open timeout on a new connection,
omitting timing for the same timeout on a reused connection, and
recording timing when a chat falls back to its own connection.
GitOrigin-RevId: 364963ca2f4e7bd8338c8acc9a7869e3a7a6e9c4
## Why
The SQLite message board can queue native agent mail through app-server.
In-memory boards previously relied on the host's notification callback
for delivery.
## What changed
Add `launch_in_memory_with_app_server` so runners can opt into the same
bounded, queue-only delivery as SQLite via `thread/inject_items`. The
host still resolves agent membership, and the shared notification client
queues post previews without starting a turn.
## Testing
Extend the app-server integration test to check that, after an
app-server restart, a post from each backend reaches an idle worker
exactly once on its next turn. The test also checks that app-server
delivery bypasses the in-memory host's notification callback.
GitOrigin-RevId: fc01b5e3f43dcfca5f43366f0b184c41dc07f9eb
## Why
The TUI renders `/mcp` from app-server `McpServerStatus` responses.
The legacy renderer's snapshot still exercises grouping by qualified tool
name, a path the command no longer uses.
## What changed
Delete the legacy renderer, its hyphenated-server-name snapshot test and
fixtures, and the TUI's `codex-mcp` dev-dependency.
GitOrigin-RevId: 69f1601f19b34576ea2d9dcebdd2bfb30f414d99
## What changed
Extend the plugin manager's cache test to verify that a per-tool
`approval_mode = "approve"` takes effect after the cache is warmed with
other configurations and is still returned after `.mcp.json` is removed.
Remove the core test for this scenario and its test-only approval lookup.
GitOrigin-RevId: f99d18b435f2c1f3e0574ec2ffedbe24249e6346
## Why
The message board connects to the app server to inject messages. Automatically subscribing it to new threads keeps idle child threads loaded after their last other subscriber leaves.
## What changed
Skip automatic subscriptions to newly created threads for clients that initialize with the shared `codex_message_board` client name.
## Testing
Add a WebSocket regression test that unsubscribes the parent thread's client from a completed child thread, checks for `thread/closed`, and confirms through the original message board connection that only the parent remains loaded.
GitOrigin-RevId: 73af9e370b90c59f984c4bc804140febb0308d9b
## What changed
Remove the snapshot test for masking environment variable and HTTP header
values in `/mcp` output, its saved snapshot, and the HTTP server fixture
helper used by the test.
GitOrigin-RevId: d42092505760639776a779e93837a675ac14dece
## What changed
Use a manifest default of `writes` and a user override of `prompt`
in the plugin manager test to verify that the user setting takes
precedence. Remove the standalone tool-call approval test and keep
the regression test that checks a per-tool override after the plugin
cache has been warmed.
GitOrigin-RevId: 667e613729e47507030308646d5adc5b5794e2c2
## Why
Required MCP servers can finish at different times even when their startup
notifications arrive together. Notification arrival times cannot show how long
each server took to start.
## What changed
Measure each startup attempt and expose its elapsed milliseconds as
`durationMs` on `ready` and `failed` updates from
`mcpServer/startupStatus/updated`. Successful Codex Apps reconnects report
their own duration. Reused connections, `starting`, and `cancelled` updates
carry `null`. The protocol accepts notifications from older servers that omit
the field.
## Testing
Cover distinct durations for fast and slow required servers, timing through
lease registration for newly opened shared connections, and a fresh duration
after Codex Apps recovery.
GitOrigin-RevId: 39c0c418149dd2b220828be04d998085f57acf2d
The turn context renders generic plugin guidance through
`AvailablePluginsInstructions`. Remove `render_plugins_section` and its sole
caller, a test that checks the bundled guidance through that helper.
GitOrigin-RevId: 30e2b7aaab9432b7a29b8124676907b8dc1228e9
## What changed
Remove the test that checked whether a tool-level approval setting
overrides the MCP server default, an unconfigured tool uses the server
default, and an unknown server falls back to `Auto`.
GitOrigin-RevId: 68df73cbefe79772d75cdc35abe42d4de3cf991d
## Why
The existing preview test exercised a summary extractor used only in
tests, leaving the app-server rollout preview path without that check.
## What changed
Remove the test-only summary extractor and test
`preview_from_rollout_items` directly. Verify that the preview skips
`AGENTS.md` instructions and strips the preceding context to return
`Count to 5`.
GitOrigin-RevId: 123f0db2807cd2d95d85b3f99da9152f24cd50ff
## Why
When automatic reconnect failed in a remote conversation, users had to
relaunch Codex to try again and copy any unsent draft they wanted to keep.
## What changed
Press `Ctrl+R` in an eligible disconnected conversation to start a fresh
reconnect attempt while keeping the draft editable. In Vim mode, the
shortcut works in Insert mode and leaves Normal mode redo intact.
Show the retry shortcut in the chat footer, direct users back to the
conversation from the agents overview, and show a fresh timer only while
a reconnect attempt is running.
Clear stale MCP startup activity on disconnect while preserving the busy
state of an active turn. Check whether a selected slash command is
available before submitting it from the offline completion menu.
## Testing
Extend coverage for retry after timeout, draft preservation, Vim Normal
mode, reconnect status, and offline slash-command handling. Verify that
disconnect clears stale MCP startup activity while an active turn stays
busy.
GitOrigin-RevId: 0742219e891be89a78418c9b8bbc789cd660cec5
## What changed
Add `features.defer_image_generation` so code mode can discover the image
generation tool through `ALL_TOOLS` without including its definition in
the initial model request. Direct exposure remains the default and
applies when `image_gen` is excluded from code mode.
## Testing
Update the app-server GIF edit test to discover and invoke the deferred
tool through code mode. Verify that the initial request omits the tool
definition, the discovered definition includes the GIF option, and the
edit preserves animation and API defaults.
GitOrigin-RevId: 899f689bae0b86099a0ca3736d1cd2576bc3a7a9
## What changed
Delete the test-only helpers for converting state database metadata into
a `Thread`, along with the unit test that checked whether those helpers
preserved subagent nicknames and roles.
GitOrigin-RevId: 0218372fd82f9efd4d79a1a44f662d781bc5df5a
## Why
An already-loaded conversation can ignore permission overrides sent with
a resume request. Applying the preset to the TUI's launch configuration
can also carry it into later conversations.
## What changed
Resolve the preset using the selected conversation's workspace and
managed requirements. Apply it only to the initial resume, so `/new`
and later resumes use the regular launch configuration.
If an already-loaded conversation needs a settings update, read back
its approval and sandbox settings before submitting the initial prompt.
Stop the resume when the server cannot confirm the requested settings
or when workspace or managed restrictions cannot be verified.
## Testing
Regression tests cover CLI flag precedence, updating an already-loaded
conversation, rejecting unverifiable restrictions, and keeping the
preset out of new and subsequently resumed conversations.
GitOrigin-RevId: 6a09097dfc64fdeb890c03cd3e56bb404e5199c8
## Why
Releasing the fixture's loopback port before starting `exec-server`
lets another process claim it before the server binds.
## What changed
Keep the configured endpoint bound without serving WebSocket handshakes,
so it stays unavailable even across app-server restarts. Let each live
`exec-server` bind an ephemeral port and use the URL it prints to update
the same environment ID via `environment/add`.
GitOrigin-RevId: eedfecee40b410b32b2d62774b0a46d1ef5575f6
## Why
The prompt image cache keeps original image bytes in memory after the
last caller releases them. A later request already supplies those bytes,
so the cache only needs to remember that they decoded successfully and
could be used as-is.
## What changed
Cache the format and dimensions of validated, unchanged images with a
weak reference to the source buffer. Matching requests share the buffer
while it is live. After it is released, a cache hit takes ownership of
the new input buffer without copying or decoding it again. Concurrent
misses reuse the first live result when inserting into the cache.
Key entries by a BLAKE3 hash of the input, image mode, and decoder
choice. Keep transformed outputs in the cache and apply the byte budget
using source length for unchanged images and allocation capacity for
transformed outputs.
## Testing
Cover buffer sharing and release, reuse after release, concurrent cache
misses, and byte-budget eviction. Verify that a warm cache still rejects
a PNG with corrupt pixel data.
GitOrigin-RevId: b830ecaf8af713bdcc4d1c7782675ad77db74229
## Why
A resumed thread can use a different model provider from the app server's
default. A single catalog can show models from the wrong provider when the
user opens `/model` in that thread.
## What changed
Fetch and cache model lists by provider on servers that support provider
selection, and clear cached lists when the account changes. Keep the server's
default catalog available for new threads.
Apply model choices for alternate providers to the current session only.
When a non-Cloud server's catalog cannot be scoped to a provider, show the
server's default models and limit changes to the current session as well.
## Testing
Cover provider-scoped requests, fallback to unscoped lists, session-only
picker actions, and preservation of new-thread defaults after refreshing an
alternate provider's catalog.
GitOrigin-RevId: 9e82c99613dba5de73cb2210dc61835b812cedf5
## Why
A TUI composer prompt does not supply `workspace_kind`. The app server
can derive it from the thread's current project assignment.
## What changed
Use the staged assignment until the thread is saved, then read the
persisted assignment on each new composer turn. Use `project` or
`projectless` as a fallback for model request metadata and turn analytics.
Explicit client metadata takes precedence, and the inferred value stays
with the originating turn.
## Testing
Cover the model request header and analytics event on the first turn,
on a follow-up, and after removing the project assignment. Unit tests
cover explicit metadata precedence and verify that MCP requests,
extensions, and child agents do not inherit the inferred value.
GitOrigin-RevId: 62b88484dd4028a6b72584999e0fa9b84e6e3b03
## Why
Reading a locked Secret Service credential can trigger a graphical unlock
prompt even when Codex is running without a display.
## What changed
When both `DISPLAY` and `WAYLAND_DISPLAY` are unset or empty, read Secret
Service credentials with the default target only if they are already
unlocked. Preserve legacy lookup for missing entries and ambiguity errors
for multiple matches.
GitOrigin-RevId: d7f347edc05dcaaa12847f5e1a4aff5ea7f69cf9
## Why
MCP tools can return structured data alongside a JSON text fallback for
clients that need it. Printing the whole result in Code Mode can show
the same data twice.
## What changed
Enable `features.code_mode_mcp_result_dedup` to let `text()` omit
`content` when it prints an original, successful MCP result whose only
content block is a plain text fallback that parses to the same JSON as
`structuredContent`. The JavaScript result retains both fields.
Carry the result format through gRPC so the host can distinguish MCP
results from ordinary JSON. The feature is off by default.
## Testing
Add coverage for both feature flag settings, for printing original MCP
results and copies through gRPC, and for comparing equivalent JSON.
GitOrigin-RevId: a8b0b42f5375d9744c235a0e663090dd5982e37e
## Why
The local code-mode host could stay running after its last session
closed. A short grace period allows nearby sessions to reuse the same
process while releasing it after sustained inactivity.
## What changed
Keep the host active while session leases or operation RPCs are in
flight. Once they drain, start a five-second idle timer. New activity
cancels retirement and starts a fresh grace period when it drains.
Process metrics only sample an existing host and leave the idle timer
untouched. Opening a session after retirement starts a fresh host.
## Testing
Add a lifecycle test that covers overlapping sessions, reuse during the
grace period, retirement despite metrics polling, and startup on the
next session.
GitOrigin-RevId: 2ebf7f7b3b3bf2d5a602b0e5b9085195eee13446
## Why
The model catalog can stay stale when a server advertises a new
`x-models-etag` only in the WebSocket handshake.
## What changed
Save the handshake ETag through warmup and emit it as a
`ResponseEvent::ModelsEtag` at the start of the first generation on each
connection. Emit it once so reusing the connection cannot replay an old
ETag after response metadata advertises a newer one.
## Testing
Add regression tests for ETag delivery with and without warmup, across
connection reuse and reconnects, and for a single catalog refresh when
the handshake is the only source of the ETag.
GitOrigin-RevId: f8fcaae4aaa0f245f01435b665cecb105c261852
## Why
An extension that manages its own credentials needs to refresh them
without restarting an MCP session, while keeping each session tied to the
identity that opened it.
## What changed
Add `McpServerContribution::SetWithAuthProvider` for host-local Streamable
HTTP servers. Codex asks the provider for fresh headers on each request.
It reuses the connection across credential refreshes for the same owner,
rejects requests whose owner differs from the session owner, and rebuilds
the connection when the active owner changes.
Provider-backed servers reject conflicting credential configuration,
disable HTTP redirects, and bypass the shared startup tool catalog.
Rebuilding the catalog disables a provider-backed registration if its
transport changes.
## Testing
Add coverage for credential rotation, owner changes, conflicting auth
configuration, transport changes, and tool discovery for the current
owner.
GitOrigin-RevId: 409cbb2237ff306932491335461e87cf5a9ec890
## Why
The archive verifier counted keys returned in `eval_keys` but ignored
them during key lookup, so it could not verify archives signed with
those keys.
## What changed
Accept eval signing keys from `eval_keys` and release signing keys from
`keys`. Enforce each list's signing purpose and reject duplicate key IDs
across both lists. Reuse the existing cache scoped by endpoint and
authentication headers.
## Testing
Cover rejection of legacy eval keys in `keys`, successful verification
with a scoped eval key, and cache isolation across endpoints, accounts,
and tokens. Add an app-server test that checks local installation
precedes the remote install request for a valid eval archive and that
tampering prevents both operations.
GitOrigin-RevId: e8b6132f204c7e4e5f30d1dcb30357bac4c136ab
## Why
Verifier unit tests exercise the signing checks in isolation. Integration
tests cover how callers handle verification failures, including whether
they preserve an existing cache or write checkout files.
## What changed
Reuse the signed archive fixture with a mock backend to cover these paths:
- `plugin/install` accepts an unsigned archive without fetching signing keys.
- `plugin/reconcile` caches unsigned and valid signed releases, reuses a
cached version without downloading it again, and preserves that version
when a newer archive fails verification or signing keys are unavailable.
- `plugin/share/checkout` writes the checkout and local metadata after
successful verification and leaves them absent for a tampered archive.
- The measurement reference cache rejects a tampered archive and accepts
valid bytes on retry for the same plugin version.
Wire the tests into Bazel and give the new RPC suite the existing app-server
integration test concurrency limits in nextest.
GitOrigin-RevId: bfac72216ccee6c5a33fe08ef0081fad48ac842d
## What changed
Make `ThreadStore::model_ids` return a `ThreadStoreResult` and require
persistent backends to preserve alias assignments across restarts for the
lifetime of the session.
The local store returns an explicit error if its state database is
uninitialized. The in-memory store returns its shared alias store, and
the core test wrappers delegate to their underlying stores.
GitOrigin-RevId: ca0d4bcf1c7dfa96f1a877b421760483b0cf3acc
## Why
Interrupting a turn during extension setup or Git root discovery could
leave its prompt missing from resumed history. Interrupting a blocking
start hook could also cause the next turn to skip that hook.
## What changed
Run the input hooks and record accepted input before setting up skills
and plugins or resolving diff display roots. Run those setup steps
concurrently and cancel diff root discovery when the turn is cancelled.
Keep each start hook event queued until its outcome has been handled so
the next turn can retry it after forced teardown. If cancellation has
already been requested, defer events with matching synchronous hooks
while still processing events that match only asynchronous hooks.
## Testing
Add regression coverage for resuming with the interrupted prompt and
the turn-aborted marker, retrying a blocking start hook after
interruption, and handling synchronous and asynchronous hook matches on
a cancelled turn.
GitOrigin-RevId: 7ee1ca6a099f6af65aa0074897af51963b9cdca7
## Why
After Ctrl-Z suspends Codex, `bg` continues the process while the shell
still owns the terminal. Restoring the TUI at that point can interfere
with the shell's terminal settings. A later `fg` can return the terminal
without sending another `SIGCONT`.
## What changed
Wait until the Codex process group owns the foreground before restoring
terminal modes, reading input, or redrawing. Preserve the TUI when
standard input has no controlling terminal at suspension time, and exit
if the controlling terminal disappears while waiting.
## Testing
Add PTY regression tests that check for unchanged shell terminal modes
and no TUI output during background continuation, then exercise
foreground handoff without a second `SIGCONT` and terminal detachment
on Linux.
GitOrigin-RevId: 4ee601a35c84a3e0aee984246b40bc3119c923f0
## Why
`eprintln!` can panic if stderr is closed or otherwise unwritable,
turning an attempt to report a recovery error into another failure.
## What changed
Write cursor cleanup, terminal restoration, and worktree startup
recovery diagnostics with `writeln!` on locked stderr and ignore write
errors so recovery can proceed.
GitOrigin-RevId: 476144173a3e04e0153018614c3086371885ed65
## Why
`codex exec` could force the approval policy to `never`, overriding
configured approvals on new threads and saved approvals when continuing
a thread.
## What changed
New local and remote threads use their configured approval settings.
Resumed and forked threads inherit the source thread's approval policy
and reviewer independently. An explicit local CLI or profile override
changes the supplied setting and saves it on the resulting thread.
Before an interactive approval can be requested, `codex exec` warns on
stderr when the effective settings call for a human reviewer. Exec
rejects those requests immediately because it runs non-interactively.
## Testing
Regression tests cover approval outcomes, warnings, and saved settings
across local and remote runs. They also cover managed sandbox validation
against an inherited approval policy.
GitOrigin-RevId: 5d3499f7a59ce16b8d909e669e9f74682f6c3b69
## Why
The first approval review can spend time starting the reviewer before it
can ask for a verdict. Starting the reviewer when the root thread becomes
ready lets that setup happen ahead of the first request.
## What changed
When the approval policy routes requests to Guardian, start the root
reviewer in the background without routing evidence or requesting a
verdict. The first approval uses the warmed conversation if it is live
and its configuration matches. Otherwise, the reviewer starts on demand.
The warmed conversation uses the first-review prompt on its first review.
## Testing
Add a WebSocket integration test that checks warmup disables generation
and that the first permission request receives a verdict on the same
reviewer connection with the planned action and no follow-up reminder.
GitOrigin-RevId: fa791404f6d000368c72bb2e437ad7be65626450
## Why
The pending action omits the user's instructions, so even an apparently
low-risk action can be reviewed without the context needed for a verdict.
## What changed
The default Guardian board guidance now tells the reviewer to list channels,
subscribe to the relevant channel if needed, and read the user's original
instructions before its first verdict on each task. For later reviews, it
directs the reviewer to use subscription updates and look up missing or
potentially stale instructions.
## Testing
Update assertions to check that blank retrieval instructions use the new
default and that custom retrieval instructions override it.
GitOrigin-RevId: e574ac72201c933c203d6ac48bb0b1019488584f
## Why
An SSH forward can replace its Unix socket listener while the old
keep-alive connection remains open. Reusing that connection can leave
MCP requests waiting on the old listener.
## What changed
Route `codex-desktop://<uuid>` endpoints to the corresponding Unix socket
for local `codex_app` servers with explicit HTTP authorization. Allow
`http_headers_helper` to supply supplemental headers while preserving the
configured authorization. Socket requests bypass proxies, strip
`Proxy-Authorization`, and disable redirects.
Reuse pooled connections while the socket is unchanged and discard them
when the listener is replaced or the socket disappears.
## Testing
Add coverage for authenticated Desktop startup, rejection of helper-only
authorization and other server names, and reconnection after socket
replacement while the previous connection remains open.
GitOrigin-RevId: a38e55d8cd726299506b487d1223fe64bd856e80
## Why
Concurrent plugin archive verifications could make repeated signing key
requests when a refresh failed, returned an immediately expired response,
or omitted the requested key.
## What changed
Overlapping lookups for the same endpoint and credentials share the
completed fetch result. Each lookup resolves its own key ID from that
result. A waiting lookup can retry if the in-flight fetch is canceled.
## Testing
Add concurrency tests that check request counts for zero-TTL responses,
unknown keys, and fetch failures. The tests also verify credential
isolation and retry after cancellation.
GitOrigin-RevId: f089f8f4822314683ecadea658d6abeac36d53a3
## Why
Verifying each signed plugin archive fetched the signing keys again, even
when the same Plugin Service credentials and key ID were used.
## What changed
Reuse signing keys within a plugin manager for the same Plugin Service
endpoint and request headers until the server-provided
`cache_ttl_seconds` expires. Requests without a non-empty
`Authorization` header fetch keys every time.
Fetch keys when the requested key ID is missing or the cache expires.
Serialize refreshes within each scope and clear the previous keys before
fetching so a failed refresh leaves no cached keys to reuse.
## Testing
Add coverage for cache reuse and expiry, missing key IDs, invalidation
after a denied refresh, and recovery after a canceled refresh. Exercise
reuse and isolation across plugin managers through signed bundle downloads.
GitOrigin-RevId: cc1171d7914b904f6895a179cbb0cf55ffa537d3
## Why
Remote plugin downloads need to check that the archive matches the digest
and signature supplied by the release before using its contents.
## What changed
Use the shared archive verifier for remote installs, installed-plugin
updates, shared plugin checkouts, and measurement reference downloads.
Fetch signing keys through the authenticated plugin service transport.
Reject malformed signing metadata and failed verification before extraction,
and continue accepting releases that omit signing metadata.
## Testing
Extend runtime authentication coverage to check that signing-key requests
include the product SKU header and that a prepared request fails after its
network policy is revoked.
GitOrigin-RevId: 27322921cd2778a3f06d1dee124dd8a5037c2f00
## Why
A SHA-256 digest can detect changed archive bytes, but someone who replaces
both the archive and its digest can still pass that check. A signature
verified with a Plugin Service release signing key lets callers detect
that replacement before extraction.
## What changed
Add `RemotePluginArchiveDownload::verify` to check the archive's SHA-256
digest and verify its detached RSA signature with the matching
release key from the authenticated `/ps/plugins/signing-keys` endpoint.
Allow downloads with missing or null signing metadata to proceed without
verification. Report malformed metadata when verification is called so
catalog responses can still be parsed, and omit signing metadata when
serializing download records.
## Testing
Add a signed archive fixture and tests for successful verification,
tampering with both archive bytes and the reported digest, redirected key
responses, invalid signing metadata and keys, and unsigned downloads.
GitOrigin-RevId: 8dd1575cb24ca3e531223faf57d23c12445651bf
## What changed
Register `codex-plugin-archive-verification` in the Cargo workspace and
add a Bazel library target. The library currently contains only crate
documentation describing its purpose of verifying Plugin Service archive
signatures.
GitOrigin-RevId: 6d5b4e38985ccef2423561f10eea78a8e919946b
## Why
Codex does not use sequence numbers on text or custom tool input deltas.
## What changed
Add `delta.sequence_number` to the default `x-codex-exclude-stream-fields`
header for Responses requests over HTTP and WebSocket. Explicit provider
header values still take precedence.
## Testing
Update the WebSocket handshake and HTTP output-token replay tests to
expect the new default.
GitOrigin-RevId: d16ecb10f9188ba9cca4504e1b68e32832fb931a
## Why
Administrators who use one gateway for managed configuration and model
requests need to configure the gateway URL and OAuth settings in two
places. A single enrollment keeps those settings together.
## What changed
Accept `[gateway]` with a base URL and `[gateway.auth]` in system
`requirements.toml` or MDM. Use the same OAuth settings for the config
server at the gateway root and the required Responses API provider at
`/v1`, with model discovery at `/v1/models`.
MDM enrollment replaces system enrollment as a unit. Requirements
composition rejects remote enrollment, conflicting config server or
provider settings, and empty or reserved provider names.
## Testing
Add composition tests for MDM precedence, remote enrollment and
rerouting attempts, and invalid or conflicting enrollment settings.
GitOrigin-RevId: 35f04481dc2b592e25afa4ac9235481cd90cf915
## What changed
Wrap the refresh mutex wait in a `cloud_catalog.refresh.acquire_lock`
span and record `acquired = true` once the lock is held. This makes
the wait visible separately from catalog preparation and refresh work.
GitOrigin-RevId: 7cdc642d11282d8efcbc1a3468110ef3ce319b4a
## Why
MCP hook results were flattened to text, so `SessionStart` hooks could
not pass encrypted context to the model as encrypted tool output.
## What changed
Recognize text blocks marked with `codex/encryptedContent` in synchronous
MCP `SessionStart` hooks. Send them to the model as standalone
`function_call_output` items with the originating tool name and namespace.
Keep ciphertext out of hook previews and plaintext spill files. Reject
empty encrypted blocks and cap the serialized encrypted output at
40,000 bytes per hook run.
## Testing
Add a scenario that checks that ciphertext above the plaintext spill threshold reaches
the first model request unchanged, appears once after a cold resume, and
stays out of hook previews and spill files. Cover discarding encrypted
context when hook output fails JSON parsing under both failure policies.
GitOrigin-RevId: cbc11c6f7055cc131212c6e9ddd37a882ed61d38
## Why
CLI login and interactive TUI startup could look up the same config server's
OAuth metadata again when loading managed policy, even after resolving it
for sign-in.
## What changed
- Carry the resolved config server settings in memory from sign-in to policy
loading and through TUI startup and worktree setup. Reuse them only when
the configured server, outbound proxy policy, and system proxy fallback
setting match.
- Rediscover anonymous servers after onboarding so the TUI can pick up a
newly enabled OAuth requirement.
- Use discovered OAuth settings to classify app-server startup errors as
config server errors when applicable.
## Testing
Add a regression test that blocks discovery requests and checks reuse for
matching OAuth and anonymous resolutions, as well as cache misses when the
server or either proxy setting changes.
GitOrigin-RevId: 28b5c8ffdb80db09dd8bbae3c1e187189ea393bf
## Why
A silent WebSocket can leave an active controller waiting up to 60 seconds for the host to detect the outage. Reconnect backoff from earlier failures can delay recovery further.
## What changed
- Reconnect after 30 seconds without incoming WebSocket frames when a live controller is present. Keep the 60-second pong timeout when only the relay client is connected.
- Start at the initial jittered delay for the first five retries when controller activity resumes after a period with no live controllers, then increase backoff if failures continue.
- Preserve live streams and their terminals when a sequenced `initialize` request is replayed. Ignore cleanup from an old writer if a replacement connection has reused the stream.
## Testing
Cover the attached and relay-only timeout paths, retry backoff across controller lifecycle changes, and writer cleanup after stream reuse.
GitOrigin-RevId: 6618e7bca4852b05d41b18e53fe49efcb2b6db70
## Why
Without `plugins._default`, the activation policy ignored a plugin's explicit `enabled = false`. The CLI also reported remote plugin enablement directly from the marketplace, so its output could disagree with the effective state.
## What changed
Apply per-plugin enablement before falling back to `plugins._default.enabled`. The `codex plugin list` command now applies that policy to remote plugins, so an installed plugin can appear as disabled while retaining its installation and account settings. Plugins disabled at their source stay disabled.
## Testing
Cover explicit disablement without a global default in config and remote plugin loading tests, and check that the CLI reports the plugin as installed and disabled in both JSON and table output.
GitOrigin-RevId: ab9f5a5b36150d7350c2d11a8421f9e14524a1ad
## Why
`codex exec --remote` rejected model and reasoning effort overrides,
so callers had to configure those settings on the app server.
## What changed
Accept `--model`, `-c model=...`, and `-c model_reasoning_effort=...`
when starting or resuming a remote thread. As in local exec, `--model`
takes precedence over `-c model=...`.
Explicit overrides update the remote thread for the current and
subsequent turns. Omitted settings retain the thread's current values
or use the server defaults for a new thread.
## Testing
Add CLI integration coverage for fresh and resumed threads, override
precedence, and inheritance across turns. Check that invalid or
unrelated overrides fail before connecting.
GitOrigin-RevId: 9bd18b65978962cf6f325feee1056d130e9e6b91
## Why
Reasoning replay only needs the ciphertext from the completed item, so
sending it when the item is first added is unnecessary.
## What changed
Default `x-codex-exclude-stream-fields` to
`reasoning.added.encrypted_content` on Responses HTTP streams and WebSocket
handshakes. Provider-configured values take precedence, and an empty value
opts out. Use a separate header to preserve compatibility with servers that
recognize `x-codex-exclude`.
## Testing
Extend integration tests to cover the default on both transports, provider
overrides, and replay with or without preliminary ciphertext.
GitOrigin-RevId: 83b72e5dd896f96e2793e67f0f05828218b98af7