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

Method _handleAutoModeSwitchRequest

nodejs/src/session.ts:981–989  ·  view source on GitHub ↗

* Handles an autoModeSwitch.request callback from the runtime. * @internal

(
        request: AutoModeSwitchRequest
    )

Source from the content-addressed store, hash-verified

979 * @internal
980 */
981 async _handleAutoModeSwitchRequest(
982 request: AutoModeSwitchRequest
983 ): Promise<AutoModeSwitchResponse> {
984 if (!this.autoModeSwitchHandler) {
985 return "no";
986 }
987
988 return await this.autoModeSwitchHandler(request, { sessionId: this.sessionId });
989 }
990
991 /**
992 * Sets the host capabilities for this session.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected