Skip to content

Expose agent tree IDs and environment removal - #60190

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/43944ed6766374508d9862cd5d333bc4cb67c338
Nov 8, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/43944ed6766374508d9862cd5d333bc4cb67c338

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Expose agent tree IDs and environment removal

What changed

  • Add CodexThread::agent_tree_id() to identify a loaded agent tree. The root and native children share an ID; loading a new tree produces a new ID even when reusing a persisted thread ID.
  • Add EnvironmentManager::remove_environment() to unregister an environment while preserving existing handles and the default environment ID.

Testing

Extend tests to check tree IDs across child creation, forks, warm reuse, and cold reloads, and to verify environment removal and re-registration.

## What changed

- Add `CodexThread::agent_tree_id()` to identify a loaded agent tree. The root and native children share an ID; loading a new tree produces a new ID even when reusing a persisted thread ID.
- Add `EnvironmentManager::remove_environment()` to unregister an environment while preserving existing handles and the default environment ID.

## Testing

Extend tests to check tree IDs across child creation, forks, warm reuse, and cold reloads, and to verify environment removal and re-registration.

GitOrigin-RevId: 43944ed6766374508d9862cd5d333bc4cb67c338
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/43944ed6766374508d9862cd5d333bc4cb67c338 branch from f7f2609 to c9b4267 Compare November 8, 2026 02:28
@copyberry
copyberry Bot merged commit c9b4267 into main Nov 8, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-08T02:28:13.309923Z f7f2609 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/43944ed6766374508d9862cd5d333bc4cb67c338 branch November 8, 2026 02:28
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 8, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — c9b4267c Deployed Nov 8, 2026 by dprada via Identify potential duplicates (open issues fallback) #62166
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.