Skip to content

Add an agent extension runner - #33076

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ffb805efabadf758969d6611a6867db6fa9f059a
Jul 14, 2026
Merged

Add an agent extension runner#33076
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ffb805efabadf758969d6611a6867db6fa9f059a

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 14, 2026

Copy link
Copy Markdown

Add an agent extension runner

What changed

  • Add codex-agent-extension with an AgentRunner that starts a resolved agent prompt in a thread forked from its parent.
  • Propagate the invocation's trace context, select the configured execution environments, submit the initial prompt, and return the spawned thread and turn identifiers.
  • Reject empty agent prompts and report when the owning thread manager is no longer available.

Testing

  • Add an integration test that verifies the agent runs in a forked thread, returns the started turn identifier, completes the turn, and sends the resolved prompt to the model.

## What changed

- Add `codex-agent-extension` with an `AgentRunner` that starts a resolved agent prompt in a thread forked from its parent.
- Propagate the invocation's trace context, select the configured execution environments, submit the initial prompt, and return the spawned thread and turn identifiers.
- Reject empty agent prompts and report when the owning thread manager is no longer available.

## Testing

- Add an integration test that verifies the agent runs in a forked thread, returns the started turn identifier, completes the turn, and sends the resolved prompt to the model.

GitOrigin-RevId: ffb805efabadf758969d6611a6867db6fa9f059a
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/ffb805efabadf758969d6611a6867db6fa9f059a branch from 2c9c652 to 6629e08 Compare July 14, 2026 14:42
@copyberry
copyberry Bot merged commit 6629e08 into main Jul 14, 2026
12 of 30 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/ffb805efabadf758969d6611a6867db6fa9f059a branch July 14, 2026 14:43
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.