From ae04bfd3896fc926c181c710bd2186cec399e7a8 Mon Sep 17 00:00:00 2001 From: Snider Date: Tue, 24 Mar 2026 21:36:19 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20use=20c.Run()=20void=20=E2=80=94=20handl?= =?UTF-8?q?es=20os.Exit=20internally.=20114=20lines.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Virgil --- cmd/core-agent/main.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cmd/core-agent/main.go b/cmd/core-agent/main.go index 8d28125..0eda798 100644 --- a/cmd/core-agent/main.go +++ b/cmd/core-agent/main.go @@ -109,12 +109,6 @@ func main() { registerWorkspaceCommands(c) // registerFlowCommands(c) — on feat/flow-system branch - // Run: ServiceStartup → Cli → ServiceShutdown - r = c.Run() - if !r.OK { - if err, ok := r.Value.(error); ok { - core.Error(err.Error()) - } - os.Exit(1) - } + // Run: ServiceStartup → Cli → ServiceShutdown → os.Exit if error + c.Run() }