Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(environment): leave the environment setup command empty by default (#23483)

Rdmclin21b1acd4c6651
diff --git a/src/features/EnvironmentManager/EnvironmentForm.tsx b/src/features/EnvironmentManager/EnvironmentForm.tsx
index 3459dd4da6f..d22685f4028 100644
--- a/src/features/EnvironmentManager/EnvironmentForm.tsx
+++ b/src/features/EnvironmentManager/EnvironmentForm.tsx
@@ -547,7 +547,6 @@ const EnvironmentForm = memo<EnvironmentFormProps>(({ environment, hideBasics, o
multiline
desc={t('environments.form.bootstrapHint')}
label={t('environments.form.bootstrap')}
- placeholder={'pnpm install'}
value={configuration.bootstrapCommand ?? ''}
onSave={(bootstrapCommand) => saveConfiguration({ bootstrapCommand })}
/>
diff --git a/src/features/EnvironmentManager/InlineField.tsx b/src/features/EnvironmentManager/InlineField.tsx
index 9b6c814c898..dbffeef8c31 100644
--- a/src/features/EnvironmentManager/InlineField.tsx
+++ b/src/features/EnvironmentManager/InlineField.tsx
@@ -69,8 +69,8 @@ interface InlineFieldProps {
* person's text still in it, and the reason goes to a toast.
*/
onSave: (value: string) => Promise<void>;
- /** Shown in place of an empty value, muted. */
- placeholder: string;
+ /** Shown in place of an empty value, muted. Omit when no example fits every case. */
+ placeholder?: string;
/** Refuse an empty value instead of saving it — for the one field that has no sensible blank. */
required?: boolean;
/**