Class InstallationConfirmationContext

java.lang.Object
com.github.copilot.rpc.InstallationConfirmationContext

@CopilotExperimental public final class InstallationConfirmationContext extends Object
Cancellation signal for one installation confirmation request.

This signal retires the human review. It does not cancel outbound installation or OAuth RPCs.

Since:
1.0.0
  • Constructor Details

    • InstallationConfirmationContext

      public InstallationConfirmationContext(CompletableFuture<Void> cancelled)
      Creates an installation confirmation context.
      Parameters:
      cancelled - completed when the runtime cancels this review or the original connection closes
  • Method Details

    • getCancelled

      public CompletableFuture<Void> getCancelled()
      Gets the cancellation signal for this review.

      This future completes when the runtime retires this review request, including through JSON-RPC $/cancelRequest, runtime-enforced expiry, or loss of the original connection.

      Completing the returned future does not affect SDK state.

      Returns:
      the cancellation signal