[app-server] expose environment info RPC#30291
Merged
Merged
Conversation
6d78bae to
ff7bcee
Compare
2578fa3 to
ffffd10
Compare
ffffd10 to
2264309
Compare
bolinfest
approved these changes
Jun 27, 2026
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.
Why
App-server clients that configure named execution environments need to discover an environment's shell and working directory before selecting it for a thread or turn. Because the environment can run on a different operating system than app-server, its working directory is represented as a canonical
file:URI rather than a host-local path string. The probe also needs a bounded response time: an exec-server that completes initialization but never answersenvironment/infomust not hold the environment serialization queue indefinitely.What changed
environment/infoapp-server RPC for named environments.PathUri.Protocol examples
Request:
{ "id": 42, "method": "environment/info", "params": { "environmentId": "remote-a" } }Successful response:
{ "id": 42, "result": { "shell": { "name": "zsh", "path": "/bin/zsh" }, "cwd": "file:///workspace" } }If the exec-server initializes but does not answer the probe within 30 seconds:
{ "id": 42, "error": { "code": -32603, "message": "failed to get info for environment `remote-a`: exec-server protocol error: timed out waiting for exec-server `environment/info` response after 30s" } }Testing
cwd), unknown environments, and connection failures.