fix: better session management for github_copilot_provider

This commit is contained in:
Lixeer
2026-02-22 22:30:53 +08:00
parent cb0c8703fb
commit a849e02917
3 changed files with 59 additions and 23 deletions
+3
View File
@@ -212,6 +212,9 @@ func gatewayCmd() {
fmt.Println("\nShutting down...")
cancel()
if cp, ok := provider.(providers.SessionProvider); ok {
cp.Close()
}
healthServer.Stop(context.Background())
deviceService.Stop()
heartbeatService.Stop()