Expose environment status through app-server (#32920)

## What changed

- Add the experimental `environment/status` request for inspecting a configured environment without starting or reconnecting it.
- Report `ready`, `pending`, `disconnected`, or `unknown`, including error details for disconnected and unknown environments.
- Probe ready remote environments over their existing exec-server connection.

## Testing

- Add an app-server integration test covering local and remote ready, pending, disconnected, and unknown environments.

GitOrigin-RevId: 397bba603aa9e0b59008ee6cb7cbde46e357652c
This commit is contained in:
Adam Perry @ OpenAI
2026-07-14 01:49:16 +00:00
committed by copyberry
parent 80c6cd3014
commit f96cf4d1c3
10 changed files with 301 additions and 13 deletions
@@ -956,6 +956,13 @@ client_request_definitions! {
serialization: global_shared_read("environment"),
response: v2::EnvironmentInfoResponse,
},
#[experimental("environment/status")]
/// Reads the current status of a configured execution environment.
EnvironmentStatus => "environment/status" {
params: v2::EnvironmentStatusParams,
serialization: global_shared_read("environment"),
response: v2::EnvironmentStatusResponse,
},
McpServerOauthLogin => "mcpServer/oauth/login" {
params: v2::McpServerOauthLoginParams,