Commit Graph
8319 Commits
Author SHA1 Message Date
iceweasel-oai 3ba0f71164 ## New Features
- Export complete TUI conversations to Markdown with `/export`, either to the clipboard or a new file. (#37358)
- Fork sessions with `codex exec fork`, and archive or restore sessions from the TUI resume picker. (#37367, #37369, #37371)
- Draft prompts while the TUI initializes, with resume and fork progress shown during startup. (#38642, #38788)
- View estimated thread credits or cost in `/status`, status lines, and terminal titles for eligible workspaces. (#38281, #38282)
- Use Amazon Bedrock Runtime as a built-in provider with AWS profile, region, and GPT-5.6 routing support. (#38470)
- Hooks can now run commands asynchronously and invoke MCP tools. (#37533, #38705)

## Bug Fixes

- Model switches and settings updates no longer leave stale instructions behind or change an active turn midstream. (#37260, #38785)
- Resumed sessions now restore their persisted working directory and approval policy, with more accurate transcript previews. (#37198, #37368, #38605)
- Turns reconnect through temporary provider outages, and MCP servers recover after OAuth reauthentication without restarting Codex. (#37337, #37485, #38418)
- TUI startup no longer lets buffered terminal input activate prompts accidentally, and onboarding appears when authentication is missing. (#38641, #38643, #38644)
- Composer and transcript rendering now handle CRLF pastes, wrapped whitespace, and long URLs correctly. (#37709, #38380, #38704)
- Sandbox restrictions now fail closed for denied or unreadable paths across Linux and Windows. (#37875, #38026, #38416, #38660)

## Documentation

- The bundled skill-creator guide is more focused, and validation now rejects unfinished TODO placeholders. (#38384)

## Changelog

Full Changelog: https://github.com/openai/codex/compare/rust-v0.147.0...rust-v0.148.0

- #37190 Interrupt cyber model turns after one Guardian denial @copyberry
- #37191 Preserve legacy semantics during rollout migration @copyberry
- #37198 Prefer persisted cwd when reading local threads @copyberry
- #37199 Track thread archive analytics @copyberry
- #37204 Add durable user-message queue dispatch @copyberry
- #37206 Add a unified image budget @copyberry
- #37210 Fetch remote installed plugins across all scopes @copyberry
- #37211 Harden network proxy MITM authorization @copyberry
- #37248 Cover remote MCP discovery timeout cleanup @copyberry
- #37252 Allow agent roles on full-history forks @copyberry
- #37260 Fix first-turn model switching and rollback @copyberry
- #37261 Start cached MCP servers lazily for subagents @copyberry
- #37267 Support plugin roots in the host skill loader @copyberry
- #37273 Reuse MCP handlers across sampling steps @copyberry
- #37279 Avoid cloning immutable metadata on tool search cache hits @copyberry
- #37335 Fully repaint inline viewports after history overlap @copyberry
- #37336 Use step environments for extension turn input @copyberry
- #37337 Recover MCP servers after OAuth reauthentication @copyberry
- #37338 Honor the configured ChatGPT origin in connector install URLs @copyberry
- #37339 Reload app-server telemetry after account changes @copyberry
- #37340 Consolidate deferred environment provisioning APIs @copyberry
- #37341 Support content references for inline visualizations @copyberry
- #37342 Preserve foreign cwd URIs for turn-input contributors @copyberry
- #37343 Stage Bazel app-server test binaries in `TEST_TMPDIR` @copyberry
- #37344 Fix subagent MCP startup status settling @copyberry
- #37345 Send model routing hints to the Codex backend @copyberry
- #37347 Track context windows per agent @copyberry
- #37348 Add rollout migration tooling and background migration @copyberry
- #37349 Mount a minimal `/dev` in full-filesystem Bubblewrap sandboxes @copyberry
- #37350 Allow `ThreadManager` to customize thread ID generation @copyberry
- #37352 Configure the default code-mode exec yield timeout @copyberry
- #37354 Retry busy app-server test executable spawns @copyberry
- #37356 Support agent identity endpoint overrides @copyberry
- #37357 Clamp short wait_agent timeouts to the configured minimum @copyberry
- #37358 Add Markdown conversation export to the TUI @copyberry
- #37360 Use consistent TUI input placeholders @copyberry
- #37363 Recognize MCP tool hook configurations @copyberry
- #37366 Harden local MCP server process tree cleanup @copyberry
- #37367 Add session forking to `codex exec` @copyberry
- #37368 Restore approval policy when resuming threads @copyberry
- #37369 Add session archiving to the resume picker @copyberry
- #37371 Restore archived sessions from the resume picker @copyberry
- #37389 Add tool namespace metadata configuration @copyberry
- #37400 Rename the tool registry metadata setting @copyberry
- #37406 Add a loader for executor-local config layers @copyberry
- #37408 Add executor-local config reads to the exec server @copyberry
- #37424 Cap project instructions across environments @copyberry
- #37433 Expose multi-agent versions in model/list @copyberry
- #37434 Add process diagnostics snapshots @copyberry
- #37439 Add shared skill root loading interfaces @copyberry
- #37440 Load plugin skill roots through the host skills service @copyberry
- #37444 Unify plugin skill loading with the host skill service @copyberry
- #37446 Preserve base instruction provenance across sessions @copyberry
- #37447 Respect plugin skill availability in tool suggestions @copyberry
- #37452 Unify plugin skill loading through the shared loader @copyberry
- #37457 Remove the legacy core skill loader @copyberry
- #37461 Remove the unused remote skills client @copyberry
- #37466 Move skill config rule resolution into `codex-config` @copyberry
- #37470 Expose app-server diagnostics through the experimental API @copyberry
- #37477 Include call IDs in MCP requests and clarify metadata config @copyberry
- #37478 Shard state unit tests under Bazel @copyberry
- #37479 Report temporary directories in exec-server environment info @copyberry
- #37480 Delegate remote process sandboxing to the executor @copyberry
- #37483 Interrupt active code-mode cells with their turn @copyberry
- #37485 Keep response streams alive through connection failures @copyberry
- #37486 Expose runtime activity in server diagnostics @copyberry
- #37488 Generalize skill locator aliases across providers @copyberry
- #37489 Alias resource-backed skill locators under context pressure @copyberry
- #37492 Include tool namespace inventory in turn metadata @copyberry
- #37494 Add MCP event discovery and subscriptions @copyberry
- #37497 Limit payload traces in diagnostic logs @copyberry
- #37498 Preserve child waiters during process termination @copyberry
- #37500 Remove the legacy code-mode tool metadata inventory @copyberry
- #37503 Move host skill prompt injection into the skills extension @copyberry
- #37504 Disable Nagle's algorithm for code-mode WebSockets @copyberry
- #37505 Remove the codex-core-skills crate @copyberry
- #37507 Include sandbox mode in response metadata @copyberry
- #37510 Define the code-mode host gRPC protocol @copyberry
- #37511 Enforce automatic review for managed models @copyberry
- #37513 Reuse parent compactions in Guardian review sessions @copyberry
- #37516 Ignore reusable command approvals for cyber models @copyberry
- #37519 Expose auto-review ignore rules in config requirements @copyberry
- #37527 Terminate timed-out hook process trees @copyberry
- #37528 Keep external agent detection from blocking config requests @copyberry
- #37530 Implement the gRPC code-mode host service @copyberry
- #37533 Support asynchronous command hooks @copyberry
- #37538 Expose execution mode in hook listings @copyberry
- #37607 Prevent launch context from reaching child processes @copyberry
- #37610 Add workload identity token exchange support @copyberry
- #37618 Use step environments for Guardian approval reviews @copyberry
- #37622 Include buffered turns when editing prompts @copyberry
- #37641 Use the step context for command approval prefix rules @copyberry
- #37644 Generalize hook handler execution @copyberry
- #37645 Improve plugin install failure analytics @copyberry
- #37654 Advertise environment config read support @copyberry
- #37709 Keep wrapped composer whitespace with following text @copyberry
- #37723 Report I/O subtypes for session config import failures @copyberry
- #37745 Add gRPC TCP transport to the code-mode host @copyberry
- #37747 Bound Cursor project path resolution @copyberry
- #37757 Add a line-ending preservation mode to `apply_patch` @copyberry
- #37758 Add a feature flag to preserve apply_patch line endings @copyberry
- #37773 Forward install attempt IDs for remote plugins @copyberry
- #37788 Use native transparency in the imagegen skill @copyberry
- #37806 Initialize the install attempt ID in the plugin analytics test @copyberry
- #37807 Share model-visible tool specs across prompts @copyberry
- #37808 Simplify package-based skill reads @copyberry
- #37810 Support packaged defaults in config layering @copyberry
- #37812 Keep multi-workspace skill listings consistent @copyberry
- #37828 Track running unified exec processes at turn completion @copyberry
- #37832 Remove obsolete plugin skill discovery helpers @copyberry
- #37833 Encapsulate watchable skill root selection @copyberry
- #37836 Run plugin and skill tests on Windows @copyberry
- #37838 Tighten the skills extension API surface @copyberry
- #37842 Speed up MCP OAuth credential reads @copyberry
- #37843 Use the shared environment scrubber in git-utils @copyberry
- #37847 Preserve environments when reloading V2 agents @copyberry
- #37848 Expose the session ID to shell commands @copyberry
- #37850 Expose plugin ownership in MCP server status @copyberry
- #37851 Route intercepted exec approvals through shared review @copyberry
- #37860 Speed up MCP OAuth credential reads @copyberry
- #37862 Rename environment config for turn scope @copyberry
- #37864 Support MCP form input in full-access user threads @copyberry
- #37866 Add MCP OAuth credential contention regression tests @copyberry
- #37867 Reject duplicate resolved paths in apply_patch @copyberry
- #37871 Extract persisted history types into a dedicated crate @copyberry
- #37874 Keep runtime summary metrics out of Statsig exports @copyberry
- #37875 Honor the configured Windows sandbox level for managed networking @copyberry
- #37878 Add configurable goal token budget limits @copyberry
- #37882 Read safety buffering from response metadata @copyberry
- #37886 Extend bundled package discovery and expose its version @copyberry
- #37889 Ignore Unix socket proxy settings on Windows @copyberry
- #37891 Use thread configuration for `app/read` @copyberry
- #37892 Validate images before returning `view_image` output @copyberry
- #37895 Add configurable Responses API request metadata @copyberry
- #37896 Add hermetic Windows SDK and MSVC runtime repositories @copyberry
- #37898 Add appearance metadata to thread sections @copyberry
- #37901 Make submission operations move-only @copyberry
- #37902 Defer `view_image` processing to history insertion @copyberry
- #37906 Make gRPC code-mode notifications fire-and-forget @copyberry
- #37908 Apply refreshed cloud config bundles to later sessions @copyberry
- #37922 Extract reusable code-mode host test support @copyberry
- #37926 Distinguish turn-start thread persistence @copyberry
- #37929 Add shared runtime build information @copyberry
- #37939 Validate images before returning `view_image` output @copyberry
- #37970 Cache tool catalogs for streamable HTTP MCP servers @copyberry
- #37979 Honor per-directory bundled skill settings in `skills/list` @copyberry
- #37984 Stop re-exporting skill APIs from `codex-core` @copyberry
- #38011 Remove config lockfile support @copyberry
- #38020 Retry transient exec-server startup failures @copyberry
- #38024 Expose image generation usage-limit failures @copyberry
- #38026 Fail closed on unsafe Linux unreadable globs @copyberry
- #38032 Hide approved Guardian assessments from TUI history @copyberry
- #38033 Use session metadata to validate thread history paths @copyberry
- #38034 Filter live rollout items in place @copyberry
- #38035 Propagate MCP elicitation event delivery failures @copyberry
- #38036 Limit TUI streaming traces in SQLite logs @copyberry
- #38040 Propagate custom CA settings to local MCP servers @copyberry
- #38041 Add gRPC-backed code-mode sessions @copyberry
- #38043 Sandbox remote apply_patch operations @copyberry
- #38044 Compact code mode tool calls in TUI history @copyberry
- #38045 Store model history in response item envelopes @copyberry
- #38046 Include auto-review state in turn metadata @copyberry
- #38047 Add turn-aware response item injection @copyberry
- #38049 Harden network proxy credential brokerage @copyberry
- #38051 Run required CI against pull request merge commits @copyberry
- #38052 Add per-login MCP OAuth client registration selection @copyberry
- #38054 Add configuration-backed external authentication @copyberry
- #38056 Configure PSP routing through the feature system @copyberry
- #38057 Track artifact operations from trusted plugin markers @copyberry
- #38058 Preserve harness metadata across conversation history @copyberry
- #38060 Disable storage for Azure Responses requests @copyberry
- #38061 Preserve proxy settings for Windows sandbox debug sessions @copyberry
- #38064 Grant Windows sandbox access to the Codex app root @copyberry
- #38066 Track resource-backed skill invocations @copyberry
- #38067 Scope environment readiness config to thread attachments @copyberry
- #38072 Forward gRPC code-mode callbacks to session delegates @copyberry
- #38074 Track implicit executor skill invocations @copyberry
- #38075 Respect rendered width when adding TUI history @copyberry
- #38078 Reduce cloning in world-state patch handling @copyberry
- #38080 Allow nested Git repositories in the Windows sandbox @copyberry
- #38081 Use `ReviewDecision` for MCP tool approvals @copyberry
- #38083 Remove standard form input from app-server docs @copyberry
- #38084 Allow empty input to start a turn @copyberry
- #38086 Support execution-host context when resolving cloud config @copyberry
- #38087 Route gRPC code-mode sessions through the shared HTTP client @copyberry
- #38089 Add CIMD support to MCP OAuth registration @copyberry
- #38092 Simplify queued user message admission @copyberry
- #38094 Test Guardian context for code mode commands @copyberry
- #38101 Attach hosted app context to file uploads @copyberry
- #38103 Avoid cloning MCP invocations in TUI history @copyberry
- #38108 Route MCP tool calls through shared approval handling @copyberry
- #38127 Distinguish rollout IDs from thread IDs @copyberry
- #38165 Resolve subagent analytics connections lazily @copyberry
- #38167 Read executor skill packages directly @copyberry
- #38170 Notify running turn watchers only on count changes @copyberry
- #38172 Update `lru` and `webbrowser` dependencies @copyberry
- #38179 Embed defaults in the packaged config layer @copyberry
- #38183 Add conservative restriction helpers for tool policies @copyberry
- #38184 Run search tool integration tests on Windows @copyberry
- #38186 Stop overriding environments in the skills user-turn test @copyberry
- #38188 Integrate workload identity with Codex authentication @copyberry
- #38189 Run plugin app-server tests in automatic environments @copyberry
- #38197 Add an LRU baseline to skill shadow selection @copyberry
- #38204 Fuse recent and lexical skills in shadow selection @copyberry
- #38205 Enforce non-interactive approval policy for Codex delegates @copyberry
- #38214 Avoid allocations when sanitizing TUI user text @copyberry
- #38217 Start required cached MCP servers lazily for subagents @copyberry
- #38227 Add a flag to retain client developer messages @copyberry
- #38228 Detect implicit skill invocations from PowerShell reads @copyberry
- #38232 Track root turns across delegated Codex requests @copyberry
- #38238 Add manifest-defined metrics for trusted plugin scripts @copyberry
- #38239 Add bounded plugin measurement analytics @copyberry
- #38241 Include Node REPL policy in turn metadata @copyberry
- #38242 Cache stable active-cell layout measurements @copyberry
- #38243 Track client-authored developer messages in rollout history @copyberry
- #38244 Resolve paginated thread history by rollout ID @copyberry
- #38245 Add dynamic HTTP header helpers for MCP servers @copyberry
- #38251 Read model ETags from WebSocket metadata events @copyberry
- #38252 Collect metrics from plugin shell commands @copyberry
- #38253 Collect plugin metrics from unified exec commands @copyberry
- #38256 Report the latest rejection from multiple network reviews @copyberry
- #38257 Reconnect gRPC code-mode sessions after host restarts @copyberry
- #38258 Unify external authentication provider handling @copyberry
- #38261 Resolve skill package aliases in `skills.read` @copyberry
- #38265 Use bounded fallback ports for Windows managed proxies @copyberry
- #38268 Expose executor skill roots from `skills.read` @copyberry
- #38270 Add per-thread usage queries to the backend client @copyberry
- #38272 Stamp conversation history items with creation times @copyberry
- #38274 Represent persisted world state as JSON objects @copyberry
- #38275 Unify turn input submission and routing @copyberry
- #38276 Track plugin metrics for background unified exec commands @copyberry
- #38278 Add app-server coverage for plugin measurement analytics @copyberry
- #38280 Use protobuf's built-in Bazel proto rule @copyberry
- #38281 Show estimated thread usage in `/status` @copyberry
- #38282 Add thread usage to TUI status surfaces @copyberry
- #38283 Collect plugin metrics from remote executors @copyberry
- #38285 Move `codex-execpolicy` to protocol dev dependencies @copyberry
- #38288 Support gRPC code-mode hosts in app server @copyberry
- #38291 Remove unused apply_patch prompt fallback @copyberry
- #38292 Add durable reverts for paginated threads @copyberry
- #38299 Route network access through the shared approval pipeline @copyberry
- #38303 Add interrupted turn recovery @copyberry
- #38306 Protect inline visualization viewers from sandbox writes @copyberry
- #38321 Make gRPC code-mode yield tests deterministic @copyberry
- #38336 Add Guardian V2 extension scaffold @copyberry
- #38356 Support sandboxed file streaming in exec-server @copyberry
- #38358 Optimize orphan output normalization @copyberry
- #38361 Test hook rejection for explicitly started queue items @copyberry
- #38362 Stabilize exec-server byte-budget tests @copyberry
- #38363 Persist security risk scores in rollout history @copyberry
- #38368 Add the Guardian V2 Luna sampler @copyberry
- #38377 Constrain Guardian reviews to parent filesystem permissions @copyberry
- #38380 Preserve user message styling when wrapping long URLs @copyberry
- #38381 Prevent unread events from blocking in-process requests @copyberry
- #38383 Return Luna samples when streamed JSON completes @copyberry
- #38384 Refine skill creation guidance and validation @copyberry
- #38390 Use effective permissions when trusting app-server projects @copyberry
- #38394 Reject sessions with unloadable required managed hooks @copyberry
- #38396 Reap orphaned processes in Linux sandboxes @copyberry
- #38397 Include Node REPL results in Guardian reviews @copyberry
- #38399 Preserve floating-point values when decoding rollout lines @copyberry
- #38400 Refresh tracing interest in the token estimate test @copyberry
- #38403 Expose conversation history to tool lifecycle extensions @copyberry
- #38406 Pool Guardian sampling WebSocket connections @copyberry
- #38409 Classify tool calls in the Guardian V2 extension @copyberry
- #38413 Allow metadata updates without materializing threads @copyberry
- #38414 Add bounded transcript rendering for Guardian v2 @copyberry
- #38415 Recognize PowerShell `Get-Content` file reads @copyberry
- #38416 Honor filesystem permissions for app file uploads @copyberry
- #38418 Clarify MCP OAuth reauthentication errors @copyberry
- #38419 Apply Codex attribution to app-created commits @copyberry
- #38420 Recover capability discovery after executor disconnects @copyberry
- #38423 Centralize thread environment selection state @copyberry
- #38424 Fail closed when workload identity initialization fails @copyberry
- #38426 Protect workload identity auth in app-server account RPCs @copyberry
- #38427 Add Guardian guidance for Node REPL tool calls @copyberry
- #38429 Route curated plugin catalogs by authentication mode @copyberry
- #38432 Gate Node REPL Guardian guidance on model metadata @copyberry
- #38436 Add rustls fallback for local MCP HTTP requests @copyberry
- #38439 Preserve approval policies for auto-reviewed models @copyberry
- #38440 Add app-server support for reverting paginated threads @copyberry
- #38441 Give Guardian V2 full tool action context @copyberry
- #38443 Tag current time reminders in model context @copyberry
- #38445 Retain client developer messages across context compaction @copyberry
- #38446 Refresh current-time reminders for full-history subagents @copyberry
- #38447 Add running-task exit choices to local daemon sessions @copyberry
- #38448 Support per-server MCP OAuth callback ports @copyberry
- #38449 Expose model upgrade retirement times @copyberry
- #38450 Embed the Windows sandbox setup manifest in Bazel builds @copyberry
- #38452 Add structured telemetry for response retries @copyberry
- #38454 Include node_repl images in Guardian review evidence @copyberry
- #38456 Add experimental thread queue APIs to app server @copyberry
- #38460 Add an `AbsolutePathBuf` conversion for `FileSystemPath` @copyberry
- #38461 Centralize turn environment selection state @copyberry
- #38463 Preserve thread subscriptions across revert reloads @copyberry
- #38467 Parse model annotations from skill frontmatter @copyberry
- #38470 Add an Amazon Bedrock Runtime provider @copyberry
- #38473 Stop generating accepted-line fingerprints @copyberry
- #38475 Add bounded skill model delegation instructions @copyberry
- #38483 Include agent names in turn metadata @copyberry
- #38484 Search selected plugin apps before falling back @copyberry
- #38492 Enforce strict auto-review for MCP tool calls @copyberry
- #38493 Reuse pending MCP startups during reconciliation @copyberry
- #38494 Verify bundled bwrap in Bazel builds @copyberry
- #38499 Enable parallel tool calls for all model prompts @copyberry
- #38521 Carry environment config in turn selections @copyberry
- #38527 Configure Guardian sampling for responses lite @copyberry
- #38540 Record Guardian V2 risk scores on threads @copyberry
- #38553 Initialize Guardian V2 samplers per thread @copyberry
- #38555 Preserve Guardian transcript boundaries in sampling input @copyberry
- #38558 Improve Guardian transcript context selection @copyberry
- #38561 Restrict filesystem helper sandbox access @copyberry
- #38564 Reuse compatible parent compactions in Guardian V2 @copyberry
- #38567 Store security risk scores as a snapshot @copyberry
- #38568 Run tool start callbacks after pre-tool hooks @copyberry
- #38569 Require automatic review for high-risk Guardian v2 actions @copyberry
- #38579 Report thread storage changes after rollout migration @copyberry
- #38580 Keep the latest Guardian risk score during concurrent sampling @copyberry
- #38581 Honor cloud-managed requirements in feature listings @copyberry
- #38586 Bound Guardian V2 tool actions before risk classification @copyberry
- #38592 Let extensions resolve approval reviews before Guardian @copyberry
- #38596 Prioritize new Guardian classifications under load @copyberry
- #38597 Install Guardian V2 in the app server @copyberry
- #38601 Make unbounded connection retries configurable @copyberry
- #38602 Isolate Guardian reviewer sessions from parent extensions @copyberry
- #38604 Avoid paginated resume requests for verified legacy rollouts @copyberry
- #38605 Fix resume transcript preview line selection @copyberry
- #38606 Allow larger gRPC code mode tool descriptions @copyberry
- #38608 Fix the missing resume picker history mode import @copyberry
- #38610 Support workload identity in remote exec-server auth @copyberry
- #38612 Skip stale Guardian risk score persistence @copyberry
- #38615 Remove the gRPC code-mode enabled tool limit @copyberry
- #38616 Route escalated approval retries through Guardian @copyberry
- #38617 Prioritize global models in the Bedrock Runtime catalog @copyberry
- #38618 Apply Guardian policies to v2 risk classification @copyberry
- #38619 Source multi-agent instructions from the model catalog @copyberry
- #38621 Preserve large gRPC code-mode tool errors @copyberry
- #38623 Preserve MCP namespace descriptions in the tool catalog cache @copyberry
- #38624 Open notes when accepting the request input Other option @copyberry
- #38625 Enable unified exec by default on Windows @copyberry
- #38628 Make Guardian v2 risk classification configurable @copyberry
- #38630 Remove the gRPC code-mode open session limit @copyberry
- #38634 Add MCP protocol discovery metrics @copyberry
- #38635 Remove repository-local Codex skills @copyberry
- #38639 Render the initial TUI session header before input @copyberry
- #38641 Harden TUI startup input handling @copyberry
- #38642 Keep the composer editable during TUI startup @copyberry
- #38643 Delay the startup composer until first-login onboarding @copyberry
- #38644 Show onboarding when Codex home lacks authentication state @copyberry
- #38645 Deliver gRPC code-mode notifications without truncation @copyberry
- #38646 Read Apple notarization issuer ID from Key Vault @copyberry
- #38647 Add an override to skip project configuration @copyberry
- #38649 Reuse the TUI startup account response during bootstrap @copyberry
- #38650 Canonicalize default namespaces in gRPC subscription filters @copyberry
- #38651 Move permission profile snapshots into the protocol @copyberry
- #38657 Skip terminal hyperlink layout when no links are present @copyberry
- #38660 Enforce managed deny-read rules in the Windows sandbox @copyberry
- #38662 Delete Thai combining marks one at a time in the composer @copyberry
- #38664 Resolve local JSON Schema refs in Code Mode types @copyberry
- #38670 Forward executor network policy decisions for auditing @copyberry
- #38673 Honor per-environment permission profiles @copyberry
- #38675 Exclude shortcut-modified input from TUI paste bursts @copyberry
- #38678 Preserve environment configuration ownership @copyberry
- #38681 Preserve HTTP fallback for delegated sessions @copyberry
- #38682 Surface misalignment policy violations as typed errors @copyberry
- #38684 Support pending environment attachment configuration @copyberry
- #38690 Propagate request trace context through exec-server relays @copyberry
- #38701 Route permission requests through shared Guardian approvals @copyberry
- #38703 Refresh hook runtimes after plugin changes @copyberry
- #38704 Normalize CRLF line endings in pasted text @copyberry
- #38705 Add MCP tool handler support to the hooks engine @copyberry
- #38743 Scope TUI app directory state to the active context @copyberry
- #38746 Remove the TUI test dependency on `codex-cli` @copyberry
- #38767 Forward workload identity context during token exchange @copyberry
- #38774 Use paginated history for persistent exec threads @copyberry
- #38785 Keep active-turn model settings stable across updates @copyberry
- #38788 Show resume and fork status during TUI startup @copyberry
- #38795 Add storage diagnostics to `codex doctor` @copyberry
- #38800 Route executor policy audits through log-only telemetry @copyberry
- #38806 Add a health endpoint to the code-mode gRPC listener @copyberry
2026-08-18 14:38:16 -07:00
Channing Conger b3cc217378 Add a health endpoint to the code-mode gRPC listener (#38806)
## What changed

- Serve `GET /healthz` with a `200 OK` response over HTTP/1.1 and HTTP/2.
- Continue requiring HTTP/2 for all other requests so gRPC methods are not exposed over HTTP/1.1.

## Testing

- Add TCP listener integration coverage for HTTP/1.1 and HTTP/2 health checks and rejection of HTTP/1.1 gRPC requests.

GitOrigin-RevId: ae7bbf56323fbc76769375a6d8e90653e8adc860
2026-08-15 21:26:28 +00:00
viyatb-oai 899d1715c8 Route executor policy audits through log-only telemetry (#38800)
## Why

Forwarded network policy decisions are audit telemetry and should not be
written to the persistent state log.

## What changed

- Emit forwarded `codex.network_proxy.policy_decision` events on the
  `codex_otel.log_only` target, keeping them available to OTEL log export while
  excluding them from persistent logs.
- Assert the log-only target in the existing trusted-metadata audit test.

GitOrigin-RevId: 16d07c8f390245036e4fa092a876012ef2b2fdba
2026-08-15 19:34:50 +00:00
chess 6efcdad4c3 Add storage diagnostics to codex doctor (#38795)
## What changed

- Report available space for `CODEX_HOME` and the active worktree, warning below 5 GiB and failing below 1 GiB.
- On Windows, report whether the active Git worktree is on a trusted Dev Drive and provide remediation when it is not.
- Run attached doctor reports against the conversation workspace, including workspaces recovered from persisted thread metadata, while keeping the subprocess anchored in `CODEX_HOME` so deleted workspaces do not prevent it from starting.

## Testing

- Cover disk thresholds, measurement failures, missing paths, conversation workspace selection, command construction, Windows volume detection, and human-readable output.

GitOrigin-RevId: 0a99f9d278717e7d19936ffc504984b3a0958c25
2026-08-15 18:47:25 +00:00
Charlie Marsh a95a6fe333 Show resume and fork status during TUI startup (#38788)
## What changed

- Display a dimmed `Resuming session…` or `Forking session…` status above the provisional composer based on the requested session action.
- Update or clear the status after session selection resolves, while preserving the composer height and any startup draft text.

## Testing

- Add snapshot coverage for resume and fork loading states and transitions back to a fresh session.

GitOrigin-RevId: 9d37b2d0e390d28dee310dd7a5b9fa992db2c25c
2026-08-15 17:30:13 +00:00
joeflorencio-openai 00f6a8a60e Keep active-turn model settings stable across updates (#38785)
## Why

Thread settings can change while a turn is still active, including between sampling requests. Those updates should apply to the next turn instead of changing the model configuration partway through the current turn.

## What changed

- Snapshot the model, reasoning settings, service tier, approval settings, and model-attributed telemetry in `StepContext`.
- Build prompts, model requests, world state, tracing, and startup prewarms from that step-scoped snapshot.
- Share immutable model metadata between turn and step contexts.

## Testing

Added an integration test that pauses an active turn, updates its thread settings, and verifies that all requests in the active turn retain the original settings while the next turn uses the updates.

GitOrigin-RevId: c51352218e463dcc9b7338566d16742292c49fbf
2026-08-15 16:58:08 +00:00
Eric Traut c4941302c7 Use paginated history for persistent exec threads (#38774)
## What changed

- Request paginated history when `codex exec` starts a persistent thread.
- Keep ephemeral threads unchanged and retry with legacy history when the configured thread store does not support pagination.
- Exercise paginated resume and fork persistence, including resumed history and fork ancestry without copying the source transcript.

## Testing

- Extend unit coverage for persistent and ephemeral thread start parameters.
- Add an integration test for the legacy-history fallback.

GitOrigin-RevId: 610a2db14524b127551e75b7aef541d44368f28a
2026-08-15 15:24:30 +00:00
cooper-oai 12933b6955 Forward workload identity context during token exchange (#38767)
## What changed

- Read optional workload identity context from `OPENAI_WORKLOAD_IDENTITY_CONTEXT` and forward it unchanged as the `workload_identity_context` token exchange field.
- Treat the context as sensitive by redacting it from session configuration debug output and removing it from model-reachable child environments.
- Include the context in workload identity session fingerprints so sessions with different values cannot share an exchange.

## Testing

- Cover request forwarding, debug redaction, session compatibility, and child-environment scrubbing.

GitOrigin-RevId: fb50700478cf54d9d604944a4ed3e77acc928a0f
2026-08-15 14:31:04 +00:00
Charlie Marsh a7edf37cb4 Remove the TUI test dependency on codex-cli (#38746)
## What changed

Remove the unused `codex-cli` dev-dependency and the no-op import that kept it
visible to `cargo-shear`. TUI tests continue to locate spawned binaries through
`codex-utils-cargo-bin`.

GitOrigin-RevId: ba5855590c6f0300845170f15f39d77c0611a60a
2026-08-15 11:01:30 +00:00
Charlie Marsh 3c7ae4a812 Scope TUI app directory state to the active context (#38743)
## Why

App directory data and in-flight requests can outlive the account, workspace, or thread that produced them, allowing stale apps to appear in the current TUI context.

## What changed

- Invalidate cached app data, dismiss the app picker, and start a fresh fetch when the account, workspace, or thread changes.
- Tag app directory fetches with their originating thread, workspace, and scope generation, and ignore queued requests or results that no longer match.
- Treat `AppListUpdated` notifications as revalidation signals instead of directly adopting their unscoped contents, with deduplication and a bounded error retry.

## Testing

Added coverage for stale request and result rejection, context invalidation, picker dismissal, and notification revalidation.

GitOrigin-RevId: f20930a0598a6abbdfb3c7826ec955346fe2da7a
2026-08-15 10:57:15 +00:00
Abhinav 85fc4def35 Add MCP tool handler support to the hooks engine (#38705)
## What changed

- Discover synchronous `mcp_tool` hook handlers and invoke their configured MCP server and tool through a supplied executor.
- Expand nested hook-event placeholders in MCP tool inputs while preserving JSON types, and process tool output through the existing hook output contract.
- Represent hook details as handler-specific metadata in `hooks/list`, including MCP server and tool fields, and show those details in the TUI hooks browser.
- Skip unsupported `SessionEnd` MCP hooks and runtimes without MCP invocation support with startup warnings.

## Testing

- Cover argument expansion, missing placeholders, MCP invocation and hook decisions, discovery warnings, `hooks/list` metadata, and TUI rendering.

GitOrigin-RevId: 295b845471fe92bd7ad7cd272fbcd2c3713912e0
2026-08-15 05:53:54 +00:00
kevinlin-openai 3685a61dad Normalize CRLF line endings in pasted text (#38704)
## Why

Replacing every carriage return with a line feed turns each CRLF pair into two
line breaks when text is pasted into the TUI composer.

## What changed

Normalize CRLF pairs before converting remaining bare carriage returns, so each
pasted line ending becomes a single line feed while existing line feeds remain
unchanged.

## Testing

Add a regression test covering mixed CRLF, bare CR, and LF line endings.

GitOrigin-RevId: 86c66d2a52fae52c9ae58c2f24a49eed685b60be
2026-08-15 05:43:44 +00:00
Abhinav e5470f1bce Refresh hook runtimes after plugin changes (#38703)
## What changed

- Rebuild hook runtimes for loaded sessions when effective plugins change or a marketplace upgrade installs new plugin content.
- Refresh plugin-related caches and MCP runtimes alongside hooks after plugin mutations.
- Preserve each loaded session's current configuration while rebuilding its hooks.

## Testing

- Cover direct plugin upgrades, including subsequent turn and session-end hooks.
- Cover automatic marketplace upgrades for an already loaded session.

GitOrigin-RevId: fef64c68d652f300c7f3d88e81c5017459aa9a18
2026-08-15 05:28:53 +00:00
Dylan Hurd 53f3fa7496 Route permission requests through shared Guardian approvals (#38701)
## What changed

- Represent `request_permissions` calls as shared approval actions and convert them into Guardian permission requests through the common approval path.
- Preserve turn cancellation while an automatic permission review is pending.
- Cover Guardian allow and deny decisions, cancellation without a user-approval fallback, and clean follow-up turns.

GitOrigin-RevId: 95d0df0288e232f32b162756aa7d64a30df7efa5
2026-08-15 05:09:19 +00:00
Ben Romano 4861236f06 Propagate request trace context through exec-server relays (#38690)
## What changed

- Add optional W3C `traceparent` and `tracestate` fields to relay frames.
- Copy trace context from JSON-RPC requests onto relay data frames.
- For encrypted requests split across multiple Noise records, attach the context only to the first record while keeping the request payload encrypted.

## Testing

- Cover trace propagation for both Noise relay paths, including fragmented encrypted requests.

GitOrigin-RevId: a61bbbefef31e2e7e93a43f439c5f296700feb7b
2026-08-15 03:00:35 +00:00
sayan-oai 2ca575026c Support pending environment attachment configuration (#38684)
## Why

An environment connection can be available before its owner has supplied the
configuration for a particular thread attachment. Threads need to start without
blocking while ensuring turns do not use that attachment prematurely.

## What changed

- Accept `Pending` environment configuration and resolve each attachment only
  after both its shared executor connection and owner configuration are ready.
- Add a `Failed` configuration state and `environment_failed` callback so an
  owner can fail one thread's attachment without affecting other threads.
- Keep pending and failed attachments out of capability-root inspection and turn
  environments, and allow failed attachments to recover through a ready update.
- Apply owner configuration before waking a waiting turn so its permission
  profile, login-shell policy, capability roots, and tools are immediately
  consistent.

## Testing

Add an integration test covering non-blocking thread startup, independent ready
and failed callbacks, waiting-turn resumption, installed capability and tool
configuration, and recovery from failure.

GitOrigin-RevId: d587e2025d584c867d782d470b18bf5a1a27b76c
2026-08-15 01:39:04 +00:00
Francis Chalissery eb147c0db3 Surface misalignment policy violations as typed errors (#38682)
## What changed

- Recognize `misalignment_policy_violation` errors from response streams and HTTP 400 or 403 responses.
- Preserve the upstream message, use a fallback for blank messages, and treat the error as non-retryable.
- Expose `misalignmentPolicyViolation` through the app-server protocol and generated schemas so turns fail with a typed terminal error.

## Testing

- Cover streamed and HTTP policy violations, fallback messages, retry behavior, and app-server turn completion.

GitOrigin-RevId: fd3485bf0be7bfe3d51c078bbc36a081692fd57f
2026-08-15 01:34:33 +00:00
Dylan Hurd 4e9a1a9073 Preserve HTTP fallback for delegated sessions (#38681)
## Why

Responses WebSocket fallback is session-scoped. A delegated session created
after its parent switched to HTTP could otherwise make another WebSocket
connection attempt.

## What changed

Disable WebSocket support for a delegated session when the parent session has
already fallen back to HTTP.

## Testing

Add a guardian review regression test that verifies only the parent's initial
WebSocket attempt occurs and the guardian request uses the HTTP response path.

GitOrigin-RevId: 1345f8fe739f55975aef432045348eae5a9278d6
2026-08-15 01:24:46 +00:00
sayan-oai 22bf16a37e Preserve environment configuration ownership (#38678)
## Why

Environment attachments can either inherit configuration from their thread or
provide their own. Later thread setting updates must refresh inherited
configuration without overwriting attachment-owned permissions and capability
roots.

## What changed

- Resolve each attachment's configuration when it is selected and retain
  whether it came from the thread or the attachment owner.
- Apply subsequent thread configuration updates only to thread-owned
  attachments, while preserving ownership across snapshots and child threads.
- Keep the resolved configuration with the environment selection so runtime
  consumers use a single canonical value.

## Testing

- Extend remote-environment coverage to verify that thread-owned permissions
  follow thread updates while owner-provided read-only permissions remain in
  effect.
- Cover configuration inheritance, attachment replacement, and owner-configured
  capability roots.

GitOrigin-RevId: fe70c4be5f151432b69bf4b141e316faa89036ae
2026-08-15 00:43:44 +00:00
Darius Karel 233739e76a Exclude shortcut-modified input from TUI paste bursts (#38675)
## What changed

- Treat plain, Shift-modified, and Windows AltGr character events as text-producing input for paste-burst detection.
- Exclude Super, Hyper, and Meta character events from paste bursts, flushing any pending text before handling them as shortcuts.

## Testing

- Add coverage for plain and Shift-modified spaces, shortcut-modified spaces, pending burst flushes, and platform-specific AltGr input.

GitOrigin-RevId: 3c43224966307fd014eb1586dce0c53ee56c75aa
2026-08-15 00:32:58 +00:00
sayan-oai 1873e947f8 Honor per-environment permission profiles (#38673)
## What changed

- Add a resolved `permission_profile` to each `EnvironmentConfig` and use the
  complete attachment config for execution and capability-root selection.
- Let `Ready` environment configurations override thread permissions while
  `FromThread` selections continue to inherit them.
- Restrict inherited Guardian environment profiles to read-only permissions.

## Testing

- Add coverage proving that a read-only environment blocks writes even when
  the thread permits workspace writes.
- Update environment inheritance, Guardian review, and capability-root tests
  for the resolved attachment configuration.

GitOrigin-RevId: 1a313b9e4892b1a579a0e880e322a782b4f6c0a7
2026-08-15 00:24:25 +00:00
viyatb-oai 15fde8c1f2 Forward executor network policy decisions for auditing (#38670)
## What changed

- Add a best-effort `network/policyDecision` notification for final domain and non-domain policy decisions made by executor-local proxies.
- Validate notifications against the active process on the controller and emit audit events with controller-trusted session and execution metadata.
- Reserve outbound RPC capacity so audit notifications cannot block control messages, and expose valid `chatgpt-account-id` header values for audit attribution.

## Testing

- Cover notification serialization, proxy decision capture, executor-to-controller delivery, trusted metadata handling, and reserved RPC capacity.

GitOrigin-RevId: a39f96a6b3d9401c03d54eaef5b9a6d3fe0da78b
2026-08-14 23:42:40 +00:00
aphonpra-oai a186f5484d Resolve local JSON Schema refs in Code Mode types (#38664)
## Why

Code Mode rendered document-local `$ref` values as `unknown`, hiding referenced
input and structured-output shapes from generated TypeScript declarations.

## What changed

- Resolve fragment-only JSON Pointer references against the root schema,
  including escaped and percent-encoded pointer segments.
- Preserve `$ref` siblings as intersections and parenthesize unions used in
  `allOf` intersections.
- Bound recursive and repeated expansion, intermediate rendering work, and
  final output size, falling back to `unknown` when a limit is reached or a
  reference cannot be resolved safely.

## Testing

Add unit coverage for recursive, escaped, nested-resource, dangling, and
oversized references, plus integration coverage for generated Code Mode tool
descriptions and MCP structured output types.

GitOrigin-RevId: 95c6aa32e25325b5be9359dfac3b3328e5e7a499
2026-08-14 22:40:19 +00:00
kevinlin-openai 274727d37f Delete Thai combining marks one at a time in the composer (#38662)
## Why

Backspace should let users remove Thai vowel and tone marks without deleting the
entire grapheme cluster.

## What changed

- Treat Thai nonspacing marks as individual backward-deletion boundaries.
- Keep embedded text elements atomic and preserve the existing behavior for
  other grapheme clusters, including decomposed Latin text and joined emoji.

## Testing

Add coverage for successive deletion of Thai marks, cursor rendering after
deletion, unchanged non-Thai grapheme handling, and atomic Thai text elements.

GitOrigin-RevId: f4834183909d93f4b4dd92f5d93e89235dc2b621
2026-08-14 22:35:23 +00:00
johnl-oai 848cbad7f4 Enforce managed deny-read rules in the Windows sandbox (#38660)
## Why

Windows sandbox requests must preserve managed filesystem deny rules across every execution path and setup refresh. Unsupported policies should fail closed instead of allowing a command to run without the requested protection.

## What changed

- Resolve Windows filesystem overrides while constructing each sandbox execution request so both `shell_command` and `exec_command` enforce exact-path and glob deny-read entries.
- Carry resolved deny-read paths into Windows sandbox setup refreshes, including workspace-relative entries.
- Reject unelevated restricted-token requests that cannot enforce deny-read rules.
- Reject recursive globs rooted at a filesystem root unless `glob_scan_max_depth` bounds their expansion.

## Testing

Added coverage for deny-read enforcement through both command runtimes, setup refresh resolution, restricted-token failure, and bounded root-level glob scans.

GitOrigin-RevId: 33dfa4d1a45b14850cbf58f9173717e3e707d9bf
2026-08-14 22:28:33 +00:00
Charlie Marsh 5186e2ccc3 Skip terminal hyperlink layout when no links are present (#38657)
## What changed

Return early from `mark_buffer_hyperlinks` when none of the supplied lines
contain hyperlink metadata, avoiding unnecessary paragraph layout work.

GitOrigin-RevId: bdd6727f3dab7cef87646f97ac955e848cfcfee2
2026-08-14 21:54:14 +00:00
sayan-oai c530bcd4cd Move permission profile snapshots into the protocol (#38651)
## What changed

- Define `PermissionProfileSnapshot` as a protocol model and re-export it from
  `core-api`.
- Store snapshots directly in core permission state while continuing to apply
  constraints to their concrete `PermissionProfile`.
- Preserve active profile identity and profile-declared workspace roots without
  the core-only resolved profile variants.

GitOrigin-RevId: cc5e03908e62054cde5de691faa47e471f2e1af5
2026-08-14 21:17:29 +00:00
Adam Perry @ OpenAI ff6e7c77a3 Canonicalize default namespaces in gRPC subscription filters (#38650)
## What changed

- Normalize both tool invocations and subscription filters before matching them.
- Treat missing and empty namespaces as aliases for the `functions` namespace while preserving the namespace reported with each invocation.

## Testing

- Add a gRPC service test covering missing, empty, and explicit default namespaces on both sides of a filtered subscription.

GitOrigin-RevId: 409326f8ee6b3ab9a6ff5ceca0693558bc9c364d
2026-08-14 21:03:00 +00:00
Charlie Marsh aa1b81e46f Reuse the TUI startup account response during bootstrap (#38649)
## Why

The TUI reads the account to determine login status, then bootstrap reads the
same account again during startup.

## What changed

- Preserve the login-status account response and pass it to app-server
  bootstrap, avoiding the second account request.
- Discard the prefetched response when onboarding or a resume-directory prompt
  allows authentication to change, when a picker replaces the app-server
  session, or when the model provider changes.

## Testing

- Verify bootstrap reuses a prefetched account without issuing another account
  request and retains its account metadata.
- Verify normal bootstrap still reads the account when none was prefetched.
- Verify matching resume directories skip the interactive prompt.

GitOrigin-RevId: 8da1b9104b9e7f048c4254399b126116798d641a
2026-08-14 20:59:34 +00:00
Michael Zeng b8aa9e9a01 Add an override to skip project configuration (#38647)
## What changed

- Add `LoaderOverrides::ignore_project_config` to bypass project-root discovery and all project configuration layers.
- Keep other configuration sources, including session overrides and cloud configuration, active when the override is set.

## Testing

- Add a config loader test that verifies project configuration is not loaded or parsed while session and cloud values remain effective.

GitOrigin-RevId: b9aa44de526354fad6b900d6ae8d9b5fb8f700bb
2026-08-14 20:53:22 +00:00
Adam Perry @ OpenAI fe556c4b6c Deliver gRPC code-mode notifications without truncation (#38645)
## What changed

- Forward notification text to the session delegate without applying the previous 1,024-byte limit or appending a truncation suffix.
- Update the gRPC host integration test to verify that oversized multibyte notification text is delivered unchanged.

GitOrigin-RevId: 9a9e24b359a07540f70ec4e98b28524db3f7a4a0
2026-08-14 20:42:35 +00:00
Charlie Marsh efa97f9bc6 Show onboarding when Codex home lacks authentication state (#38644)
## Why

Routine state such as history, logs, sessions, or temporary files does not mean
that the default account can authenticate. Treating any non-pristine Codex home
as configured can show the composer before onboarding is complete.

## What changed

- Base the startup decision on authentication-relevant state instead of requiring
  an empty Codex home. Existing credentials, configuration, workload identity,
  managed configuration, or a running local daemon continue to keep the composer
  visible.
- Treat an unreadable or ambiguous home conservatively and keep the composer
  visible.
- Allow onboarding when the legacy `--search` flag is the only configuration
  override.

## Testing

Expanded startup preflight and draft tests to cover existing home state,
credential sources, workload identity markers, daemon state, ambiguous paths,
and search-only overrides.

GitOrigin-RevId: 76837e3fd6aa714f2a7f72d191088a3faae23515
2026-08-14 20:38:52 +00:00
Charlie Marsh 6d97d4c102 Delay the startup composer until first-login onboarding (#38643)
## Why

On a pristine default installation, the provisional composer can appear before
first-login onboarding takes over the terminal.

## What changed

- Detect pristine local installations conservatively, accounting for existing
  Codex state, custom homes, access tokens, system configuration, and managed
  configuration sources, including macOS managed preferences.
- Keep the composer hidden and ignore draft input until onboarding completes,
  while still allowing startup cancellation with `Ctrl-C` or `Ctrl-D`.
- Reveal the configured composer after onboarding for normal new-session
  launches; resume and fork pickers retain their existing startup flow.

## Testing

- Cover pristine and existing home layouts, environment credentials, system and
  managed configuration, inaccessible state, onboarding input suppression,
  cancellation, and the transition to the composer.

GitOrigin-RevId: c1a47ea3ba7c1ff1dd229895c0362b6dd9bfd713
2026-08-14 20:35:11 +00:00
Charlie Marsh a0bed4be21 Keep the composer editable during TUI startup (#38642)
## Why

Configuration and app-server initialization can take time before the main TUI is ready, leaving users unable to begin drafting a prompt.

## What changed

- Show a provisional composer while startup work runs and carry its text, cursor position, paste state, and attachments into the initialized chat.
- Limit the provisional composer to safe editing and cancellation, and quarantine input around session pickers, approvals, and other actionable startup screens.
- Preserve configuration validation before terminal checks and recover terminal state cleanly from startup failures and caught panics.

## Testing

- Cover startup editing, multiline and large pastes, keymaps, cancellation, session-picker handoff, approval boundaries, and draft restoration.
- Verify non-interactive launches report configuration errors before terminal errors.

GitOrigin-RevId: fe04a85cfbbcff21ff87fa81fd17474827858575
2026-08-14 20:30:30 +00:00
Charlie Marsh 58d2daba45 Harden TUI startup input handling (#38641)
## Why

Terminal probes and other bootstrap work can leave keys or partial control
sequences buffered before an interactive startup screen is visible. Those
inputs must not accidentally select or confirm an action, while typeahead
intended for the composer should survive terminal initialization.

## What changed

- Replay user input consumed by Unix startup probes through Crossterm while
  filtering completed terminal color replies, and avoid consuming the Windows
  console input queue when detecting default colors.
- Drain decoded and unread input after rendering actionable startup screens,
  including onboarding trust, migration, update, provider, resume, and hooks
  prompts. Keep incomplete control sequences quarantined and fail closed when
  an input boundary cannot be resolved.
- Restore terminal modes if initialization exits early and bound terminal probe
  reads by time and byte limits.

## Testing

Add parser, boundary, onboarding, and PTY coverage for preserved typeahead,
split escape sequences, bracketed paste, delayed input, and fresh input after
an interactive screen becomes ready.

GitOrigin-RevId: 321198996cdd88fe9b43c4a762e750bff450482c
2026-08-14 20:23:49 +00:00
Charlie Marsh 7e65e4f330 Render the initial TUI session header before input (#38639)
## What changed

- Drain queued app events until the initial session header is installed before
  handling terminal input.
- Render the active session header without a leading separator so it starts at
  the top of the viewport.

## Testing

- Add a rendering snapshot that verifies the initial header begins on the first
  viewport row.

GitOrigin-RevId: 070417776b629c681b3f94e93ba619dfefe764b1
2026-08-14 20:19:42 +00:00
thomas 6bed213411 Add MCP protocol discovery metrics (#38634)
## What changed

- Record a counter and duration for MCP client protocol discovery.
- Tag observations with the configured `legacy` or `auto` mode and classify
  outcomes as `modern`, `legacy`, or `failure`.

GitOrigin-RevId: f348e0d900b437d5a9fef1c33cdb1314f2421785
2026-08-14 19:57:04 +00:00
Adam Perry @ OpenAI 6595071e65 Remove the gRPC code-mode open session limit (#38630)
## What changed

Allow the gRPC code-mode host to register more than
`MAX_IN_FLIGHT_REQUESTS` open sessions. Existing limits on in-flight
requests, control requests, and active cells remain unchanged.

GitOrigin-RevId: 126c5088868e7783f8592f3f9250f5c8573df51f
2026-08-14 19:26:36 +00:00
felixxia-oai baab1705c6 Make Guardian v2 risk classification configurable (#38628)
## What changed

- Allow `features.guardianv2` to remain a boolean toggle or specify classifier instructions, the review threshold, reasoning effort, and action and instruction token limits.
- Add transcript controls for included sources, per-entry and total token budgets, and the number of recent non-user entries.
- Validate configured ranges and relationships, expose them in the generated config schema, and apply the resolved settings throughout Guardian v2 classification and approval review.

## Testing

- Cover boolean compatibility, configuration parsing and boundaries, config-manager rejection, and the resulting classifier request and approval decision.

GitOrigin-RevId: dc018b53b782e2d6b4d6a795cca4945130a71678
2026-08-14 19:11:41 +00:00
iceweasel-oai d8d7ca73f8 Enable unified exec by default on Windows (#38625)
## What changed

- Enable the stable `unified_exec` feature by default on every platform.
- Update cross-platform integration test expectations so `exec_command` and
  `write_stdin` are exposed on Windows instead of `shell_command`.

GitOrigin-RevId: e5c864bacbde7eab109e7a0e399b8f7b843b384c
2026-08-14 19:07:15 +00:00
Benjamin Carlsson 1426592fcc Open notes when accepting the request input Other option (#38624)
## What changed

When the generated `None of the above` option is selected in a request user
input prompt, route Enter and configured accept actions to the notes editor
instead of submitting the response. Tab continues to open the same editor.

## Testing

Add a regression test confirming that both Tab and Enter reveal the notes editor
without submitting the response.

GitOrigin-RevId: 8a563d81a82a11ca0b26c2b1100053f13be8e8f4
2026-08-14 19:02:27 +00:00
jif 42b5f05cef Preserve MCP namespace descriptions in the tool catalog cache (#38623)
## What changed

Keep MCP namespace descriptions when publishing tool definitions to the
process-scoped catalog cache. Cached definitions now expose the server
instructions to the model before a lazily started MCP connection finishes
initializing.

## Testing

Update the cached MCP startup integration test to verify that cached namespace
descriptions retain the originating server instructions.

GitOrigin-RevId: d1b73381852fd43c6b54a7c22a599474c774dc20
2026-08-14 18:35:13 +00:00
Adam Perry @ OpenAI 478215c5c1 Preserve large gRPC code-mode tool errors (#38621)
## Why

Code-mode tool failure messages larger than 64 KiB were truncated before they
reached the host.

## What changed

- Remove the tool error size limit from the gRPC protocol and host validation.
- Forward failed tool completion messages without truncation.

## Testing

- Verify that a multibyte error larger than 64 KiB is preserved exactly.

GitOrigin-RevId: 264ae4ba4adea5c19b669e4f41ccfd41a0c30fb5
2026-08-14 18:30:45 +00:00
rhan-oai 395723b238 Source multi-agent instructions from the model catalog (#38619)
## What changed

- Add model-catalog messages for root and subagent roles, explicit delegation, and delegation hints.
- Resolve role instructions in config, catalog, then bundled-default order, while preserving empty values as an explicit way to suppress fallback text.
- Refresh catalog-provided role and mode instructions when the model changes, and give full-history forks the selected child model's subagent role without retaining the parent's role guidance.
- Keep existing config overrides and reasoning-effort behavior, including proactive delegation for ultra reasoning effort.

## Testing

- Cover message deserialization and preservation through model overrides.
- Cover precedence, empty overrides, model switches, resumed sessions, and full-history subagent forks.

GitOrigin-RevId: 4625cf7c6a5490176adddfaa0fb99100707daea9
2026-08-14 18:26:20 +00:00
felixxia-oai 14a6813fa8 Apply Guardian policies to v2 risk classification (#38618)
## What changed

- Include the resolved Guardian security policy in the v2 classifier's developer instructions.
- Prefer an explicit `guardian_policy_config`, then the reviewer model's catalog policy, and finally the bundled policy.
- Limit the combined classifier instructions and policy to 10,000 tokens.

## Testing

- Cover configured and catalog policies, policy truncation, and the bundled-policy fallback.

GitOrigin-RevId: 1b84d70081dd924e214636b4b470d57a63d7cb88
2026-08-14 18:21:22 +00:00
Celia Chen 086396f7f6 Prioritize global models in the Bedrock Runtime catalog (#38617)
## What changed

Group Amazon Bedrock Runtime models by routing variant so every Global model
appears before the US cross-region models, while preserving the base model order
within each group. Update catalog priorities and tests to match the new order.

GitOrigin-RevId: e5a55d61163404172a418cb794b25f3b27f83618
2026-08-14 18:01:06 +00:00
jif fa595fbab8 Route escalated approval retries through Guardian (#38616)
## What changed

- Bypass extension approval contributors when an approval request includes a retry reason, ensuring the retry is reviewed by Guardian.
- Add coverage showing that Guardian can deny an escalated retry even when an extension contributor would approve it, and that the retry reason is included in the review request.

GitOrigin-RevId: c8f556623f26fea605898d4b8e89679cebd63e65
2026-08-14 17:56:38 +00:00
Adam Perry @ OpenAI 0fce933290 Remove the gRPC code-mode enabled tool limit (#38615)
## What changed

Stop rejecting code-mode execute requests solely because `enabled_tools`
contains more than 1,024 definitions. Continue validating each tool definition
while converting the request.

GitOrigin-RevId: da83b61c5f659e6aa221ed663821edcdfc29d3f1
2026-08-14 17:50:01 +00:00
jif f535950eaa Skip stale Guardian risk score persistence (#38612)
## Why

Concurrent Guardian samples can finish out of order. A stale result rejected by
the thread's latest-score update could still be appended to the rollout.

## What changed

Return without persisting a risk score when `insert_if` rejects it as older than
the score already stored on the thread.

GitOrigin-RevId: 7b2c895742753a19dfe48fd7f8ecd912d3cd3af6
2026-08-14 17:41:34 +00:00
cooper-oai fb5aa093e0 Support workload identity in remote exec-server auth (#38610)
## Why

Remote exec-server registry requests need to refresh managed credentials before sending a request. Static auth-header resolution cannot perform the asynchronous token exchange required by workload identity.

## What changed

- Add asynchronous auth-header resolution to `AuthProvider`, with the existing static-header behavior as the default.
- Resolve fresh managed credentials for each remote environment registry request while preserving the expected account and workspace identity.
- Load the cloud configuration bundle during remote exec-server startup when workload identity is selected.

## Testing

- Update the managed-auth and environment-registry auth tests to exercise asynchronous header resolution.

GitOrigin-RevId: 5d60f1127467aaacdb5d1a8f3d92278bc4bf2e29
2026-08-14 17:32:37 +00:00