Commit Graph
5153 Commits
Author SHA1 Message Date
rhan-oai 9934b1cb6b Merge 0c1d75ce3b into sapling-pr-archive-rhan-oai 2026-04-04 16:15:44 -07:00
rhan-oai 0c1d75ce3b [codex-analytics] add steering metadata 2026-04-04 16:13:25 -07:00
rhan-oai eb1c895336 [codex-analytics] add queued submission metadata 2026-04-04 16:13:25 -07:00
rhan-oai 6197512200 [codex-analytics] add token usage metadata 2026-04-04 16:13:25 -07:00
rhan-oai 60014ca992 [codex-analytics] feature plumbing and emittance 2026-04-04 16:13:25 -07:00
rhan-oai 466fcf6e49 [codex-analytics] add protocol-native turn timestamps 2026-04-04 16:13:25 -07:00
rhan-oai 21ac104fa7 merge commit for archive created by Sapling 2026-04-04 16:11:36 -07:00
rhan-oai ee523a3857 [codex-analytics] add steering metadata 2026-04-04 16:07:09 -07:00
rhan-oai cfa70f060e [codex-analytics] add queued submission metadata 2026-04-04 16:05:47 -07:00
rhan-oai 9461957686 [codex-analytics] add token usage metadata 2026-04-04 16:04:28 -07:00
rhan-oai ca49436930 [codex-analytics] feature plumbing and emittance 2026-04-04 16:04:27 -07:00
rhan-oai 7c482f2179 [codex-analytics] add protocol-native turn timestamps 2026-04-04 16:02:19 -07:00
rhan-oai 7144528ec6 Merge 98c5dd3010 into sapling-pr-archive-rhan-oai 2026-04-04 15:54:53 -07:00
rhan-oai 98c5dd3010 [codex-analytics] add steering metadata 2026-04-04 15:53:13 -07:00
rhan-oai b50e2b9844 [codex-analytics] add queued submission metadata 2026-04-04 15:53:13 -07:00
rhan-oai c6da10659c [codex-analytics] add token usage metadata 2026-04-04 15:53:13 -07:00
rhan-oai d7dadd4e6f [codex-analytics] feature plumbing and emittance 2026-04-04 15:53:13 -07:00
rhan-oai ce52384691 [codex-analytics] add protocol-native turn timestamps 2026-04-04 15:53:13 -07:00
rhan-oai 20819dc0c7 merge commit for archive created by Sapling 2026-04-04 15:43:32 -07:00
rhan-oai f80f096edb [codex-analytics] add steering metadata 2026-04-04 11:39:16 -07:00
rhan-oai 24ded922f5 [codex-analytics] add queued submission metadata 2026-04-04 11:39:16 -07:00
rhan-oai 7d63da2c64 [codex-analytics] add token usage metadata 2026-04-04 11:39:16 -07:00
rhan-oai 5603659dbd [codex-analytics] feature plumbing and emittance 2026-04-04 11:39:16 -07:00
rhan-oai d0b66a403a [codex-analytics] add protocol-native turn timestamps 2026-04-04 11:39:15 -07:00
4fd5c35c4f [codex-analytics] subagent analytics (#15915)
- creates custom event that emits subagent thread analytics from core
- wires client metadata (`product_client_id, client_name,
client_version`), through from app-server
- creates `created_at `timestamp in core
- subagent analytics are behind `FeatureFlag::GeneralAnalytics`

PR stack
- [[telemetry] thread events
#15690](https://github.com/openai/codex/pull/15690)
- --> [[telemetry] subagent events
#15915](https://github.com/openai/codex/pull/15915)
- [[telemetry] turn events
#15591](https://github.com/openai/codex/pull/15591)
- [[telemetry] steer events
#15697](https://github.com/openai/codex/pull/15697)
- [[telemetry] queued prompt data
#15804](https://github.com/openai/codex/pull/15804)

Notes:
- core does not spawn a subagent thread for compact, but represented in
mapping for consistency

`INFO | 2026-04-01 13:08:12 | codex_backend.routers.analytics_events |
analytics_events.track_analytics_events:399 | Tracked
codex_thread_initialized event params={'thread_id':
'019d4aa9-233b-70f2-a958-c3dbae1e30fa', 'product_surface': 'codex',
'app_server_client': {'product_client_id': 'CODEX_CLI', 'client_name':
'codex-tui', 'client_version': '0.0.0', 'rpc_transport': 'in_process',
'experimental_api_enabled': None}, 'runtime': {'codex_rs_version':
'0.0.0', 'runtime_os': 'macos', 'runtime_os_version': '26.4.0',
'runtime_arch': 'aarch64'}, 'model': 'gpt-5.3-codex', 'ephemeral':
False, 'initialization_mode': 'new', 'created_at': 1775074091,
'thread_source': 'subagent', 'subagent_source': 'thread_spawn',
'parent_thread_id': '019d4aa8-51ec-77e3-bafb-2c1b8e29e385'} | `

`INFO | 2026-04-01 13:08:41 | codex_backend.routers.analytics_events |
analytics_events.track_analytics_events:399 | Tracked
codex_thread_initialized event params={'thread_id':
'019d4aa9-94e3-75f1-8864-ff8ad0e55e1e', 'product_surface': 'codex',
'app_server_client': {'product_client_id': 'CODEX_CLI', 'client_name':
'codex-tui', 'client_version': '0.0.0', 'rpc_transport': 'in_process',
'experimental_api_enabled': None}, 'runtime': {'codex_rs_version':
'0.0.0', 'runtime_os': 'macos', 'runtime_os_version': '26.4.0',
'runtime_arch': 'aarch64'}, 'model': 'gpt-5.3-codex', 'ephemeral':
False, 'initialization_mode': 'new', 'created_at': 1775074120,
'thread_source': 'subagent', 'subagent_source': 'review',
'parent_thread_id': None} | `

---------

Co-authored-by: jif-oai <jif@openai.com>
Co-authored-by: Michael Bolin <mbolin@openai.com>
2026-04-04 11:06:43 -07:00
rhan-oai c655e205cd merge commit for archive created by Sapling 2026-04-04 10:00:38 -07:00
rhan-oai 2238d006d7 [codex-analytics] add steering metadata 2026-04-04 09:59:27 -07:00
rhan-oai 7039a97208 [codex-analytics] add queued submission metadata 2026-04-04 09:59:27 -07:00
rhan-oai 9f40c2751f [codex-analytics] add token usage metadata 2026-04-04 09:59:27 -07:00
rhan-oai 830f8efa5f [codex-analytics] feature plumbing and emittance 2026-04-04 09:59:24 -07:00
rhan-oai 06a062d6e2 merge commit for archive created by Sapling 2026-04-04 09:55:00 -07:00
rhan-oai 128930a1d6 [codex-analytics] add steering metadata 2026-04-04 09:54:41 -07:00
rhan-oai faaf46a071 [codex-analytics] add queued submission metadata 2026-04-04 09:54:41 -07:00
rhan-oai 0e0fbc3c29 [codex-analytics] add token usage metadata 2026-04-04 09:54:41 -07:00
rhan-oai 09129d4b85 [codex-analytics] feature plumbing and emittance 2026-04-04 09:54:41 -07:00
rhan-oai b7cbb2ac9a merge commit for archive created by Sapling 2026-04-04 09:50:40 -07:00
Andrey Mishchenko cca36c5681 Add CODEX_SKIP_VENDORED_BWRAP (#16763)
For building on Linux without bubblewrap.
2026-04-03 20:24:49 -10:00
Thibault Sottiaux 9e19004bc2 [codex] add context-window lineage headers (#16758)
This change adds client-owned context-window and parent thread id
headers to all requests to responses api.
2026-04-04 05:54:31 +00:00
Michael Bolin 39097ab65d ci: align Bazel repo cache and Windows clippy target handling (#16740)
## Why

Bazel CI had two independent Windows issues:

- The workflow saved/restored `~/.cache/bazel-repo-cache`, but
`.bazelrc` configured `common:ci-windows
--repository_cache=D:/a/.cache/bazel-repo-cache`, so `actions/cache` and
Bazel could point at different directories.
- The Windows `Bazel clippy` job passed the full explicit target list
from `//codex-rs/...`, but some of those explicit targets are
intentionally incompatible with `//:local_windows`.
`run-argument-comment-lint-bazel.sh` already handles that with
`--skip_incompatible_explicit_targets`; the clippy workflow path did
not.

I also tried switching the workflow cache path to
`D:\a\.cache\bazel-repo-cache`, but the Windows clippy job repeatedly
failed with `Failed to restore: Cache service responded with 400`, so
the final change standardizes on `$HOME/.cache/bazel-repo-cache` and
makes cache restore non-fatal.

## What Changed

- Expose one repository-cache path from
`.github/actions/setup-bazel-ci/action.yml` and export that path as
`BAZEL_REPOSITORY_CACHE` so `run-bazel-ci.sh` passes it to Bazel after
`--config=ci-*`.
- Move `actions/cache/restore` out of the composite action into
`.github/workflows/bazel.yml`, and make restore failures non-fatal
there.
- Save exactly the exported cache path in `.github/workflows/bazel.yml`.
- Remove `common:ci-windows
--repository_cache=D:/a/.cache/bazel-repo-cache` from `.bazelrc` so the
Windows CI config no longer disagrees with the workflow cache path.
- Pass `--skip_incompatible_explicit_targets` in the Windows `Bazel
clippy` job so incompatible explicit targets do not fail analysis while
the lint aspect still traverses compatible Rust dependencies.

## Verification

- Parsed `.github/actions/setup-bazel-ci/action.yml` and
`.github/workflows/bazel.yml` with Ruby's YAML loader.
- Resubmitted PR `#16740`; CI is rerunning on the amended commit.
2026-04-03 20:18:33 -07:00
Michael Bolin 3a22e10172 test: avoid PowerShell startup in Windows auth fixture (#16737)
## Why

`provider_auth_command_supplies_bearer_token` and
`provider_auth_command_refreshes_after_401` were still flaky under
Windows Bazel because the generated fixture used `powershell.exe`, whose
startup can be slow enough to trip the provider-auth timeout in CI.

## What

Replace the generated Windows auth fixture script in
`codex-rs/core/tests/suite/client.rs` with a small `.cmd` script
executed by `cmd.exe /D /Q /C`, and advance `tokens.txt` one line at a
time so the refresh-after-401 test still gets the second token on the
second invocation.

Also align the fixture timeout with the provider-auth default (`5_000`
ms) to avoid introducing a test-only timing budget that is stricter than
production behavior.

## Testing

Left to CI, specifically the Windows Bazel
`//codex-rs/core:core-all-test` coverage for the two provider-auth
command tests.
2026-04-03 20:05:39 -07:00
Michael Bolin c9e706f8b6 Back out "bazel: lint rust_test targets in clippy workflow (#16450)" (#16757)
This backs out https://github.com/openai/codex/pull/16450 because it was
not good to go yet.
2026-04-03 20:01:26 -07:00
Ahmed Ibrahim 8a19dbb177 Add spawn context for MultiAgentV2 children (#16746) 2026-04-03 19:56:59 -07:00
Thibault Sottiaux 6edb865cc6 [codex] add responses proxy JSON dumps (#16753)
This makes Responses API proxy request/response dumping first-class by
adding an optional `--dump-dir` flag that emits paired JSON files with
shared sequence/timestamp prefixes, captures full request and response
headers and records parsed JSON bodies.
2026-04-03 16:51:18 -10:00
Ahmed IbrahimandCodex 13d828d236 Use Node 24 for npm publish (#16755)
Avoid self-upgrading the runner's bundled npm in release publishing;
Node 24 already provides an npm CLI that supports trusted publishing.

Co-authored-by: Codex <noreply@openai.com>
2026-04-03 19:26:41 -07:00
rhan-oai 8e7d02ff1b [codex-analytics] add steering metadata 2026-04-03 18:42:06 -07:00
rhan-oai 62c424f017 [codex-analytics] add queued submission metadata 2026-04-03 18:42:06 -07:00
rhan-oai aa37e4f154 [codex-analytics] add token usage metadata 2026-04-03 18:42:06 -07:00
rhan-oai a80ff24a2c [codex-analytics] feature plumbing and emittance 2026-04-03 18:42:05 -07:00
Ahmed IbrahimandCodex e4f1b3a65e Preempt mailbox mail after reasoning/commentary items (#16725)
Send pending mailbox mail after completed reasoning or commentary items
so follow-up requests can pick it up mid-turn.

---------

Co-authored-by: Codex <noreply@openai.com>
2026-04-03 18:29:05 -07:00
Thibault Sottiaux 91ca49e53c [codex] allow disabling environment context injection (#16745)
This adds an `include_environment_context` config/profile flag that
defaults on, and guards both initial injection and later environment
updates to allow skipping injection of `<environment_context>`.
2026-04-03 18:06:52 -07:00