diff --git a/autogpt_platform/frontend/src/components/organisms/PendingReviewCard/PendingReviewCard.tsx b/autogpt_platform/frontend/src/components/organisms/PendingReviewCard/PendingReviewCard.tsx index c302ff6fe0..c570e30c34 100644 --- a/autogpt_platform/frontend/src/components/organisms/PendingReviewCard/PendingReviewCard.tsx +++ b/autogpt_platform/frontend/src/components/organisms/PendingReviewCard/PendingReviewCard.tsx @@ -57,10 +57,18 @@ export function PendingReviewCard({ const extractedData = extractReviewData(review.payload); const isDataEditable = review.editable; - // Get instructions - clean up old format if it exists + // Get instructions from payload (HITL blocks) or review field let instructions = extractedData.instructions || review.instructions; - if (instructions) { - // Remove old wrapper format: "Review required for X execution" -> "X" + + // Only show as label if it's a HITL block (user-provided meaningful name, not a technical block name) + // HITL blocks have names like "User profile data", sensitive blocks have names like "SendEmailBlock" + const isHITLBlock = instructions && !instructions.includes("Block"); + + if (instructions && !isHITLBlock) { + // For non-HITL blocks, don't show label + instructions = undefined; + } else if (instructions) { + // Clean up old format for HITL blocks: "Review required for X execution" -> "X" const match = instructions.match(/^Review required for (.+?) execution$/); if (match) { instructions = match[1]; diff --git a/autogpt_platform/frontend/src/components/organisms/PendingReviewsList/PendingReviewsList.tsx b/autogpt_platform/frontend/src/components/organisms/PendingReviewsList/PendingReviewsList.tsx index 49fa3c5b2d..37fe44b9ac 100644 --- a/autogpt_platform/frontend/src/components/organisms/PendingReviewsList/PendingReviewsList.tsx +++ b/autogpt_platform/frontend/src/components/organisms/PendingReviewsList/PendingReviewsList.tsx @@ -274,27 +274,29 @@ export function PendingReviewsList({