From ce5dd77d44ed68d59f9584d44b0b5af918d3887b Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Thu, 25 Jun 2026 12:38:07 -0700 Subject: [PATCH] remove foreground flag --- cmd/launch/hermes.go | 5 ++--- cmd/launch/hermes_test.go | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/launch/hermes.go b/cmd/launch/hermes.go index e2fab013f..6abd57bf5 100644 --- a/cmd/launch/hermes.go +++ b/cmd/launch/hermes.go @@ -136,10 +136,9 @@ func (h *HermesDesktop) packagedAppExists() bool { // shouldRunForeground reports whether Hermes Desktop should stay attached to // the launcher terminal instead of detaching into the background. Help and -// build-only invocations produce terminal output, and --foreground lets users -// opt into the attached behavior explicitly. +// build-only invocations produce terminal output. func (h *HermesDesktop) shouldRunForeground(args []string) bool { - return hermesDesktopHasFlag(args, "--foreground", "--help", "-h", "--build-only") + return hermesDesktopHasFlag(args, "--help", "-h", "--build-only") } // These roots mirror Hermes' own install layout: diff --git a/cmd/launch/hermes_test.go b/cmd/launch/hermes_test.go index 66964ee73..d35f99f7c 100644 --- a/cmd/launch/hermes_test.go +++ b/cmd/launch/hermes_test.go @@ -668,9 +668,8 @@ func TestHermesDesktopRun(t *testing.T) { { name: "desktop subcommand", goos: "darwin", - args: []string{"--foreground"}, clearPkgEnv: true, - want: "[desktop --foreground]", + want: "[desktop]", }, { name: "skip build when packaged app exists",