Commit Graph

774 Commits

Author SHA1 Message Date
Roy Han
2c012d44cf rebase 2026-03-25 17:32:01 -07:00
Roy Han
a779c8f4d3 fmt 2026-03-25 15:44:17 -07:00
Roy Han
fdd3eaa93d diff cleanup 2026-03-25 15:43:36 -07:00
Roy Han
e53084273d rebase 2026-03-25 15:40:25 -07:00
Roy Han
2737227745 add product client id 2026-03-25 15:32:12 -07:00
Roy Han
f0bc8dec3e consolidate thread context 2026-03-25 15:28:52 -07:00
rhan-oai
3ca5e1798f Merge branch 'rhan/oob-thread-metadata' into rhan/oob-turn-metadata 2026-03-25 15:00:32 -07:00
Roy Han
4a163ee2a9 remove turn context 2026-03-25 14:36:12 -07:00
Roy Han
edbb200358 rebase 2026-03-25 14:17:41 -07:00
Roy Han
66e28bb728 rebase on thread branch 2026-03-25 14:06:55 -07:00
Roy Han
2dc789b211 rebase cleanup after migration 2026-03-25 13:49:47 -07:00
rhan-oai
c6cc9de6e9 Merge branch 'main' into rhan/oob-thread-metadata 2026-03-25 13:39:37 -07:00
Ahmed Ibrahim
9dbe098349 Extract codex-core-skills crate (#15749)
## Summary
- move skill loading and management into codex-core-skills
- leave codex-core with the thin integration layer and shared wiring

## Testing
- CI

---------

Co-authored-by: Codex <noreply@openai.com>
2026-03-25 12:57:42 -07:00
Matthew Zeng
91337399fe [apps][tool_suggest] Remove tool_suggest's dependency on tool search. (#14856)
- [x] Remove tool_suggest's dependency on tool search.
2026-03-25 12:26:02 -07:00
Roy Han
c36438ca59 is first turn 2026-03-25 12:06:07 -07:00
Roy Han
94da6b2289 rebase 2026-03-25 11:43:43 -07:00
Roy Han
3ddd859344 Merge origin/main into rhan/oob-thread-metadata 2026-03-25 11:19:18 -07:00
Ahmed Ibrahim
d273efc0f3 Extract codex-analytics crate (#15748)
## Summary
- move the analytics events client into codex-analytics
- update codex-core and app-server callsites to use the new crate

## Testing
- CI

---------

Co-authored-by: Codex <noreply@openai.com>
2026-03-25 11:08:05 -07:00
Roy Han
5362886490 event rename and resume support 2026-03-25 10:27:05 -07:00
pakrym-oai
504aeb0e09 Use AbsolutePathBuf for cwd state (#15710)
Migrate `cwd` and related session/config state to `AbsolutePathBuf` so
downstream consumers consistently see absolute working directories.

Add test-only `.abs()` helpers for `Path`, `PathBuf`, and `TempDir`, and
update branch-local tests to use them instead of
`AbsolutePathBuf::try_from(...)`.

For the remaining TUI/app-server snapshot coverage that renders absolute
cwd values, keep the snapshots unchanged and skip the Windows-only cases
where the platform-specific absolute path layout differs.
2026-03-25 16:02:22 +00:00
Charley Cunningham
d72fa2a209 [codex] Defer fork context injection until first turn (#15699)
## Summary
- remove the fork-startup `build_initial_context` injection
- keep the reconstructed `reference_context_item` as the fork baseline
until the first real turn
- update fork-history tests and the request snapshot, and add a
`TODO(ccunningham)` for remaining nondiffable initial-context inputs

## Why
Fork startup was appending current-session initial context immediately
after reconstructing the parent rollout, then the first real turn could
emit context updates again. That duplicated model-visible context in the
child rollout.

## Impact
Forked sessions now behave like resume for context seeding: startup
reconstructs history and preserves the prior baseline, and the first
real turn handles any current-session context emission.

---------

Co-authored-by: Codex <noreply@openai.com>
2026-03-24 18:34:44 -07:00
Roy Han
d6d89e7f20 fix ownership issue 2026-03-24 18:24:26 -07:00
Ahmed Ibrahim
2e03d8b4d2 Extract rollout into its own crate (#15548) 2026-03-24 18:10:53 -07:00
Roy Han
f18e9618e8 tighten emittance logic 2026-03-24 16:32:08 -07:00
Roy Han
ca3f48b04d steer event 2026-03-24 16:20:03 -07:00
Roy Han
7141347e82 variant tightening 2026-03-24 15:58:09 -07:00
Ahmed Ibrahim
062fa7a2bb Move string truncation helpers into codex-utils-string (#15572)
- move the shared byte-based middle truncation logic from `core` into
`codex-utils-string`
- keep token-specific truncation in `codex-core` so rollout can reuse
the shared helper in the next stacked PR

---------

Co-authored-by: Codex <noreply@openai.com>
2026-03-24 15:45:40 -07:00
Roy Han
ed9e59ceb0 restructure history and source 2026-03-24 15:28:41 -07:00
Roy Han
039a64053c Revert "rebase"
This reverts commit 9ad5c1386f, reversing
changes made to 4b9e6f4383.
2026-03-24 15:21:52 -07:00
rhan-oai
66534ad1d4 Merge branch 'main' into rhan/oob-thread-metadata 2026-03-24 15:11:23 -07:00
Roy Han
92e529a8ec thread event start 2026-03-24 15:10:10 -07:00
Matthew Zeng
b32d921cd9 [plugins] Additional gating for tool suggest and apps. (#15573)
- [x] Additional gating for tool suggest and apps.
2026-03-24 15:10:00 -07:00
Roy Han
5d7f0e0c83 protocol rename 2026-03-24 14:42:53 -07:00
Roy Han
e7a4e25e83 renaming 2026-03-24 14:37:50 -07:00
Roy Han
1ab00f1609 update schema 2026-03-24 14:26:45 -07:00
Roy Han
1d4cee82bf event definitions 2026-03-24 14:04:13 -07:00
Roy Han
2865b096f6 define events and support queueing 2026-03-24 14:03:39 -07:00
Ahmed Ibrahim
0f957a93cd Move git utilities into a dedicated crate (#15564)
- create `codex-git-utils` and move the shared git helpers into it with
file moves preserved for diff readability
- move the `GitInfo` helpers out of `core` so stacked rollout work can
depend on the shared crate without carrying its own git info module

---------

Co-authored-by: Ahmed Ibrahim <219906144+aibrahim-oai@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-03-24 13:26:23 -07:00
jif-oai
773fbf56a4 feat: communication pattern v2 (#15647)
See internal communication
2026-03-24 18:45:49 +00:00
Roy Han
69a755c9f6 user message metadata 2026-03-24 11:12:37 -07:00
Ruslan Nigmatullin
daf5e584c2 core: Make FileWatcher reusable (#15093)
### Summary
Make `FileWatcher` a reusable core component which can be built upon.
Extract skills-related logic into a separate `SkillWatcher`.
Introduce a composable `ThrottledWatchReceiver` to throttle filesystem
events, coalescing affected paths among them.

### Testing
Updated existing unit tests.
2026-03-24 11:04:47 -07:00
Roy Han
d3a36cc2e6 restore reasoning prefix 2026-03-24 10:00:04 -07:00
jif-oai
38c088ba8d feat: list agents for sub-agent v2 (#15621)
Add a `list_agents` for multi-agent v2, optionally path based

This return the task and status of each agent in the matched path
2026-03-24 11:24:08 +00:00
Roy Han
852cf6a2a5 turn level metadata 2026-03-23 18:46:43 -07:00
Dylan Hurd
67c1c7c054 chore(core) Add approvals reviewer to UserTurn (#15426)
## Summary
Adds support for approvals_reviewer to `Op::UserTurn` so we can migrate
`[CodexMessageProcessor::turn_start]` to use Op::UserTurn

## Testing
- [x] Adds quick test for the new field

Co-authored-by: Codex <noreply@openai.com>
2026-03-23 15:19:01 -07:00
jif-oai
18f1a08bc9 feat: new op type for sub-agents communication (#15556)
Add `InterAgentCommunication` for v2 agent communication
2026-03-23 21:09:00 +00:00
jif-oai
37ac0c093c feat: structured multi-agent output (#15515)
Send input now sends messages as assistant message and with this format:

```
author: /root/worker_a
recipient: /root/worker_a/tester
other_recipients: []
Content: bla bla bla. Actual content. Only text for now
```
2026-03-23 18:53:54 +00:00
Charley Cunningham
e838645fa2 tui: queue follow-ups during manual /compact (#15259)
## Summary
- queue input after the user submits `/compact` until that manual
compact turn ends
- mirror the same behavior in the app-server TUI
- add regressions for input queued before compact starts and while it is
running

Co-authored-by: Codex <noreply@openai.com>
2026-03-23 10:19:44 -07:00
Dylan Hurd
0d9bb8ea58 chore(context) Include guardian approval context (#15366)
## Summary
Include the guardian context in the developer message for approvals

## Testing
- [x] Updated unit tests
2026-03-21 16:31:22 +00:00
Matthew Zeng
06e06ab173 [plugins] Fix plugin explicit mention context management. (#15372)
- [x] Fix plugin explicit mention context management.
2026-03-21 00:29:29 -07:00