MCPcopy Create free account
hub / github.com/github/copilot-sdk / _handleExitPlanModeRequest

Method _handleExitPlanModeRequest

nodejs/src/session.ts:969–975  ·  view source on GitHub ↗

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

(request: ExitPlanModeRequest)

Source from the content-addressed store, hash-verified

967 * @internal
968 */
969 async _handleExitPlanModeRequest(request: ExitPlanModeRequest): Promise<ExitPlanModeResult> {
970 if (!this.exitPlanModeHandler) {
971 return { approved: true };
972 }
973
974 return await this.exitPlanModeHandler(request, { sessionId: this.sessionId });
975 }
976
977 /**
978 * Handles an autoModeSwitch.request callback from the runtime.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected