Commit Graph
5765 Commits
Author SHA1 Message Date
rhan-oai c852a44669 [codex-analytics] ingest server requests and responses 2026-04-08 21:03:27 -07:00
rhan-oai a32a594c40 Merge 9ba89ef172 into sapling-pr-archive-rhan-oai 2026-04-08 20:57:02 -07:00
rhan-oai 9ba89ef172 [codex-analytics] emit basic tool events from item lifecycle 2026-04-08 20:56:26 -07:00
rhan-oai 19ea581ec8 merge commit for archive created by Sapling 2026-04-08 20:30:58 -07:00
rhan-oai b44084010d [codex-analytics] add tool call event schema 2026-04-08 20:29:30 -07:00
rhan-oai 6502f7b675 [codex-analytics] emit basic tool events from item lifecycle 2026-04-08 20:29:30 -07:00
Ahmed Ibrahim 2f9090be62 Add realtime voice selection (#17176)
- Add realtime voice selection for realtime/start.
- Expose the supported v1/v2 voice lists and cover explicit, configured,
default, and invalid voice paths.
2026-04-08 20:19:15 -07:00
Ahmed IbrahimandCodex 4c2a1ae31b Move default realtime prompt into core (#17165)
- Adds a core-owned realtime backend prompt template and preparation
path.
- Makes omitted realtime start prompts use the core default, while null
or empty prompts intentionally send empty instructions.
- Covers the core realtime path and app-server v2 path with integration
coverage.

---------

Co-authored-by: Codex <noreply@openai.com>
2026-04-08 19:34:40 -07:00
Eric Traut 36586eafed Fix stale thread-name resume lookups (#16646)
Addresses #15943

Problem: Name-based resume could stop on a newer session_index entry
whose rollout was never persisted, shadowing an older saved thread with
the same name.

Solution: Materialize rollouts before indexing thread names and make
name lookup skip unresolved entries until it finds a persisted rollout.
2026-04-08 18:51:29 -07:00
Eric Traut 4dca906e19 Support Warp for OSC 9 notifications (#17174)
Problem: Warp supports OSC 9 notifications, but the TUI's automatic
notification backend selection did not recognize its
`TERM_PROGRAM=WarpTerminal` environment value.

Solution: Treat `TERM_PROGRAM=WarpTerminal` as OSC 9-capable when
choosing the TUI desktop notification backend.
2026-04-08 18:49:31 -07:00
Ahmed Ibrahim 22d07e7f8f Add WebRTC realtime app-server e2e tests (#17093)
Summary:
- add app-server WebRTC realtime e2e harness
- cover v1 handoff and v2 codex tool delegation over sideband

Validation:
- just fmt
- git diff --check
- local tests not run; relying on PR CI
2026-04-08 18:38:21 -07:00
rhan-oai 2608e0122c merge commit for archive created by Sapling 2026-04-08 17:48:00 -07:00
rhan-oai 8580aad022 [codex-analytics] emit basic tool events from item lifecycle 2026-04-08 17:47:23 -07:00
rhan-oai 02cb122f66 merge commit for archive created by Sapling 2026-04-08 17:11:37 -07:00
rhan-oai 0b764282f5 [codex-analytics] ingest server requests and responses 2026-04-08 17:10:30 -07:00
rhan-oai e75ab093ac [codex-analytics] add tool call event schema 2026-04-08 17:10:30 -07:00
rhan-oai ebc5430333 [codex-analytics] emit basic tool events from item lifecycle 2026-04-08 17:10:30 -07:00
Leo ShimonakaandCodex 01537f0bd2 Auto-approve MCP server elicitations in Full Access mode (#17164)
Currently, when a MCP server sends an elicitation to Codex running in
Full Access (`sandbox_policy: DangerFullAccess` + `approval_policy:
Never`), the elicitations are auto-cancelled.

This PR updates the automatic handling of MCP elicitations to be
consistent with other approvals in full-access, where they are
auto-approved. Because MCP elicitations may actually require user input,
this mechanism is limited to empty form elicitations.

## Changeset
- Add policy helper shared with existing MCP tool call approval
auto-approve
- Update `ElicitationRequestManager` to auto-approve elicitations in
full access when `can_auto_accept_elicitation` is true.
- Add tests

Co-authored-by: Codex <noreply@openai.com>
2026-04-08 16:41:02 -07:00
maja-openaiandOwen Lin dcbc91fd39 Update guardian output schema (#17061)
## Summary
- Update guardian output schema to separate risk, authorization,
outcome, and rationale.
- Feed guardian rationale into rejection messages.
- Split the guardian policy into template and tenant-config sections.

## Validation
- `cargo test -p codex-core mcp_tool_call`
- `env -u CODEX_SANDBOX_NETWORK_DISABLED INSTA_UPDATE=always cargo test
-p codex-core guardian::`

---------

Co-authored-by: Owen Lin <owen@openai.com>
2026-04-08 15:47:29 -07:00
starr-openaiandCodex 49677ec71f Add top-level exec-server subcommand (#17162)
## Summary
- add a top-level `codex exec-server` subcommand, marked experimental in
CLI help
- launch an adjacent or PATH-provided `codex-exec-server`, with a
source-tree `cargo run -p codex-exec-server --` fallback
- cover the new subcommand parser path

## Validation
- `just fmt`
- `git diff --check`
- not run: Rust test suite

Co-authored-by: Codex <noreply@openai.com>

---------

Co-authored-by: Codex <noreply@openai.com>
2026-04-08 15:38:07 -07:00
Ahmed Ibrahim 794a0240f9 Attach WebRTC realtime starts to sideband websocket (#17057)
Summary:
- parse the realtime call Location header and join that call over the
direct realtime WebSocket
- keep WebRTC starts alive on the existing realtime conversation path

Validation:
- just fmt
- git diff --check
- cargo check -p codex-api
- cargo check -p codex-core --tests
- local cargo tests not run; relying on PR CI
2026-04-08 15:25:42 -07:00
Ahmed IbrahimandCodex 19bd018300 Wire realtime WebRTC native media into Bazel (#17145)
- Builds codex-realtime-webrtc through the normal Bazel Rust macro so
native macOS WebRTC sources are included.\n- Shares the macOS -ObjC link
flag with Bazel targets that can link libwebrtc.

---------

Co-authored-by: Codex <noreply@openai.com>
2026-04-08 15:15:55 -07:00
rhan-oai 68bbb698b9 merge commit for archive created by Sapling 2026-04-08 14:25:24 -07:00
rhan-oai 1e42a41242 [codex-analytics] emit basic tool events from item lifecycle 2026-04-08 14:20:15 -07:00
rhan-oai 6ac57418f4 [codex-analytics] add tool call event schema 2026-04-08 14:20:15 -07:00
rhan-oai 7225f71d9d [codex-analytics] ingest server requests and responses 2026-04-08 14:20:15 -07:00
Won Park 56dfe41605 Fix ToolsConfigParams initializer in tool registry test (#17154)
## Summary
- add the missing `image_generation_tool_auth_allowed` field to the new
tool registry plan test initializer

## Validation
- `just fmt`
- `cargo test -p codex-tools image_generation`
- `cargo test -p codex-tools --no-run`
2026-04-08 14:05:24 -07:00
canvrno-oai 58ad79b60e Fix missing fields (#17149)
Fix missing `image_generation_tool_auth_allowed` in two locations.
2026-04-08 13:53:53 -07:00
rhan-oai 5cbe45037e merge commit for archive created by Sapling 2026-04-08 13:49:45 -07:00
rhan-oai d3469449d7 [codex-analytics] emit basic tool events from item lifecycle 2026-04-08 13:48:57 -07:00
rhan-oai 1c3242cdac [codex-analytics] add tool call event schema 2026-04-08 13:48:57 -07:00
rhan-oai 7f2b367732 [codex-analytics] ingest server requests and responses 2026-04-08 13:48:57 -07:00
rhan-oai c06c616805 merge commit for archive created by Sapling 2026-04-08 13:43:39 -07:00
rhan-oai 6e25102140 merge commit for archive created by Sapling 2026-04-08 13:43:16 -07:00
rhan-oai 25fa592ae7 [codex-analytics] emit basic tool events from item lifecycle 2026-04-08 13:41:54 -07:00
rhan-oai c7085f562e [codex-analytics] add tool call event schema 2026-04-08 13:41:54 -07:00
rhan-oai fef43c065e [codex-analytics] ingest server requests and responses 2026-04-08 13:41:54 -07:00
rhan-oai 9ca7a71d05 [codex-analytics] add compaction analytics event 2026-04-08 13:10:14 -07:00
pakrym-oai e4d6702b87 [codex] Support remote exec cwd in TUI startup (#17142)
When running with remote executor the cwd is the remote path. Today we
check for existence of a local directory on startup and attempt to load
config from it.

For remote executors don't do that.
2026-04-08 13:09:28 -07:00
rhan-oai 6a8111f9b9 merge commit for archive created by Sapling 2026-04-08 12:38:49 -07:00
rhan-oai 23e2a64d57 [codex-analytics] emit basic tool events from item lifecycle 2026-04-08 12:38:02 -07:00
rhan-oai 67bb15e2f8 [codex-analytics] add tool call event schema 2026-04-08 12:38:02 -07:00
rhan-oai 421fa0c156 [codex-analytics] ingest server requests and responses 2026-04-08 12:38:02 -07:00
starr-openaiandCodex f383cc980d Add sandbox support to filesystem APIs (#16751)
## Summary
- add optional `sandboxPolicy` support to the app-server filesystem
request surface
- thread sandbox-aware filesystem options through app-server and
exec-server adapters
- enforce sandboxed read/write access in the filesystem abstraction with
focused local and remote coverage

## Validation
- `cargo test -p codex-app-server-protocol`
- `cargo test -p codex-exec-server file_system`
- `cargo test -p codex-app-server suite::v2::fs`

---------

Co-authored-by: Codex <noreply@openai.com>
2026-04-08 12:10:48 -07:00
rhan-oai a465a21ebf Merge 5d0c941b71 into sapling-pr-archive-rhan-oai 2026-04-08 11:58:05 -07:00
rhan-oai 5d0c941b71 [codex-analytics] emit basic tool events from item lifecycle 2026-04-08 11:56:17 -07:00
rhan-oai ca1a5ebb6d [codex-analytics] add tool call event schema 2026-04-08 11:56:17 -07:00
rhan-oai b125d6ef9c [codex-analytics] ingest server requests and responses 2026-04-08 11:56:17 -07:00
Won Park e003f84e1e release ready, enabling only for siwc users (#17046)
**Disabling Image-Gen for Non-SIWC Codex Users**

We are only enabling image-gen feature for SIWC Codex users until there
comes a fix in ResponsesAPI to omit output from responses.completed, to
prevent the following issues:

1. websocket blows up due to heavier load (images) than before (text) 
2. http parser streams through n^2 of n-base64 bytes (sum of base64s of
all images generated in turn) that causes long delays in
turn_completion.
2026-04-08 11:22:39 -07:00
Owen Lin e794457a59 fix(debug-config, guardian): fix /debug-config rendering and guardian… (#17138)
## Description

This PR fixes `/debug-config` so it shows more of the active
requirements state, including reviewer requirements and managed feature
pins. This made it clear that legacy MDM config was setting
`approvals_reviewer = "guardian_subagent"` and that we were translating
that into a requirements constraint.

Also, translate `approvals_reviewer = "guardian_subagent"` (from legacy
managed_config.toml) to `allowed_approvals_reviewers: guardian_subagent,
user` instead of `allowed_approvals_reviewers: guardian_subagent`.

Example `/debug-config`:
```
Config layer stack (lowest precedence first):
  1. system (/etc/codex/config.toml) (enabled)
  2. user (/Users/owen/.codex/config.toml) (enabled)
  3. project (/Users/owen/repos/codex/.codex/config.toml) (enabled)
  4. legacy managed_config.toml (MDM) (enabled)
     MDM value:
       ...

       # Enable Guardian Mode
       features.guardian_approval = true
       approvals_reviewer = "guardian_subagent"

Requirements:
  - allowed_approvals_reviewers: guardian_subagent, user (source: MDM managed_config.toml (legacy))
  - features: apps=true, plugins=true (source: cloud requirements)
```

Before this PR, the `Requirements` section showed None.
2026-04-08 11:08:09 -07:00