From 4c2e4e055cde560501df37cf069cf801a7a1184d Mon Sep 17 00:00:00 2001 From: Theodor Midtlien Date: Wed, 16 Sep 2026 14:34:02 +0200 Subject: [PATCH] Apply suggestion from @cubic-dev-ai[bot] Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- client/server/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/server/server.go b/client/server/server.go index 8dc1a9110..1099ab4cf 100644 --- a/client/server/server.go +++ b/client/server/server.go @@ -306,6 +306,9 @@ func (s *Server) Start() error { // another users profile, so the daemon comes up on the default // profile instead of refusing to start. log.Errorf("starting on the default profile, the active one could not be resolved: %v", err) + if err := s.profileManager.SetActiveProfileStateToDefault(); err != nil { + return fmt.Errorf("set active profile to default: %w", err) + } activeProf = &profilemanager.ActiveProfileState{ID: profilemanager.DefaultProfileName} config, existingConfig, err = s.getConfig(activeProf) }