Fix: cannot create session github copilot

This commit is contained in:
Phạm Minh Đạt 2026-03-20 21:48:29 +07:00 committed by GitHub
parent 79b0568d75
commit ba1538f31d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,8 +41,9 @@ func NewGitHubCopilotProvider(uri string, connectMode string, model string) (*Gi
}
session, err := client.CreateSession(context.Background(), &copilot.SessionConfig{
Model: model,
Hooks: &copilot.SessionHooks{},
Model: model,,
OnPermissionRequest: copilot.PermissionHandler.ApproveAll,
Hooks: &copilot.SessionHooks{}
})
if err != nil {
client.Stop()