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

Method registerHooks

go/session.go:699–703  ·  view source on GitHub ↗

registerHooks registers hook handlers for this session. Hooks are called at various points during session execution to allow customization and observation of the session lifecycle. This method is internal and typically called when creating a session.

(hooks *SessionHooks)

Source from the content-addressed store, hash-verified

697//
698// This method is internal and typically called when creating a session.
699func (s *Session) registerHooks(hooks *SessionHooks) {
700 s.hooksMux.Lock()
701 defer s.hooksMux.Unlock()
702 s.hooks = hooks
703}
704
705// getHooks returns the currently registered hooks, or nil.
706func (s *Session) getHooks() *SessionHooks {

Calls

no outgoing calls