Skip to content

Commit 56d11f5

Browse files
committed
[codecane] Remove all environment variable displays from welcome message
Removed both CLI and SDK environment variable displays from the welcome message. These were added for testing env var flow through the build pipeline but are not needed in production.
1 parent 284e889 commit 56d11f5

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

cli/src/chat.tsx

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ import {
5454
createMarkdownPalette,
5555
type ChatTheme,
5656
} from './utils/theme-system'
57-
import { env } from '@codebuff/common/env'
58-
import { clientEnvVars } from '@codebuff/common/env-schema'
5957
import { openFileAtPath } from './utils/open-file'
6058
import { formatValidationError } from './utils/validation-error-formatting'
6159
import { createValidationErrorBlocks } from './utils/create-validation-error-blocks'
@@ -272,27 +270,6 @@ export const App = ({
272270
})
273271
}
274272

275-
// Log all client environment variables (works with both dev and binary modes)
276-
// In binary mode, env vars are embedded via --define and accessible through the env object
277-
// In dev mode, they come from process.env via Infisical
278-
const envVarsList = clientEnvVars
279-
.map((key) => {
280-
const value = env[key]
281-
// Truncate long values for display
282-
const displayValue =
283-
typeof value === 'string' && value.length > 50
284-
? value.substring(0, 47) + '...'
285-
: value
286-
return ` ${key}=${displayValue}`
287-
})
288-
.join('\n')
289-
290-
blocks.push({
291-
type: 'text',
292-
content: `\nEnvironment variables:\n${envVarsList}`,
293-
marginTop: 1,
294-
})
295-
296273
// Calculate path from home directory to repository root
297274
// agentsDir is typically in the root, so use its parent as the repository root
298275
const homeDir = os.homedir()

0 commit comments

Comments
 (0)