mirror of
https://github.com/openai/codex.git
synced 2026-11-08 20:40:33 +00:00
## 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