diff --git a/src/components/chat/ChatInput.tsx b/src/components/chat/ChatInput.tsx index da415c4..06eae15 100644 --- a/src/components/chat/ChatInput.tsx +++ b/src/components/chat/ChatInput.tsx @@ -330,12 +330,20 @@ function ChatInputActions({ }: ChatInputActionsProps) { const [autoApprove, setAutoApprove] = useState(false); const [isDetailsVisible, setIsDetailsVisible] = useState(false); + if (proposal.type === "tip-proposal") { return
Tip proposal
; } if (proposal.type === "action-proposal") { return ; } + + // Split files into server functions and other files - only for CodeProposal + const serverFunctions = + proposal.filesChanged?.filter((f: FileChange) => f.isServerFunction) ?? []; + const otherFilesChanged = + proposal.filesChanged?.filter((f: FileChange) => !f.isServerFunction) ?? []; + return (
@@ -462,11 +470,30 @@ function ChatInputActions({
)} - {proposal.filesChanged?.length > 0 && ( + {serverFunctions.length > 0 && ( +
+

Server Functions Changed

+ +
+ )} + + {otherFilesChanged.length > 0 && (

Files Changed