MCPcopy Index your code
hub / github.com/github/copilot-sdk / registerPermissionHandler

Method registerPermissionHandler

nodejs/src/session.ts:1106–1108  ·  view source on GitHub ↗

* Registers a handler for permission requests. * * When the assistant needs permission to perform certain actions (e.g., file operations), * this handler is called to approve or deny the request. * * @param handler - The permission handler function, or undefined to remove th

(handler?: PermissionHandler)

Source from the content-addressed store, hash-verified

1104 * @internal This method is typically called internally when creating a session.
1105 */
1106 registerPermissionHandler(handler?: PermissionHandler): void {
1107 this.permissionHandler = handler;
1108 }
1109
1110 /**
1111 * Registers a user input handler for ask_user requests.

Callers 3

initializeSessionMethod · 0.95
resumeSessionMethod · 0.95
client.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected