diff --git a/.env.sample b/.env.sample index aebe5cca44a..58c15edfe38 100644 --- a/.env.sample +++ b/.env.sample @@ -4,3 +4,4 @@ POSTHOG_API_KEY=key-goes-here CLERK_BASE_URL=https://epic-chamois-85.clerk.accounts.dev ROO_CODE_API_URL=http://localhost:3000 ROO_CODE_PROVIDER_URL=http://localhost:8080/proxy/v1 +KILOCODE_HIDE_LOGO=false diff --git a/cli/src/ui/messages/cli/WelcomeMessage.tsx b/cli/src/ui/messages/cli/WelcomeMessage.tsx index e14d5785311..7ee13740d84 100644 --- a/cli/src/ui/messages/cli/WelcomeMessage.tsx +++ b/cli/src/ui/messages/cli/WelcomeMessage.tsx @@ -19,13 +19,17 @@ export const WelcomeMessage: React.FC = ({ options = {} }) const showInstructions = options.showInstructions !== false const instructions = options.instructions && options.instructions.length > 0 ? options.instructions : DEFAULT_INSTRUCTIONS + + // Check if logo should be hidden via environment variable + const hideLogo = process.env.KILOCODE_HIDE_LOGO === "true" || process.env.KILOCODE_HIDE_LOGO === "1" + const contentHeight = 12 + (showInstructions ? instructions.length : 0) const marginTop = options.clearScreen ? Math.max(0, (stdout?.rows || 0) - contentHeight) : 0 return ( - {/* Logo section - always shown */} - + {/* Logo section - hidden if KILOCODE_HIDE_LOGO env var is set */} + {!hideLogo && } {/* Instructions section */} {showInstructions && (