Repository navigation
Gate stable environment tool exposure behind a feature flag - #50962
Merged
copyberry[bot] merged 1 commit intoOct 4, 2026
Conversation
## What changed Add the default-off `stable_environment_tools` feature flag. When enabled, advertise environment-backed tools before an executor is ready, keep environment selectors stable as readiness changes, and include the `shell` and `login` parameters. Execution still requires a usable environment and its policy. When disabled, expose environment-backed tools only when a usable environment exists, derive selectors from usable environments, and condition shell parameters on the execution configuration. Restore tool-specific unavailable-environment errors and skip the environment readiness check for `write_stdin`. ## Testing Parameterize the empty-environment tool availability test for both flag states, check that commands require a ready transport by default, and explicitly opt tests that rely on stable tool exposure into the feature. GitOrigin-RevId: 68c6240fb3adf85d7f9b407804d4823c515abfdc
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/68c6240fb3adf85d7f9b407804d4823c515abfdc
branch
from
October 4, 2026 21:08
89edefe to
335c7f8
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/68c6240fb3adf85d7f9b407804d4823c515abfdc
branch
October 4, 2026 21:08
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gate stable environment tool exposure behind a feature flag
What changed
Add the default-off
stable_environment_toolsfeature flag. When enabled, advertise environment-backed tools before an executor is ready, keep environment selectors stable as readiness changes, and include theshellandloginparameters. Execution still requires a usable environment and its policy.When disabled, expose environment-backed tools only when a usable environment exists, derive selectors from usable environments, and condition shell parameters on the execution configuration. Restore tool-specific unavailable-environment errors and skip the environment readiness check for
write_stdin.Testing
Parameterize the empty-environment tool availability test for both flag states, check that commands require a ready transport by default, and explicitly opt tests that rely on stable tool exposure into the feature.