From 3027bf02535c86be05db71865e64a713c2723197 Mon Sep 17 00:00:00 2001 From: akhisud3195 Date: Tue, 19 Aug 2025 20:55:22 +0530 Subject: [PATCH] Move agent config description to instructions --- .../app/lib/components/input-field.tsx | 9 +++-- .../[projectId]/entities/agent_config.tsx | 33 ++++++++++--------- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/apps/rowboat/app/lib/components/input-field.tsx b/apps/rowboat/app/lib/components/input-field.tsx index a2b96dac..1dab3020 100644 --- a/apps/rowboat/app/lib/components/input-field.tsx +++ b/apps/rowboat/app/lib/components/input-field.tsx @@ -41,6 +41,7 @@ interface TextInputFieldProps extends BaseInputFieldProps { showSaveButton?: boolean; showDiscardButton?: boolean; immediateSave?: boolean; + minHeight?: string; } // Select input specific props @@ -109,6 +110,7 @@ function TextInputField({ showSaveButton = false, showDiscardButton = false, immediateSave = false, + minHeight, }: TextInputFieldProps) { const [isEditing, setIsEditing] = useState(false); const [localValue, setLocalValue] = useState(value); @@ -248,7 +250,7 @@ function TextInputField({ {/* Input field */} {mentions ? ( -
+
!locked && !disabled && setIsEditing(true)} > {/* Content */} diff --git a/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx b/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx index 6f6c332a..f44432f4 100644 --- a/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx +++ b/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx @@ -319,6 +319,22 @@ export function AgentConfig({
) : (
+ {/* Description Section */} +
+ + { + handleUpdate({ ...agent, description: value }); + showSavedMessage(); + }} + multiline={true} + placeholder="Enter a description for this agent" + minHeight="40px" + className="w-full" + /> +
{/* Instructions Section */}
@@ -493,22 +509,7 @@ export function AgentConfig({ />
-
- -
- { - handleUpdate({ ...agent, description: value }); - showSavedMessage(); - }} - multiline={true} - placeholder="Enter a description for this agent" - className="w-full" - /> -
-
+
{/* Behavior Section Card */}