## 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
Borrow the contents of added and updated files. Allocate the byte vector
required by the filesystem once for the initial write and again only if
the write is retried after creating a missing parent directory.
GitOrigin-RevId: b193f0c979aecc65b3b7b6307ba1c45a6898de16
## Why
Live rollout writes also update SQLite, so lock contention in rollback
journal mode can delay recording thread activity.
## What changed
For local threads with paginated history on NFS, defer SQLite updates on
the live write path and materialize rollout history when serving history
pages. For pools configured to prefer rollback journaling, cap the pool
at two connections and allow 60 seconds for SQLite locks and 120 seconds
to acquire a connection.
Skip work already committed by another history reader. Remove rollout
files before clearing their history checkpoints and reject stale batches
that would recreate deleted history.
## Testing
Extend the thread deletion test to verify that applying a stale batch
after deletion returns `ThreadNotFound`. Check SQLite settings on every
connection using the configured pool size.
GitOrigin-RevId: e2a3c19bc8fec0a97075d468767929ce396b65e3
## Why
The shared-connection release test can fail when the client closes its
socket with a TCP reset instead of a clean EOF.
## What changed
Use an in-memory stream between the proxy and the gRPC host so only the
client socket can report a TCP reset. Accept either a clean close or a
client reset as the release signal, propagate other I/O errors, and keep
the RPC assertions that rule out an early disconnect.
GitOrigin-RevId: 25c2d5093e340da21a19a69916b3f62716e4dd52
## What changed
Expose `Client::statsig_bootstrap` and `StatsigBootstrapContext` so callers
can fetch server-evaluated Statsig values using the client's existing
authentication. The client posts the targeting context to the bootstrap
endpoint for its configured API and returns the `statsigPayload` string.
## Testing
Add a mock-server test that checks the ChatGPT route, bearer token,
account header, and JSON request body, and verifies that the client
returns the payload string from the response.
GitOrigin-RevId: 0bbe812ee036c5bf744f9e07d01b70e9c241cce3
Move preview strings out of owned rollout items and state metadata when
building stored threads. Move Git metadata out of rollout items as well.
GitOrigin-RevId: e5529857c851a0da2e2463a4b983d7b10800da0a
## Why
Mapping the logo to a fixed character grid can stretch it when terminal
cells have different pixel proportions.
## What changed
Use the terminal's pixel and grid dimensions to scale the logo uniformly
and keep it centered in the space reserved for it. Use the original grid
mapping when usable pixel dimensions are unavailable.
Refresh the cached dimensions after resize or resume in onboarding,
startup draft input, and the main TUI, even if the grid size is unchanged.
## Testing
Update the settled onboarding logo snapshot to cover a HiDPI terminal
with 11 × 25.5 logical pixels per cell.
GitOrigin-RevId: 3a8a504e00ba80ba0acc421a8b48f64c73e465aa
## Why
Live and replayed tool calls can show raw thread IDs when subagent
metadata hasn't arrived yet, making it harder to tell which agents
were spawned or are being waited on.
## What changed
Look up missing nicknames in the background and refresh tool-call rows
in the active transcript and parked panes as metadata arrives. Use
archived subagent metadata to label older rows while keeping archived
threads out of the agent picker.
## Testing
Add regression coverage for replayed spawn rows and live wait rows
when metadata arrives late, including a subagent that closes during
the lookup. Extend picker coverage to verify that archived metadata
is cached.
GitOrigin-RevId: 47a5f585d6ebc1b0d9ac49020efeaf6c1b205198
## Why
Clearing the active thread could drop its receiver and discard unread
events. A queued close from an old stream could also trigger close
handling while the same thread was being reattached.
## What changed
Keep each receiver in its thread's event channel and look it up by the
active thread ID. When a live attachment replaces the active thread's
stream, drain pending events and skip the old stream's `ThreadClosed`
notification unless the TUI is waiting for it to finish shutting down.
## Testing
Cover switching focus away and back without losing or misrouting unread
events. Exercise same-thread reattachment with a queued close, both
with and without a pending shutdown.
GitOrigin-RevId: b58767b2666ddbb64b09e6542ec8f550538531b6
## Why
Tool planning built the search index even on turns that never used
`tool_search`.
## What changed
Build the index on a blocking worker when the first search over a
nonempty tool catalog needs it. Regular and Code Mode searches share
the same build within a handler and reuse the completed index. The
build continues if the search that started it is canceled.
## Testing
Add coverage for deferred indexing, concurrent first searches, and
reuse of an in-progress build after the first search is canceled.
GitOrigin-RevId: eb696e93dbc481a76a5adfe7f5506db971047bd5
## Why
Statsig requests need to honor the caller's proxy, TLS, and network policy
settings.
## What changed
Add a `codex-statsig` crate that adapts a caller-supplied
`RouteAwareClientPool` to the Statsig SDK's HTTP interface. The adapter
requests identity encoding, applies the SDK's timeout and optional
response body limit, and leaves HTTP status handling and retries to the SDK.
## Testing
Mock-server tests cover request forwarding, preservation of HTTP error
responses, response size limits, timeout error mapping, and policy denial
before a request reaches the server.
GitOrigin-RevId: 6e78435f1f93ee272977b2f0058afd8f485cf4e0
The TUI renders inventory directly from `McpServerStatus`. Remove
`mcp_inventory_maps_from_statuses` and the unit test that only exercised
its conversion to inventory maps.
GitOrigin-RevId: dbae1b541a60d490c18b50e19fca420df791c1df
## Why
Manual compaction could interrupt a running turn before discovering that
the session settings prevent compaction. This can happen when a policy
refresh requires auto review for the current model.
## What changed
Validate the session settings before interrupting the active turn for
`/compact`. If validation fails during a turn, emit a warning and leave
the turn running. If the session is idle, report a bad request and set
the agent status to errored.
## Testing
Add a regression test that verifies the running turn completes after
a compaction warning and that retrying `/compact` while idle reports an
error.
GitOrigin-RevId: 7e841450461b78661c026a348a610aefa24d8a77
## Why
Read-only Bazel runfiles can leave copied patch fixtures unwritable, and
restricted Linux environments can deny the mount setup Bubblewrap needs.
Test environments can also lack Python or use paths long enough to
produce identical truncated worktree headings.
## What changed
- Write fresh, writable copies of patch scenario inputs.
- Treat Bubblewrap's mount permission error as sandbox unavailability in
the CLI and Linux sandbox tests.
- Use `printf` and `tr` to generate output for code mode truncation tests.
- Normalize one worktree heading at a time in the overview snapshot.
GitOrigin-RevId: 88590c9c08a739ecdd4ed49bd41734b02ece3f66
Delete the agent message grouping helpers and their sole test, which
checked that a context compaction marker did not count as an agent
message group.
GitOrigin-RevId: e694196474529f101fff5893f0fcf04161024595
Remove the app server's test-only rollout summary reader and cover
subagent nicknames and roles through the conversions from `StoredThread`
to a thread and a summary. Keep the summary assertions for millisecond
timestamp precision.
GitOrigin-RevId: f7481fd3c2d4d332ee094a62ec7cad8997903cdb
## Why
Going offline can change the slash command menu while a user is choosing a
command. With `/ex` typed and `/export` selected, a disconnect could move the
highlight to `/exit` and cause Enter to quit Codex.
## What changed
- Keep the same command highlighted when it remains in the menu. If it
disappears, clear the selection and prevent submission from falling back to
the draft. Restore the cursor, selection, and popup dismissal on reconnect.
- Honor configured submit chords in restricted slash command menus and prevent
Tab from queuing the draft there.
- When users try to report an issue offline, scroll to the latest transcript
entry to show the thread ID and prompt them to reconnect and retry.
## Testing
Add regression coverage for the `/export` to `/exit` case, popup state after
reconnect, offline Tab and submit chords, Vim command submission, and thread ID
visibility while scrolled back.
GitOrigin-RevId: 8143534f9d40e77a389d80d1dff3db993e194a23
## Why
Interrupting `exec_command` after launch but before terminal registration
can leave the process running. The network denial monitor holds a strong
reference that prevents startup cleanup from dropping the process.
## What changed
Give the network denial monitor a weak reference so startup cleanup can
terminate the process on interruption. The monitor can still terminate a
registered process when a deferred network approval is denied.
## Testing
Add a regression test that interrupts startup while plugin attribution
is waiting on the exec server and checks that the server receives
`process/terminate` for the launched process.
GitOrigin-RevId: 54eb237028f9057d8520098b640782fe85c58331
## What changed
Delete the app-server unit test that reads a rollout containing only
session metadata and expects an empty preview when there is no user
message.
GitOrigin-RevId: fd033dec4e938b0352620ca76c448ae9e650493f
Other WebSocket handshake tests already verify that `OpenAI-Beta`
includes `responses_websockets=2026-02-06`. Drop the standalone test
that checks the same header.
GitOrigin-RevId: 844173591c7f1f2f7026fdc1f5414d7a41fcdc65
Delete `summary_from_thread_metadata` and the unit test that checks its
second-precision timestamp formatting.
GitOrigin-RevId: 917c0d28bb486c69baba8142ac84cc9057c6d5ee
## Why
The code-mode host only exports traces, and Windows sandbox setup only
exports metrics. Selecting the required exporter and HTTP client at compile
time lets the linker drop unused exporter and custom client code.
## What changed
Use `BlockingHttpService` for OTLP/HTTP JSON traces in the code-mode host
and Statsig metrics during Windows sandbox setup. These providers use the
OpenTelemetry SDK's default HTTP client. Traces use the dedicated batch span
processor even inside a Tokio runtime.
Move `codex_home` from `OtelSettings` to `OtelHeadersHelper`, where it
supplies the working directory for user-configured header commands.
## Testing
Exercise the blocking providers in HTTP loopback tests for trace export
inside a current-thread Tokio runtime and cumulative metrics temporality.
GitOrigin-RevId: 21bacbdb18b603f5f536532812ce7643e4eb36d6
The `mcp_2026_message_limits` suite already verifies that legacy MCP
over HTTP accepts a JSON `tools/list` response larger than 8 MiB. Drop
the duplicate test from `mcp_2026_discovery`.
GitOrigin-RevId: 9d6b0684558dd2749a32c5052388ff15758a9755
## Why
`/diff` runs Git through standalone app-server commands, so it can pick up
the server's default permissions even when the active session uses a
different profile.
## What changed
- Use the session's named profile for all Git commands when the local daemon
can resolve it for the session's single workspace root. Use server defaults
when the profile depends on session-only settings or the workspace cannot
be represented by the command's working directory.
- Disable Git transports and lazy fetching for profiled diff commands.
Surface repository discovery errors under the selected profile.
- Display asynchronous diff results only when both the thread and working
directory still match.
## Testing
Cover profile fallback after reattaching to a live thread, missing blobs
without lazy fetching, and stale results from another thread or directory.
GitOrigin-RevId: be8259d8d7af536c2d542d2edce2c601ed4482d0