## Why
An empty extension registry falls back to legacy host skill discovery
even when `SkipHostSkillDiscovery` is enabled. The remote command
approval test only needs to check plugin attribution when script reads
are denied.
## What changed
Enable `SkipHostSkillDiscovery` and register the skills extension with
no providers in both variants of
`remote_command_approval_skips_attribution_for_a_read_denied_script`.
GitOrigin-RevId: 1abcf6a762ac359825fe1c4db97160b9bfde0f87
## Why
An unsupported UI tag or property invalidates the entire statusline
response, so providers need a fallback for clients whose rendering
capabilities are unknown.
## What changed
- Document the available UI elements with examples for wrapping rows,
spacing fields, preserving whitespace, and displaying status badges.
- Explain how to use `app.cli_version` to check support for features such
as `spacer` and `maxLines`, and return a plain string for the entire
footer when support is unknown or absent. Carry the `spacer` guidance
into the generated TypeScript reference.
- Clarify how to diagnose provider discovery failures with F2 and check
`tools/list` metadata when a provider is missing from the picker.
## Testing
Update the scenario snapshot that verifies an explicit statusline skill
mention loads the bundled guide.
GitOrigin-RevId: 9c6ea1d356146c2d666359732d6a065ed41d9fee
## Why
Synchronous Guardian reviews could receive screenshots from Code Mode calls,
but missed screenshots returned by direct calls to the same REPL connectors.
## What changed
Capture screenshots from accepted direct `node_repl` and `cua_repl` MCP
results when multimodal review evidence is enabled. Include them alongside
Code Mode evidence in call order, with separate retention budgets.
When the synchronous review prompt exceeds its fixed image budget, retry with
only the last image in prompt order and keep it if the prompt fits.
## Testing
Add coverage for screenshot delivery to synchronous permission reviews,
including text-only mode and image budget overflow. Verify that direct
screenshots preserve call order and do not consume the Code Mode retention
budget.
GitOrigin-RevId: e74ee6c5578225efb284c1ca38494377a1d0762e
## Why
A `PreToolUse` hook can change a tool's arguments while keeping its call
ID. An asynchronous risk score for that ID still describes the original
action, even if the score arrives after the rewrite.
## What changed
Require synchronous Guardian review when a hook changes the tool payload
and discard the original assessment. Preserve normal review behavior
when the hook returns an identical payload. Also require synchronous
review for MCP elicitations without an associated tool approval context.
## Testing
Add regression coverage for unchanged hook output, rewritten patches
whose original scores arrive before the rewrite or during review, and
MCP elicitations with missing approval context or rewritten inputs.
GitOrigin-RevId: 994519d61d52c69edcdec9517766a8e3051587d5
## Why
When a catalog entry groups multiple installations of a skill, a link to
a specific installation can load instructions from the primary
installation, such as the Cloud copy.
## What changed
Carry the matched installation through to the instruction read and
resource metadata. A path that uniquely identifies an enabled
installation takes precedence over name-only and ambiguous mentions of
the same skill, regardless of mention order. Default mentions still
use the primary installation, and distinct executor environments can
each be selected in the same turn.
## Testing
Extend the merged catalog test to cover a path shared by Cloud and
executor copies and a package link that selects the executor copy.
Update the installation recovery scenario to show that an explicit link
loads the selected environment's instructions into the initial request.
GitOrigin-RevId: f4495c5442b9f4c14d5cdcc4c717717e2119b088
## Why
A model can change between steps of the same turn. Persisted token usage
records need the model for each response to distinguish usage before and
after the switch.
## What changed
Add an optional `model` field to `TokenUsageRecord`. Record the model
selected for the sampling step on both completed and incomplete responses.
Attribute compaction usage to the model selected at the start of the turn.
Existing records without the field still deserialize.
## Testing
Extend coverage to check persisted model attribution and cumulative token
totals after a mid-turn switch, including when the response hits the output
token limit. Verify that compaction keeps the turn-start model attribution
and continues restored usage totals.
GitOrigin-RevId: 3615724c1cbe6ed46c9367d6c3c1a29ebaba73d8
## Why
Hosted children using a shared service tier already reject overrides
when a turn starts, but turn settings updates could still request a
different tier during an active turn.
## What changed
Apply the same rejection and error message to turn starts and active
turn settings updates for hosted children using a shared service tier.
## Testing
Extend the WebSocket regression test to verify that a mid-turn tier
override is rejected and the child still uses the root's updated tier
on its next step.
GitOrigin-RevId: 4fad6d02b56d81aba162f3e87b6dcaae2386d171
## What changed
Remove the `web.run` instructions to check local code first and limit
browsing to official OpenAI sites for OpenAI product questions, to rely
only on primary sources for technical questions, and to explicitly flag
inferences from sources.
Update the thread sampling and web search scenario snapshots to reflect
the revised tool description.
GitOrigin-RevId: d35dcaaeb69940af5d7f9df19aba337fd0ab6426
## Why
An injected `send_message` correction could reach a hosted worker before
the `followup_task` it refers to because turn-local input drains before
the mailbox. An interrupt during a history checkpoint could also drop
corrections from a batch that had already left the queue.
## What changed
Queue plain-text agent messages behind pending follow-up tasks and
deliver them in mailbox order, even across turn boundaries. Record
accepted follow-ups and corrections before waiting on their checkpoint,
and save deferred injections to session history on shutdown.
## Testing
Add regression coverage for native and hosted delivery order, hosted
corrections sent between turns, interruption during a checkpoint, and
correction persistence across shutdown and resume.
GitOrigin-RevId: 3acffd175d3bb2d7e1a9f704fe6c6d6ce38e798d
## Why
Recording a declined command can delay tool-result delivery. When
one-shot commands shared that pause for runtime limits, a sibling
command could keep running past its configured `timeout_ms`.
## What changed
Track command timeouts separately from tool-result delivery. A proposed
command holds result delivery through setup and resolution, while its
approval prompt pauses command timeouts only while a decision is
pending. A running one-shot command can then time out while its result
is still held, with its terminal ID remaining addressable until result
collection finishes.
## Testing
Cover the pause states before, during, and after the approval prompt.
Exercise both a sibling command that times out and one that exits
normally while a decline is being recorded, checking terminal access
and the exit status in the eventual tool result.
GitOrigin-RevId: d359bfc99fb9c23e6c61e94d75040cd6c1b09c49
## Why
A turn interrupt can arrive while a command is waiting for its executor
connection or while a newly launched shell is still being registered.
The command can then launch after the interrupt or keep running before
the caller has a session ID to interact with it.
## What changed
Check for cancellation before dispatching a resumable command, including
after remote connection recovery. If the shell has already started and
is still running, stop it when cancellation wins before registration and
return the usual `aborted by user` result. Preserve the result of commands
that already reported an exit.
Track any pending command begin and end events for interrupted startups
so session shutdown waits for them to be published.
## Testing
Add regression coverage for interrupts before dispatch and after launch
but before registration, including command history on shutdown. Cover
cancellation during remote executor recovery and cleanup of abandoned
remote starts.
GitOrigin-RevId: 624df736ca2cb077e879f52a194ee4d89afd225a
## What changed
In multi-agent V3, `send_message` starts a new turn in an idle
worker's existing conversation, including after eviction. The worker
receives the input as a `MESSAGE`. Sends to `/root` still follow
its wake policy.
Remove `followup_task` from the V3 tool set and select role instructions
that match the agent tree's version.
## Testing
Cover delivery to active workers at the concurrency limit, retrying
an idle worker once a slot opens, and resuming workers after eviction
or session restore.
GitOrigin-RevId: 3b0e55f150784896aa6e0dfa926bc490bdd2627d
Check that the approval request's turn is still current before sending
`Op::Interrupt` while the decline is waiting to be recorded.
GitOrigin-RevId: c1e23a77efc0d5550e9ffa280d72bb66da711ed8
## Why
Recording a declined command approval can delay a subsequent Stop request while other commands in the same turn are still running.
## What changed
If Stop is next in the submission queue, interrupt the active turn while the decline is still being recorded. Consume Stop only if it interrupts that turn, and leave other submissions in order.
## Testing
Extend the approval cancellation regression test to cover declining a command and then pressing Stop. The test checks that a running sibling command stops before the decline is recorded and that output from a completed sibling remains available in the next turn.
GitOrigin-RevId: 9f08cb35f96e497d95eaa0aefb039ca9729761e7
## Why
Enabling `multi_agent_v2` forced the V2 tool version before a fresh
thread could use the model selected for its first turn. The shared
runtime needs to support both V2 and V3 selections.
## What changed
- Let the first turn select V2 or V3 from the active model, with V2 as
the fallback when the shared runtime is enabled.
- Pass the selected version to fresh and forked subagents, including
through host-prepared child creation.
- Report both selections as `v2` in app-server model metadata because
they use the same runtime.
## Testing
Extend integration tests to cover model switches between V2 and V3
before the first turn and V3 inheritance in fresh, forked, and
host-prepared children.
GitOrigin-RevId: de1fd9836d8cb3c4dc19805507462f4f5cfe3959
## What changed
When native multi-agent v2 history is enabled, Guardian automatically
frames the pending call and its paired output as a distinct approval
request. Mark the separate `guardian_native_action_framing` flag as removed.
## Testing
Update the incremental review snapshot to capture the framed
`send_message` and its paired output. Update the root handoff test to
match setup handoffs at the approval boundary so historical calls
cannot mask the final command's separate denial.
GitOrigin-RevId: 5194a8cdf21e5d71f3a7942c0ce637f115316476
## Why
With native tools disabled, injected agent mail could be persisted without
waking a hosted root in durable sleep.
## What changed
Schedule a mailbox wake for sleeping hosted roots after injected plaintext
mail is durably recorded. Keep the interrupted turn active through
`TurnAborted` so mail arriving during the interruption can start a turn
only after the abort event is published.
## Testing
Add regression coverage for queue-only mail waking a hosted root with its
previous turn context and for mail injected during the sleep interruption
starting a turn after `TurnAborted`.
GitOrigin-RevId: 939db5ffca9af1273e4fb4c8d0dfb6bb7a95ea09
## Why
Local MCP HTTP header helpers run with a restricted environment. A helper that needs a host setting such as `HTTPS_PROXY` needs a way to receive that variable while keeping the rest of the host environment restricted.
## What changed
- Add `http_headers_helper_env_vars` for local Streamable HTTP servers. A nonempty list requires the server URL and an absolute helper executable path in the same user or administrator configuration entry. Codex launches that executable directly, and Windows requires an `.exe` path. Helper entries without the list retain shell command syntax.
- Revoke inherited access when a higher-priority entry overrides the URL, helper, or variable list. An empty list explicitly clears an inherited grant.
- Show effective variable names in `codex mcp get` and the JSON output of `codex mcp list`, while keeping helper commands and variable values out of the output. Make `codex mcp add` and `codex mcp remove` edit only the named server so unrelated grants stay in their original configuration layer.
## Testing
Add coverage for grant validation and revocation, variable forwarding during OAuth startup and header refresh, CLI redaction, and preservation of administrator grants during unrelated CLI edits.
GitOrigin-RevId: d1ebdcf4dbd7946c0f3bfb982464a0024768d585
## Why
The routing test needs to verify that Guardian's decision controls whether
a request reaches its destination. Loopback addresses are covered by
`NO_PROXY`, so the probe must explicitly use the managed proxy.
## What changed
Send both probes through `HTTP_PROXY` to a local mock origin. Assert that
the approved command exits successfully and receives the origin's response,
and that the denied command reports Guardian's denial without sending a
second request to the origin. Collect output across the initial
`exec_command` response and subsequent polls so the test can check stdout
even when it arrives before the process exits.
GitOrigin-RevId: aa32a588e9ad9a049621242d8b8a567462237cca
## Why
Callers that only need canonical session metadata should be able to read it
without loading the full rollout history.
## What changed
Add `ThreadStore::read_session_meta`. The default implementation looks for
the session header in the latest model context and falls back to history if
the header is absent or model context reads are unsupported.
The local store reads only the selected rollout's header and skips SQLite
read repair, which can parse the full rollout. If archiving or unarchiving
moves the file before SQLite updates its path, the lookup can follow the
rollout to its new location while respecting `include_archived`.
## Testing
Cover paginated metadata reads, the history fallback for a saved child
thread, and metadata reads with missing or stale SQLite entries. Verify that
a valid header can still be read when the rest of the rollout contains invalid
bytes.
GitOrigin-RevId: 08790b2db80d35e67f5a101dc38d760987b2d710
## Why
The automatic test builder registers only the selected execution
environment. When that environment is remote, the Python MCP fixtures
need access to the local environment.
## What changed
Use `build_with_remote_and_local_env` for the guardian elicitation tests
and set each Python MCP fixture's `cwd` to the test process's current
directory.
Attach the in-memory metrics client through `with_thread_extension` so
the yielded Code Mode elicitation test can use the thread created by
the builder.
GitOrigin-RevId: edc65db60665970e1c98686ab01e0012b47f5c79
## Why
Remote command approvals could attribute a command to a plugin by reading
a script that the turn's filesystem permissions denied access to.
## What changed
Use the remote environment's sandbox policy and stored permission grants
when resolving script paths, checking file metadata, and reading scripts
for approval attribution. If the lookup is denied, the approval prompt
still appears without plugin attribution.
## Testing
Add a regression test that checks for an approval prompt without a plugin
ID or script path when either the environment policy or a stored turn
grant denies reads of an otherwise matching plugin script.
GitOrigin-RevId: 123fd72c14cd31121d271fa800f005d3fc41a366
## Why
Recording a declined command can block on history writes. If turn
cancellation waits for that write, sibling commands can keep running.
The same write can also delay recording results from commands that
already finished.
## What changed
Signal cancellation before recording the declined command and publish
the decline before `TurnAborted`. Start the task's shutdown grace period
after publication so it has time to record completed tool results.
## Testing
Add a regression test that blocks publication of the decline, verifies
that a running sibling stops while publication is blocked, and checks
that another sibling's completed output reaches the next model request.
GitOrigin-RevId: c0b2e40e711ffe5ee46b76b110410518d2191041
## Why
Interrupting an approved one-shot command while remote plugin attribution
is pending can stall session shutdown and leave the command without a
terminal record. An open elicitation can also delay output collection.
## What changed
On interruption, skip the pending remote attribution lookup and optional
plugin metrics read, and bypass the elicitation pause during output
collection. Keep session history open until the command's terminal event
is published, including when the exit watcher publishes it.
## Testing
Extend the remote startup interruption test to cover resumable commands
and approved one-shots. Verify process termination and session shutdown
with the attribution request still pending, and check that the approved
one-shot records exactly one failed completion with an unrelated
elicitation still open.
GitOrigin-RevId: e9b78290544d634797876119006540150a7672b1
## Why
The app server could show a command awaiting approval before core had
recorded its start. Interrupting the turn or abandoning launch after
approval could leave the live command item and saved history out of sync.
## What changed
Have core publish the command item before prompting for approval and
retain it across approval and sandbox retries until execution takes over.
Complete abandoned items as declined when interrupted while awaiting
approval, or as failed when interrupted after approval but before launch.
Wait for pending approval item writes during shutdown.
## Testing
Extend the app-server interrupt test to restart the server and verify
that the interrupted turn contains exactly one declined command item with
the original approval item ID.
GitOrigin-RevId: c9f027fc7096d091dc8cf1936c88aa69d3eed8c1
## Why
A launch failure can still be publishing its command events after the turn
is interrupted. If the session shuts down during publication, the failed
command can be lost from persisted thread history.
## What changed
Track in-flight launch failure publications and wait for them to finish
before running session-end hooks and emitting the thread-stop event.
Once shutdown closes the tracker, skip new launch failure publications.
## Testing
Add a regression test that pauses publication for a command with a missing
working directory, interrupts the turn, and requests shutdown. It checks
that shutdown waits and that persisted history records the command as failed
in the interrupted turn.
GitOrigin-RevId: 1fb33d1fd3c11939c0013f5feb4edb737702b0ad
The hosted Guardian scenarios are already excluded on Windows, leaving
their reload and stall helpers unused in Windows test builds.
Apply the same platform gate to the `Reloaded` and `Stalled` read modes
and the stall notification. Make the root snapshot mutable only in
the reload branch.
GitOrigin-RevId: 1f517e56ba6ce436b96c6e44c4dc4731b94e1e97
## Why
Hosted workers keep the host's session source, so hook dispatch
can mistake them for root sessions and run `SessionStart` and
`Stop` on worker turns.
## What changed
Recognize host-managed workers by their inherited session ID and
dispatch `SubagentStart` and `SubagentStop` for them. Resolve the
parent transcript for `SubagentStop` using the immediate parent
thread ID when available.
## Testing
Add a regression test that verifies a hosted worker runs only the
subagent lifecycle hooks, receives start-hook context, and reports
its own transcript and final message in the stop hook.
GitOrigin-RevId: 272d29d275120a1b020b1a00a0db2e00402ebe06
## Why
The filesystem context sent to the model repeats the same generated
read-only metadata entries under each writable path.
## What changed
Add the opt-in `features.compact_filesystem_context` flag. For matching
workspace-write profiles with multiple writable paths, list workspace
roots and other writable paths separately, then state the shared
read-only rule for `.git`, `.agents`, `.codex`, and `.aws` once.
Keep temporary-directory write grants explicit and use the full listing
for profiles with rules the summary cannot represent.
## Testing
Cover compact rendering and fallback for explicit metadata reads or
Windows paths with different casing. Snapshot shared and per-environment
context across two turns to verify that unchanged permissions carry
forward.
GitOrigin-RevId: 4e9f36a054a96f06c9e5d0b3882148b132233e4f
## Why
Guardian identified manual approvals by the opening text of a developer
message. Hook output could use the same opening text, and unrelated
content in the same message could be included with an approval.
## What changed
Check each developer text part before joining it into the transcript.
Require the manual approval prefix, the `guardian.approved_action` content
kind, and provenance from the harness outside of hooks.
## Testing
Transcript tests cover missing provenance and same-prefix text with hook
provenance or a different content kind. The context budget test checks
that the full manual approval stays ahead of a later user restriction
and that adjacent hook text is excluded.
GitOrigin-RevId: 64fafc3a429ce1e21eb5233c8223228947d1c20b
## Why
Extension tools borrow host capabilities for each call. Expressing that
borrow in the executor's type argument requires higher-ranked lifetime
bounds wherever extension executors are stored or returned.
## What changed
Define the per-call input as `ToolInput::Call<'a>` so `ToolExecutor`
can use the same lifetime for the input, the executor borrow, and the
returned future while remaining usable as a trait object. Default to
borrowed `ToolCall<'a>` inputs so extension contributors can return
`Arc<dyn ToolExecutor>`. Core handlers continue to take owned
`ToolInvocation` inputs.
GitOrigin-RevId: efbf56c1e758c59a18b192d210c2ab1b368793e2
## Why
`thread/guardianReview` used the transcript reviewer even when the app
server was configured to use Guardian V3 for live approvals. Recorded
calls can now be assessed with the same reviewer as live calls.
## What changed
When Guardian V3 is enabled at app-server startup, `thread/guardianReview`
waits for pending injected history to reach the Guardian board, then
returns a fresh assessment without executing the tool call or caching an
approval. When V3 is disabled at startup, the endpoint uses the
transcript reviewer.
V3 requires a fresh, idle, non-ephemeral root thread with paginated
history and rejects `rootEvidence`. Recorded browser calls receive the
same browser policy as live calls.
## Testing
Add coverage for sequential history batches without tool execution,
unsupported thread types, routing failures and timeouts, and preservation
of the initial denial when reconsideration stalls.
GitOrigin-RevId: a8ad15cd2bb2d6d5d105c672f64c6cc71dfc6ff8
Extend the hosted turn admission test to suspend the root turn both
before roster preparation and during the roster read. In the new case,
hold turn startup until suspension detaches the active task so the test
exercises the initial input handoff.
Both cases assert that the admitted prompt appears exactly once in
recoverable thread history and that no model request is sent.
GitOrigin-RevId: 51a3ca65a55fb3db4547e770c3bf49a3eee59521
## Why
A plugin can be installed in several executor environments. Disabling one
installation should leave the others available, while a thread-wide exclusion
needs to apply across environments.
## What changed
- In executor capability discovery V2, allow an executor to list its own
plugin installations subject to marketplace policy. A named entry such as
`"notes@market": {}` inherits the executor default when the thread has
no enablement preference. A default alone does not list any plugins.
- Apply thread enablement preferences across installations and scope executor
opt-outs to the affected installation. When MCP server names are shared,
use the first enabled installation.
- Preserve connector mappings for explicit `disabledPluginIds` exclusions
so Apps tool search can honor them even when the executor has already
disabled the installation.
## Testing
Add regression coverage for marketplace filtering, thread and executor
precedence, installation-scoped exclusions, and Apps connector suppression
after an executor opt-out.
GitOrigin-RevId: d3465a38f3ebf5042d5c45dabfdb32f8ada81727
## Why
PowerShell's `-Command` can report a native command's exit code `2` as
`1`, so a `PreToolUse` hook can fail to block a tool call.
## What changed
Use `$?` to preserve successful hook results and forward
`$LASTEXITCODE` on failure when available. Pass scripts with named
blocks through as written because PowerShell forbids trailing
top-level statements after those blocks.
## Testing
Add Windows regression coverage for a native command and a PowerShell
`end` block that each exit with code `2`. Both cases check that
`PreToolUse` denies `apply_patch` before approval, reports the denial
reason, and leaves the target file uncreated.
GitOrigin-RevId: 9668b1382bb56f168794dd8d4d2fecac13d2f649
## Why
Enabling `statsig_gates` can only load evaluations if the process starts
the Statsig runtime. Several Codex entry points never started it.
## What changed
Start Statsig in standalone and embedded app servers, the TUI when it
connects to a separate app server, eligible `codex sandbox` launches, and
local and remote exec servers. This also covers `codex exec` through its
embedded app server. Use the serving or local account where applicable
and installation identity for remote execution. Share the runtime with
the embedded TUI and flush it on normal shutdown.
## Testing
Add a CLI integration test that checks which evaluation endpoint each
launch mode requests, including signed-in and signed-out sandbox launches.
Supply a bundled fixture key in Bazel and nextest CI builds so the test runs.
GitOrigin-RevId: 64df9933c1a9783a86be8712fa012b495f34b0f8
## Why
A hosted child thread can inherit the root session ID and use a custom
session source. The existing subagent source check can miss that child,
allowing its shutdown to fire `SessionEnd` while the root is still active.
## What changed
Before preparing `SessionEnd` hooks, skip threads whose ID does not match
the session ID.
## Testing
Extend the shutdown test to close a hosted child with an inherited
session ID before closing the root and verify that exactly one
`SessionEnd` hook invocation is logged for the session.
GitOrigin-RevId: 4c80a17724cab57003b33080482d00f3cc2afea4
## Why
A Guardian policy refresh can switch a running thread from Auto Review
to user approvals. Without a config change notification, Guardian's
shadow reviewers can stay active after that switch.
## What changed
Notify config contributors with the previous and updated effective
configs when a policy refresh changes the approvals reviewer. Send the
notification after releasing the session locks, even if the refreshed
policy blocks the current model.
## Testing
Extend the Guardian shadow test to refresh policy on a root thread and
its child. Verify that both receive the reviewer change, that switching
to user approvals cancels their shadow reviewers, and that allowing
Auto Review again restores the requested reviewer.
GitOrigin-RevId: fd61acf7fb161be341a63a2e867582e6c308d0dc
## What changed
Remove the background ranking of skill candidates and the metrics that
compared those rankings with skills actually used. Drop the experiment's
per-thread state and metrics wiring.
Continue accepting `skill_search` in existing feature configurations as
an ignored compatibility key.
## Testing
Extend the feature configuration test to cover both `true` and `false`
values for `skill_search`.
GitOrigin-RevId: 9492533bdeea58d4976bc9fbcffb6b82036b7894
## Why
The protocol and feature configuration crates depend on the network proxy
crate for data types. Give them a smaller dependency that contains the
shared definitions.
## What changed
Move environment network policies, domain and Unix socket permissions,
policy decisions and their sources, and credential provider definitions
into `codex-network-policy-types`. Use the new crate directly from
`codex-protocol` and `codex-features`.
Re-export the moved types from `codex-network-proxy` and keep environment
policy conversion and application, along with credential provider
validation, in the proxy crate.
GitOrigin-RevId: 8af684da746830bce45ac00135aed8052dba3824
## Why
Encrypted replies from subagents can provide evidence for a Guardian
decision. Reviewer compaction can drop those replies when it filters
descendant progress and completion messages.
## What changed
When native multi-agent history is enabled and the reviewer uses the
OpenAI provider, send encrypted replies from descendants to ancestors
as standalone `guardian.subagent_reply` tool outputs in Guardian review
and async scoring requests. Include the sender and recipient, preserve
the encrypted payload, and keep native message IDs in stored history
for deduplication.
Retain qualifying replies across reviewer compaction within the existing
per-message and shared token budgets.
## Testing
Extend regression coverage for incremental reviews, compaction recovery
with and without native agent review, and reply ID stability across
retained WebSocket scoring requests.
GitOrigin-RevId: bb46149426b1a60a6ed5cac6765283ec77682d23
## Why
MCP hooks could only use the default spill threshold. Hooks that return
larger context, such as a session-start memory hook, need a way to keep
more of that context inline.
## What changed
Allow `mcp_tool` hooks to set `additionalContextLimit` for events that
can emit `additionalContext`. Plaintext context spills to disk above
approximately 2,500 tokens by default. MCP hooks can set a threshold
from 1 to 10,000 tokens. A value of 0 or above 10,000 warns and uses
10,000. Hook trust hashes use the effective threshold.
Expose the setting in app-server configuration requirements and hook
list responses.
## Testing
Cover limit normalization, warnings, trust hashes, and app-server
reporting. Verify that a bundled memory hook with a higher threshold
injects its full context at startup and after compaction.
GitOrigin-RevId: 318704ac1532267b3eb2f138f130b6799863a5c0
## Why
An ancestor's `.git` marker can change the repository root discovered by
the tests, which affects the paths in the emitted turn diffs. Manual
cleanup at the end of the shared-path test can also be skipped when the
test fails early.
## What changed
- Add `.git` markers to keep repository discovery within the fixtures.
- Reuse the executor's working-directory path on both filesystems and
give the local directory a `TempDir` owner so both fixtures are cleaned
up when the test exits early.
GitOrigin-RevId: 2534688ae1ed4aace16d47f6f58e461e546dc8ee
## What changed
Increase the truncation threshold from 1,000 to 10,000 tokens so more
of each additional context value reaches the model. Add a 40 KiB bucket
boundary to the `codex.additional_context.value_bytes` histogram.
## Testing
Update the integration tests to check middle truncation and size metrics
at the new limit, verify that an application context value at the limit
survives compaction, and check that representative truncated values
fit in the new histogram bucket.
GitOrigin-RevId: 260dae5c01816e2383c10d81ddb90b8e937fd8c0
## Why
The review's `turn_id` alone can't identify the root turn of the action
being reviewed. For example, a background terminal can request network
access during a later turn.
## What changed
Add an optional `root_turn_id` to `codex_guardian_review` events. When
a verified execution tag ties a network request to a registered tool
call, use the root turn ID captured when the call started. Leave the
field unset when the reviewed action's root turn is unknown.
## Testing
Extend the MCP approval test to check the reported root turn ID. Cover
untagged network requests and verify that a cross-turn network review
reports the active turn's `turn_id` alongside the issuing turn's
`root_turn_id`.
GitOrigin-RevId: f0ae40ec4fc441891b4d843912f823a2385fa36f
## Why
Codex stored voice selections in `realtime.voice` and supplied voice overrides when starting realtime sessions. Reading and saving the ChatGPT account preference lets Codex use the same voice selection as ChatGPT.
## What changed
- Add experimental `account/voiceSettings/read` and `account/voiceSettings/write` methods. The terminal voice picker shows the selected voice and available display names, then saves the chosen voice ID to the connected app server's ChatGPT account, including when the server is remote.
- Require ChatGPT sign-in for terminal voice chat and create its WebRTC calls through the ChatGPT backend.
- Remove voice overrides from realtime session startup. Existing `realtime.voice` entries still parse but are ignored.
## Testing
Cover voice picker loading and saving, remote catalog failures, the ChatGPT sign-in requirement for local calls, and omission of voice overrides from realtime call payloads.
GitOrigin-RevId: 9e6f30b8020c47701d3c1604075063924f191685
## Why
Some test fixtures depend on `python3` being on the host's `PATH` or
on reading Rust's process arguments from a constructor. Bazel workers
need a declared Python runtime, and musl does not provide those
arguments to constructors.
## What changed
- Put Bazel's Python 3.12 runtime on `PATH` for Linux test suites that
invoke `python3`, including their Wine launchers.
- Use standalone helper binaries for exec-server and sandbox fixtures on
musl, and read `/proc/self/cmdline` for the MCP hook fixture.
- Add launcher options for test execution tags and for routing selected
Linux cases to a local companion target that shares the test binary.
- Adjust test fixtures for platform differences in file creation
timestamps and shell script execution. Keep cloud-config error tests
pointed at their mock server after startup falls back to defaults.
## Testing
Exercise marketplace upgrade negotiation at Git 2.20 and check whether
the installed Git supports limiting the refs advertised by the clone.
GitOrigin-RevId: 3a83cde954d52ca29d346d67488c9a25c0790614
## Why
The baseline for comparing additional context submissions lived in memory,
so resuming a conversation could append context that was already in its
history.
## What changed
Persist the rendered fingerprints and history item IDs for active context
entries in world state. Reuse unchanged entries across turns and resumes,
and use their IDs to restore active items during compaction.
A client submission replaces the active set. Tool-provided context updates
only its own keys and is recorded after tool results, before the next
prompt.
## Testing
Extend scenario coverage to check deduplication after resume for both
message and tool-output rendering. Verify that edits in the truncated
portion of application context do not produce duplicate developer messages.
GitOrigin-RevId: 12a65a70d871f8dcefa082825c0ec4e9446efb56
## Why
Dynamic tool clients could return JSON as text in `contentItems`, so Code Mode scripts had to parse that text to access fields in the result.
## What changed
App server dynamic tool requests advertise `supportedResultFormat: "structuredContent"`. Clients can reply with `structuredContent` and a `success` flag, report a failure with `errorMessage` and `success: false`, or continue using `contentItems`.
Code Mode exposes structured replies as MCP-style tool results, with the original JSON under `structuredContent` and failure status in `isError`. Completed tool items include a text representation of the reply. Matching post-tool-use hooks can receive the structured result for successful calls.
## Testing
Add protocol tests for the wire formats and rejection of ambiguous replies, plus an app server integration test that exercises structured results, content items, and errors through Code Mode.
GitOrigin-RevId: d63152633b43bd5bd236f6e0dcb41ee7e98e7947