diff --git a/src/browser/components/ChatInput/CreationCenterContent.tsx b/src/browser/components/ChatInput/CreationCenterContent.tsx index fd456313ea..3db11368d2 100644 --- a/src/browser/components/ChatInput/CreationCenterContent.tsx +++ b/src/browser/components/ChatInput/CreationCenterContent.tsx @@ -3,23 +3,35 @@ import React from "react"; interface CreationCenterContentProps { projectName: string; isSending: boolean; + inputPreview?: string; } /** * Center content displayed during workspace creation - * Shows either a loading spinner or welcome message + * Shows either a loading state with the user's prompt or welcome message */ -export function CreationCenterContent({ projectName, isSending }: CreationCenterContentProps) { +export function CreationCenterContent(props: CreationCenterContentProps) { + // Truncate long prompts for preview display + const truncatedPreview = + props.inputPreview && props.inputPreview.length > 150 + ? props.inputPreview.slice(0, 150) + "..." + : props.inputPreview; + return (
- {isSending ? ( -
-
-

Creating workspace...

+ {props.isSending ? ( +
+
+

Creating workspace

+ {truncatedPreview && ( +

+ Generating name for “{truncatedPreview}” +

+ )}
) : (
-

{projectName}

+

{props.projectName}

Describe what you want to build. A new workspace will be created with an automatically generated branch name. Configure runtime and model options below. diff --git a/src/browser/components/ChatInput/index.tsx b/src/browser/components/ChatInput/index.tsx index 0d6e215390..4ce95c5116 100644 --- a/src/browser/components/ChatInput/index.tsx +++ b/src/browser/components/ChatInput/index.tsx @@ -971,12 +971,16 @@ export const ChatInput: React.FC = (props) => { )} - {/* Input section */} + {/* Input section - dim when creating workspace */}