## Why
A worker can send a message and ask to stop in the same response. It
needs to see any send failure before going idle so it can respond to
the error.
## What changed
When a V3 worker targets itself with `interrupt_agent`, finish the
current tool batch and skip the automatic model follow-up if no
`send_message` call in that batch failed. Pending input can still
trigger another model request. Scope the stop to the sampling attempt
so it cannot carry over to a retry.
## Testing
Extend the mailbox integration test to cover a truncated response, a
send failure alongside a self-stop, and a subsequent self-stop that
runs the `SubagentStop` hook and frees the worker slot.
GitOrigin-RevId: 62e377026d32ffc59d1ea5b88030ce9148d414b4
## Why
A remote preview can exceed the WebSocket client's 128 MiB message limit
once the file is base64-encoded and wrapped in a JSON-RPC response.
## What changed
Check the file size with `fs/getMetadata` before calling `fs/readFile` for
remote previews. Allow for base64 expansion and reserve room for the
JSON-RPC envelope. If the reported size exceeds that budget, show a
preview error with the file's size.
Continue with the read if the server lacks `fs/getMetadata` or omits
`sizeBytes`. Apply the sidebar's existing path error handling to metadata
failures as well as read failures.
## Testing
Extend the remote preview test to cover an image at the size limit,
oversized image and text files, and both metadata compatibility fallbacks.
GitOrigin-RevId: a284b3b76d9c56fe7e80445d880ccc17d575681c
## Why
A completed write to the PTY master can reach the slave in fragments.
The startup test could run its zero-time poll or input discard before
the full sequence arrived.
## What changed
Use `FIONREAD` to wait until the full paste boundary and the subsequent
action input are each queued on the PTY slave. The wait leaves the bytes
unread and reports how many arrived if it times out.
GitOrigin-RevId: 077715814c4e11e6dfd42e63238222b0204aff4d
## Why
The exec server can wait up to 20 ms for sandbox denial output even
when all output streams have already closed. If the last stream closes
during that wait, the close alone does not wake the exit watcher.
## What changed
Skip the wait when all streams are closed and wake the exit watcher
when the last stream closes. Register for notifications under the
process lock so the exit watcher can observe stream closure and
`process/read` can observe the exit as soon as it is published.
## Testing
Add paused-clock regression tests for streams closing before exit,
the final stream closing during the wait, and denial output arriving
after the first stream closes.
GitOrigin-RevId: 22715a0fbe4e582d82abcba8eab4802c42353f69
## Why
The `/status` palette can appear during startup, before the TUI attaches
to a thread. Waiting for the palette alone can let the test suspend the
TUI too early.
## What changed
Use the bundled model catalog to avoid model fetch delays during test
startup. Configure the status line to show `thread-id` and `run-state`,
then wait for ` · Ready` before opening the `/status` palette and
suspending the TUI.
GitOrigin-RevId: adfe1163082dca64c76791f38cee29791ea774b5
## Why
With only one worker slot, starting a replacement can fail while the
interrupted worker is still cleaning up its turn.
## What changed
Add `CodexThread::stop_worker` for V3 workers. Enable interruption at
sampled item boundaries for V3 and make the stop call wait until the
interrupted turn releases its execution slot. The stopped thread can
still accept later messages.
## Testing
Add an integration test that holds a worker during sampling and abort
cleanup, checks that the stop call remains pending at both points, and
starts a replacement worker in the only worker slot after stop returns.
GitOrigin-RevId: da78de02d8c32a0f6e62b0487b49cf4908c01de5
## Why
A JPEG can exceed the sidebar's 32 MiB decode budget even when its
thumbnail would fit comfortably.
## What changed
When a full JPEG decode hits the allocation limit, try building a
preview from JPEG block averages within the same budget. The fallback
supports sequential and progressive JPEGs, applies EXIF orientation,
and preserves the oriented source dimensions in the sidebar label.
## Testing
Add tests for a 6544 × 1721 sequential JPEG that produces a 768 × 202
preview and for a progressive fixture that exercises scan refinement,
restart markers, EXIF rotation, and allocation limits.
GitOrigin-RevId: 232b37d8c239fbaa602930d9032c9a784bd030e2
## Why
Startup can send a `thread/list` request while the loading screen is still
visible. Reading the terminal buffer at that point can make the saved
grouping test fail before the Command Center header has rendered.
## What changed
Capture completed terminal frames through a test-only channel. Have
`agents_overview_startup_restores_saved_grouping` wait for the grouping
header and verify that it shows `Group: Status`, the saved preference.
GitOrigin-RevId: e4479039e0663483016637be0fe5bfff62f27044
## What changed
Track retained command sessions on every turn and mark
`command_sessions_world_state` as a removed compatibility flag. When
`write_stdin` is unavailable, keep reporting retained sessions and indicate
that they cannot be polled.
Omit the command session section when there are no sessions and no prior
section. Still emit an empty update when needed to clear stale handles.
## Testing
Update the Code Mode scenario to exercise retained command session tracking
without enabling the flag. Its snapshot omits the empty section before any
commands are retained.
GitOrigin-RevId: fd953750b06f0098ae6382ce3d3115a1263fd305
## Why
When `TMPDIR` is relative, `environment/info` resolves it against the
executor's working directory. The filesystem helper starts at the
filesystem root, so its `:tmpdir` rules could apply to a different directory.
## What changed
Use the executor's resolved temporary directory when binding `:tmpdir`
rules. Reject requests whose supplied temporary directories no longer
match the executor, and preserve the helper's original `TMPDIR` for
scratch files.
## Testing
Add a Linux integration test covering `:tmpdir` read grants and denials,
rejection of stale temporary directory information after the executor's
working directory moves, and a write without a `:tmpdir` rule.
GitOrigin-RevId: 6772c17251500dae3f6b0a2b17ee95955289e89b
## Why
The desktop client declines all open command approval prompts before
sending Stop. If the first decline is still being recorded in history,
a second queued decline can keep Stop from reaching the active turn.
## What changed
Queue consecutive declines for the same active turn and record them in
submission order. If Stop follows, interrupt the turn while the declines
are still being recorded, then finish recording them before publishing
the turn-aborted event.
## Testing
Extend the interruption regression test to cover two declined prompts
followed by Stop. It checks that the running sibling command stops while
history is blocked, both commands are recorded as declined before the
turn-aborted event, and completed sibling output is preserved.
GitOrigin-RevId: 00ac946378cc5fcf6c77e4a657aaa64508d60421
## Why
A sandboxed client needs to authenticate to an allowed HTTPS endpoint
without receiving the upstream JWT.
## What changed
Let an HTTPS proxy hook exchange a guest bearer alias for a JWT scoped to
the requesting environment and exact resource path. Recheck the hook
policy and grant after establishing upstream TLS, then attach the JWT to
the outgoing request.
## Testing
Add tests for rejecting ambiguous rules and unsafe paths, preserving
ordinary header stripping outside the bound path, and rejecting an alias
after its grant is dropped.
GitOrigin-RevId: 41837b45abcbe97b4dd73c65964d59c661879b46
## Why
Code Mode embeds TypeScript declarations in tool descriptions, so scripts
that want to inspect a tool's argument and return types have to extract
the declaration from the description.
## What changed
Enable `features.code_mode_all_tools_schema` to expose callable names,
descriptions, and TypeScript signatures as separate fields in `ALL_TOOLS`.
Update the `exec` guidance to match the selected format, including when
resuming a session. The flag is off by default.
Carry signatures over gRPC and stdio. Reject execution requests with
signatures when the host does not advertise support for them.
## Testing
Add coverage for both catalog formats, `exec` guidance on resume, and
signature preservation over gRPC and stdio.
GitOrigin-RevId: dedaeec4a2563c23d432c324187ef20f6a0e5ea3
## Why
The completed turn profile describes the whole turn. A host measuring latency
to an intermediate event needs the elapsed time and critical path at that event.
## What changed
Expose `turn_milestones` through `codex-core-api` and bind host-provided watches
when a regular turn starts. Add helpers to match published assistant text to
the sampled response and capture a one-shot observation with its source,
elapsed time, and critical path at the cutoff.
## Testing
Add tests that verify a cutoff during a second sampling round includes earlier
sampling and joined tool work, stale or cancelled candidates leave the watch
available, and elapsed time is recorded even when critical-path capture is
disabled.
GitOrigin-RevId: 507b7aaf8819b5cedf608ea66807c632bcb59c82
## Why
A Cloud session can have more history than the TUI scans on reconnect.
Requiring the full transcript prevents recovery even when the recent
history is enough to verify where the session left off.
## What changed
Allow recovery from a bounded history window in owned transcript mode
when it confirms the required turns and updates. Preserve completed
local history outside that window and keep older history pageable
without rendering prompts or replies twice.
Bound turn metadata lookups, including across turns without items.
Sample partial history again before restoring queued question answers
so a response from another client has another chance to appear.
## Testing
Extend reconnect tests to cover partial and overlapping history,
missing live updates, duplicate-free pagination, bounded metadata
lookups, and queued question answers.
GitOrigin-RevId: 2f12d64dc83a6e7e42ee3923baaea40ca7f663ab
## Why
The agents overview could miss cloud tasks when opened from a local
session, even when the cloud backend was already connected.
## What changed
- Refresh tasks from connected backends when opening the overview, and
have **Show more** fetch additional pages from each backend that has
more results.
- Preserve pagination progress across refreshes when it still applies,
and keep refresh errors visible until the affected backend recovers.
## Testing
Add coverage for discovering and paging through cloud tasks from a local
session, reopening the overview with pagination progress intact, and
refreshing after lifecycle events from a background backend. Add a
snapshot of the mixed local and cloud overview.
GitOrigin-RevId: 11d3108dbbd8c7033cd8fe43cfd045fb3eacccd4
## Why
The fallback counter identifies the original transport but gives no indication
of what triggered the switch to HTTP.
## What changed
Include the triggering Codex error kind and HTTP status, when available, in
the fallback warning and the `codex.transport.fallback_to_http` counter.
The counter uses `none` when the error has no HTTP status.
## Testing
Integration tests assert a single counter increment with the expected tags for
HTTP 426 during connection setup, HTTP 403 after retries, server overload, and
oversized WebSocket messages.
GitOrigin-RevId: 6f8b9d5049da1563e035fff62473c85693f0ad1b
## What changed
Add `codex-turn-milestones` to the Cargo and Bazel builds. A single turn
can take each registration, which can watch published assistant text
and direct Apps tool starts independently. Callers match text candidates
or resolved resource URIs and can claim each watch once.
The API lets callers match outside the timing lock, claim the watch while
capturing the timing snapshot, and deliver the owned observation after
releasing the lock. Observations include the thread, turn, and source
identities, elapsed time, and a caller-supplied critical-path snapshot.
## Testing
Unit tests cover single-turn ownership and verify that two concurrent
matching tool starts yield one successful claim while leaving the
assistant-text watch available.
GitOrigin-RevId: c42c032f320752a5963eb6b0ea2aa4a2c85a2342
## What changed
Add tracing spans for per-step plugin selection, host skill discovery,
and V2 capability-root snapshots. The snapshot span records whether
skill discovery was requested.
Trace cloud catalog refresh and discovery, and time the step's wait
for the catalog lock separately from preparation under the lock.
GitOrigin-RevId: 12eeb6333a8d2b335e92112dc7dccae6e7ed266d
## Why
SQLite workers can retain spans after acknowledging a write, so reading
the exporter immediately can miss spans. A paginated history reader can
also keep the fork span open after history preparation returns.
## What changed
Collect exported spans until the tracer is released, with a bounded
timeout. Cover failed spawn publication cleanup with both paginated and
in-memory history against the SQLite graph store. Check that fork
preparation starts before or at the graph upsert in the paginated case,
and that its span ends before or at the upsert's start in the in-memory
case.
GitOrigin-RevId: 2438ed49bc6c6d6c74c2695c9397a39dacc1dee2
## Why
OAuth discovery for newly installed skill dependencies needs an HTTP
client for each added server. Building the full runtime MCP configuration
does extra work because the installer already has those server configs.
## What changed
Use `current_mcp_runtime_context` to resolve the HTTP clients for the
added servers.
GitOrigin-RevId: 4970954dd5f1ed21a02dfe7f6c3a9f1df4fe7026
## Why
A nested drive prefix in a tar entry can redirect extraction outside
the plugin bundle staging directory on Windows.
## What changed
Reject tar entries with a colon in any path component on Windows.
## Testing
Add a Windows-only regression test for nested drive prefixes with
both forward slashes and backslashes.
GitOrigin-RevId: b19b3d0de16ffe73726981f823a8f4db6629ad22
## Why
The plugin detail popup passes the entire description as a single line,
so it loses the author's line breaks.
## What changed
Render each nonblank description line separately and keep dim styling and
terminal-width wrapping. Skip blank and whitespace-only lines so extra
spacing in the description cannot inflate the popup header.
## Testing
Add snapshots at 40 and 100 columns and regression tests for LF and CRLF
line endings, whitespace-only lines, literal Markdown, Unicode, and
description fallbacks. Cover navigation to the install action with a long
description in a short viewport and verify that the plugin picker stays
closed when plugins are disabled.
GitOrigin-RevId: e2f988d6e9b743a4fe318bed8e56563f495da605
## Why
On tall terminals, painting the transcript and measuring the preceding
screenful for pagination can exceed the fixed 64-entry cache. Hidden
reasoning entries in compact mode also take up cache slots, which can
force visible text to be laid out again on the next frame.
## What changed
Set the entry limit to twice the viewport height plus two, clamped to
64–512 entries, and trim the cache when the viewport shrinks. Keep the
existing byte budget and skip caching hidden reasoning in compact mode.
## Testing
Cover eviction after shrinking the viewport and verify that repeated
frames reuse visible layouts in an 88-row viewport with partial history
and 100 hidden reasoning entries.
GitOrigin-RevId: 194f39e3ad1eb72a223481c600e95463a5674fc4
## Why
Thread stores can do work before Core starts, but the ordinary creation
API has no way to pass that state back to the store when it creates the
thread.
## What changed
Pass optional, single-use `ThreadStoreCreatePreparation` from
`StartThreadOptions` to `ThreadStore::create_thread_with_preparation`
when creating a persisted thread, including a fork. Reject creation
preparation for ephemeral or resumed threads. Stores that do not implement
the prepared creation method return an unsupported-operation error.
## Testing
Add a regression test that supplies creation preparation to a prepared
fork and checks that it reaches the prepared creation method by asserting
the default unsupported-operation error.
GitOrigin-RevId: bc4d3e9e5d89dd7503aed75423bc9c9d42c7f7fc
## Why
The environment context already lists writable paths. An empty catalog
template previously fell back to the bundled writable-root sentence,
so a model catalog had no way to omit that repeated list.
## What changed
Treat an empty `writable_root` or `writable_roots` template as a request
to omit the corresponding sentence. Missing, null, invalid nonempty,
and oversized templates still use the bundled wording.
Suppressed roots leave the full path budget available for denied-read
paths and globs and never trigger an omitted-path warning on their own.
## Testing
Cover empty singular and plural templates and verify that suppressed
roots leave room for denied-read entries. A model-switch scenario checks
that Codex appends the updated permissions message once and preserves
the earlier conversation, filesystem permissions, and approval settings.
GitOrigin-RevId: 105819fb07ff829be8f111b3676656373aeb7892
## What changed
Add the `v3_ready` tag to the `codex.guardian_v3.shadow.pair` counter so
paired verdicts can be grouped by whether the v3 shadow verdict was
validated at or before the live v2 verdict.
## Testing
Extend the shadow comparison test to check the tag when v3 validates
before, at the same time as, and after v2.
GitOrigin-RevId: dffc58458d8eb6e7f6062ebc5eb8ccea36edb9f7
## Why
A guest needs a stable JWT alias even when the upstream bearer expires
or is invalidated. A disconnect during refresh can leave a rotating
credential already spent, so concurrent and subsequent requests need
to share the in-flight exchange.
## What changed
Add `JwtBearerGrant` behind `#[cfg(test)]`. It exposes a decodable alias
with explicitly selected scalar claims, reuses current bearers, and
refreshes on demand. A refreshed token must preserve the grant's
identity and disclosed claims.
Invalidation makes previously resolved bearers unusable. Revocation
also blocks future refreshes, and a failed or ambiguous refresh
permanently revokes the grant.
## Testing
Cover shared refreshes, request cancellation, invalidation and
revocation during refresh, timeouts, and claim consistency across
token rotation.
GitOrigin-RevId: 67cdf18e5aafa9dbc7290a2ef8ba62da84f826c5
## Why
Canceling a remote command during the early-exit grace period could
drop the process before handoff and run ordinary termination. That
bypasses the exec server's startup cleanup, which also disables
recovery for the abandoned session.
## What changed
Track whether each process has been handed off or abandoned. Dropping
a live process before handoff abandons startup once. Processes handed
off to the process store or to a one-shot caller retain normal
termination on drop.
## Testing
Add regression tests for cancellation during the early-exit grace
period, dropping an explicitly abandoned process, and normal cleanup
after registration or one-shot handoff.
GitOrigin-RevId: 2276ba15e50a2345da21e7841ab9015b572786ac
## Why
A cold resume can save a read-only profile with concrete read paths
derived from the current configuration. On the next cold resume, those
paths make the saved profile ineligible for direct reuse, so the thread
can fall back to a writable default.
## What changed
When restoring a saved read-only profile with restricted network access
that cannot be reused directly, rebuild its read grants from the current
configuration while keeping writes disabled and network access
restricted. Preserve read denials from both the saved profile and the
current configuration. For deny globs, use the larger scan depth when
both contributing policies are bounded and keep the scan unbounded if
either contributing policy is unbounded.
## Testing
Cover two consecutive cold resumes under a scoped writable default, and
test that restoration respects the current read allowlist, preserves
saved path and glob denials, merges glob scan depths, and drops the
configured network proxy.
GitOrigin-RevId: 04c91804e83d396402e1c8a985e4c3ff006f7e91
## Why
A launcher that already hosts an MCP server needs a way for Codex to
use it without starting a separate subprocess for the plugin.
## What changed
The stdio app server accepts socket bindings from its immediate parent
on Unix. A binding applies to a local plugin's stdio MCP server only
when the plugin ID, server name, and binding ID match a single entry.
Codex uses the stdio wire protocol over the socket and retains the
original declaration for policy checks.
Before sending MCP traffic, Codex requires a user-owned socket
directory with mode `0700` and verifies the listener's PID and UID.
## Testing
Add tests for binding scope and ambiguous matches, and for rejecting
unexpected listener PIDs, insecure directory permissions, symlinked
socket directories, and relative socket paths.
GitOrigin-RevId: 3d669dd59a0812b04727e4a1e458774007f054ba
## 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
A guest alias needs to expose only the claims selected by policy. Refresh
also needs a way to detect changes to claims the guest never sees.
## What changed
Add a test-only helper that reads expiry from a trusted source JWT and
builds fresh JWT-shaped aliases containing only selected scalar claims.
Each alias uses a random placeholder in the signature segment.
Hash all stable claims, including undisclosed ones, in deterministic JSON
order. Exclude `exp`, `nbf`, `iat`, and `jti` so changes to those fields
during refresh preserve the digest.
## Testing
Cover selective disclosure, alias freshness, and refresh comparisons.
Exercise rejection of malformed tokens, duplicate keys, invalid validity
fields, ambiguous numbers, and disallowed disclosures.
GitOrigin-RevId: 48bc19ac57601e28d5c2cb8881f0ac0f5563aca9
## Why
When a filename is already taken, saving a conversation with `/export` ends
with an error. Users have to restart the export to choose a different name.
## What changed
Show a conflict picker with options to choose another name, replace the
existing file, or cancel. Choosing another name pre-fills an editable
numbered filename, such as `notes-3.md` when `notes.md` and `notes-2.md`
already exist.
Offer replacement only for regular files. After confirmation, check the
directory and file identities and use an atomic rename to install the new
transcript.
## Testing
Cover the picker actions and numbered filename suggestion, verify that
replacement requires confirmation, and check that replacement rejects a
changed file or redirected directory.
GitOrigin-RevId: edcb2fad858bab15a7228c69bd27a8ffd18e8d05
## Why
A fresh session could send client-side execution settings as thread
overrides, even when the destination app server had its own defaults.
The TUI also needs the destination settings when preparing the first turn.
## What changed
Use the destination defaults to prepare the first turn for session
replacement, starts from the agents overview, and backend switches.
Keep explicit launch choices and managed new-thread defaults in the
start request, and let the server resolve its own model and reasoning
effort. When `config/read` is unavailable, omit implicit execution
overrides and avoid replacing server instructions with terminal
visualization text alone.
## Testing
Extend session replacement tests to check the start request and first
turn, including shadowed launch settings, server instructions with
terminal visualization enabled, and compatibility with older servers.
GitOrigin-RevId: d66d6d51495ee067282514a138f7e39abfd91f2f
## Why
A TUI resume request could override a thread's saved service tier with a
configured tier, a model default, or the local Fast default opt-out.
CLI forks could also send a tier before the destination's settings were
resolved.
## What changed
- Send a tier on resume or CLI fork only when the invocation supplies a
tier override. In-app forks carry the current session's tier.
- On fresh startup, use the invocation's tier choice first, then the
managed default, then the startup configuration. Keep an explicit
reset (`serviceTier: null`) distinct from omitting the field.
- Use the current local Fast default opt-out when resolving tiers for
new sessions and honor feature gating for launch overrides.
## Testing
Extend request assertions to cover tier omission on resume and CLI fork,
`flex` on in-app fork, and both explicit reset and disabled Fast mode on
fresh startup.
GitOrigin-RevId: d74f0f5e98506a0d5a6ead7106e1042691d41d41
## Why
Resuming with only a model or reasoning-effort override could also
send the other value from the TUI's resolved config, overriding saved
thread settings. Startup forks could similarly carry an unrelated
default into the destination.
## What changed
Build thread requests from explicit launch overrides. Resolve model
and reasoning effort independently from invocation options and the
selected profile, honoring config precedence. On resume, omit unset
fields so the app server can restore saved values. On startup fork,
let the destination config supply unset fields.
Carry accepted model migrations into resume requests and apply managed
new-thread model defaults on fresh starts without a launch model or
effort choice.
## Testing
Extend resume coverage for model-only and effort-only requests and for
a launch effort shadowed by higher-priority managed config.
GitOrigin-RevId: 5190d9b820a36c4da6a179fbdbca27591b1e8541
## 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
A Guardian V3 shadow review could keep running after its live review or
owning turn was interrupted, leaving the reviewer slot occupied.
## What changed
- Cancel the shadow when a pending live review is cancelled or dropped,
and let the live review finish its cleanup on cancellation.
- Cancel in-flight shadows when their owning turn is aborted, even if
the live verdict is already available, and prevent new shadows for
that turn. On normal turn completion, shadows can finish independently.
## Testing
Cover tool cancellation during live-review cleanup and turn interruption
both during review and after approval. The app-server test also checks
that a later turn can start a shadow and complete while it is still
running.
GitOrigin-RevId: 45df0575853d5f8ca7ef7282fcd0fa1f22fed6c5
## What changed
Move review preparation, retries, and cached approval handling into
`ReviewRequest::evaluate`. Return the outcome, report, analytics, and
evidence to the synchronous reviewer so it can finish reporting and
produce the approval decision.
GitOrigin-RevId: 3db2b9dadd6c6f15f0e66995f26705ca5c29e6a3
## 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
The mouse wheel scrolls the help view, but browsing a long task list
requires keyboard navigation. Once the list can scroll independently of
the selection, task shortcuts need to account for an offscreen target.
## What changed
Scroll the task list without moving the selection, and keep task titles
reachable in short viewports. When the selection is offscreen, show a
reveal hint and make the first task shortcut bring the selection back
into view. Keyboard navigation resumes following the selection.
Suppress repeats from the key that revealed the task so holding a
shortcut such as Stop cannot immediately act on it. On Windows, peek at
queued console input to account for press/release pairs emitted by
legacy ConPTY input.
## Testing
Cover wheel paging and short viewports with a rendering snapshot, test
that Stop requires a fresh press after revealing a hidden selection,
and verify that the Windows release probe leaves queued input intact.
GitOrigin-RevId: ebd7c0993978de3fc07245adf930f9fc63b306c1
## Why
Short terminals can cut off agent center shortcuts and require a resize to
read them. Status filter tabs and their overflow arrows are visible but
require keyboard navigation.
## What changed
- Scroll help with the configured list navigation keys or mouse wheel.
Show a scroll hint when help extends beyond the viewport.
- Click a status tab to filter tasks, or click an overflow arrow to
select the adjacent hidden tab. Overflow arrows also work in Analytics.
- Display `/` as the primary search shortcut and retain `F3` as a binding.
## Testing
Extend regression tests for help scrolling, task paging after resizing
in help, and mouse clicks on filter tabs and overflow arrows.
GitOrigin-RevId: b01b465626a681ca48a6e20547a24cf715a9a406
## 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
MCP refresh traces show how long an operation waits for the refresh gate, but they lack the timing and operation labels needed to identify which refresh held it.
## What changed
- Tag refresh wait and hold spans with a shared gate ID and the operation name so overlapping spans show which operation held the gate while another waited.
- Carry the scheduling trace context into background MCP prewarm and add a span for the Apps catalog refresh.
## Testing
- Add a test that checks the exported wait and hold spans share a gate ID and overlap while a second operation waits for the permit.
- Make the worktree TUI test wait for the `Ready` run state before submitting input, since a directory change can appear while the composer is still busy.
GitOrigin-RevId: be2b6d2a82e4a5b553fb3f335850865f04a181ee
## What changed
Record `codex.turn.pre_sampling.duration_ms` when a sampling phase starts. Use the `is_first_sampling_request` label to distinguish overhead before the first request from overhead accumulated since the preceding request. The timing excludes tool blocking and compaction.
## Testing
Extend turn timing tests to verify the first-request duration, per-request overhead across subsequent requests, and the exclusion of tool blocking and compaction.
GitOrigin-RevId: 068be5cb4d1345dc064fa8f1df2469dfa0f3071f