Add Rust managed settings client wrapper#1987
Draft
jbrown1618 wants to merge 1 commit into
Draft
Conversation
Expose a top-level Rust Client::read_managed_settings helper for the server-scoped managedSettings.read RPC and preserve the runtime-owned payload as opaque JSON. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 115e51b8-7534-42e6-956b-aa212c360ddc
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Client::read_managed_settings()as a top-level Rust SDK helper for the server-scopedmanagedSettings.readJSON-RPC method.ManagedSettingsJSON result type so the SDK preserves the runtime-owned canonical payload without reinterpreting policy.managedSettings.readwith no session ID before anysession.createcall.Dependency
This draft depends on the companion
github/copilot-agent-runtimedraft PR that exposes the server-scopedmanagedSettings.readmethod. The generated RPC schema in this repo does not yet include that method, so this PR adds the Rust top-level wrapper directly rather than hand-editing generated RPC output.github/copilot-hostwill consume this Rust SDK wrapper to include managed settings during environment registration.Validation
rustfmtdirect check usingnightly-2026-04-14rustfmt on changed Rust filescargo test --test managed_settings_testwith Rust 1.94.0cargo clippy --all-features --all-targets -- -D warningswith Rust 1.94.0Limit:
cargo test --all-featureswas attempted but stopped after several minutes because it appeared stuck downloading the bundled runtime package (@github/copilot-darwin-arm64).