Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
fix: only show --foreground flag in dev environment
Gener4b2d71328ef6
diff --git a/src/cli/commands/register.ts b/src/cli/commands/register.tsindex e23bf3714..bfdec16ed 100644--- a/src/cli/commands/register.ts+++ b/src/cli/commands/register.ts@@ -3,7 +3,7 @@ import { execSync } from "child_process";import { hostname } from "os";import { APIClient } from "../lib/client.js";import { loadCLIConfigForProfile, saveCLIConfigForProfile } from "../lib/config.js";-import { cmdPrefix } from "../lib/env.js";+import { cmdPrefix, isDev } from "../lib/env.js";import { readDaemonPid, isProcessAlive } from "../daemon/pidfile.js";interface MeResponse {@@ -188,10 +188,11 @@ export function registerCommand(): Command {console.log(`\nDaemon is running but could not be notified. Restart it to pick up the new workspace.`);}} else {+ const startCmd = isDev()+ ? `${cmdPrefix()} daemon start --foreground`+ : `${cmdPrefix()} daemon start`;console.log();- console.log(- `Run '${cmdPrefix()} daemon start --foreground' to start the daemon.`,- );+ console.log(`Run '${startCmd}' to start the daemon.`);}});diff --git a/src/web/src/components/connect-machine-steps.tsx b/src/web/src/components/connect-machine-steps.tsxindex 2c49433a5..1edea323c 100644--- a/src/web/src/components/connect-machine-steps.tsx+++ b/src/web/src/components/connect-machine-steps.tsx@@ -46,8 +46,12 @@ export function ConnectMachineSteps({toast.success("Copied to clipboard");};+ const daemonCmd = process.env.NODE_ENV === "development"+ ? `${CLI_CMD} daemon start --foreground`+ : `${CLI_CMD} daemon start`;+const copyDaemon = () => {- navigator.clipboard.writeText(`${CLI_CMD} daemon start --foreground`);+ navigator.clipboard.writeText(daemonCmd);toast.success("Copied to clipboard");};@@ -110,7 +114,7 @@ export function ConnectMachineSteps({onClick={copyDaemon}title="Click to copy">- {CLI_CMD} daemon start --foreground+ {daemonCmd}</div>{registered && (<div className="pl-7">diff --git a/src/web/src/components/dashboard-navbar.tsx b/src/web/src/components/dashboard-navbar.tsxindex 2c2047676..ed52057ca 100644--- a/src/web/src/components/dashboard-navbar.tsx+++ b/src/web/src/components/dashboard-navbar.tsx@@ -124,11 +124,13 @@ function OnboardingSteps({<divclassName="ml-7 rounded-md bg-muted p-2.5 font-mono text-xs text-muted-foreground cursor-pointer hover:bg-muted/80 transition-colors"onClick={() =>- copyToClipboard(`${CLI_CMD} daemon start --foreground`)+ copyToClipboard(process.env.NODE_ENV === "development"+ ? `${CLI_CMD} daemon start --foreground`+ : `${CLI_CMD} daemon start`)}title="Click to copy">- {CLI_CMD} daemon start --foreground+ {CLI_CMD} daemon start{process.env.NODE_ENV === "development" ? " --foreground" : ""}</div></div></div>