Class SessionSandboxApi
java.lang.Object
com.github.copilot.generated.rpc.SessionSandboxApi
API methods for the
sandbox namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionDisables sandboxing for the remainder of the current session and approves the referenced pending sandbox-bypass permission request.Returns whether managed policy requires sandbox enforcement and whether an enforcement failure has permanently blocked the session.Adds the path offered by a pending sandbox escalation permission request's sandboxPathGrant to the session's sandbox policy and approves the request, so the blocked operation re-runs inside the sandbox rather than outside it.
-
Method Details
-
getEnforcementStatus
@CopilotExperimental public CompletableFuture<SessionSandboxGetEnforcementStatusResult> getEnforcementStatus()Returns whether managed policy requires sandbox enforcement and whether an enforcement failure has permanently blocked the session.- Since:
- 1.0.0
-
disableForSession
@CopilotExperimental public CompletableFuture<SessionSandboxDisableForSessionResult> disableForSession(SessionSandboxDisableForSessionParams params) Disables sandboxing for the remainder of the current session and approves the referenced pending sandbox-bypass permission request. The request is rejected unless the exact request is still pending and the effective sandbox policy permits bypass.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
grantPathForRequest
@CopilotExperimental public CompletableFuture<SessionSandboxGrantPathForRequestResult> grantPathForRequest(SessionSandboxGrantPathForRequestParams params) Adds the path offered by a pending sandbox escalation permission request's sandboxPathGrant to the session's sandbox policy and approves the request, so the blocked operation re-runs inside the sandbox rather than outside it. The request is rejected unless the exact request is still pending, carries a sandboxPathGrant, and the grant still takes effect under the current managed policy. Does not persist the path; hosts that store sandbox settings save it themselves.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-