config becomes start/run arg so we are sure it gets updated on any (re)start

This is because we now have the supervisor not destroyed over time

Still intermediate step where server.go regenerates the client entirely.
This commit is contained in:
riccardom
2026-06-16 18:31:46 +02:00
parent befa9a879c
commit 70f2097fff
12 changed files with 73 additions and 51 deletions
+2 -2
View File
@@ -202,10 +202,10 @@ func runInForegroundMode(ctx context.Context, cmd *cobra.Command, activeProf *pr
r := peer.NewRecorder(config.ManagementURL.String())
r.GetFullStatus()
connectClient := internal.NewConnectClient(ctx, config, r)
connectClient := internal.NewConnectClient(ctx, r)
SetupDebugHandler(ctx, config, r, connectClient, "")
return connectClient.Run(nil, util.FindFirstLogPath(logFiles))
return connectClient.Run(config, nil, util.FindFirstLogPath(logFiles))
}
func runInDaemonMode(ctx context.Context, cmd *cobra.Command, pm *profilemanager.ProfileManager, activeProf *profilemanager.Profile, profileSwitched bool) error {