diff --git a/apps/code/src/renderer/features/code-review/components/PrCommentThread.tsx b/apps/code/src/renderer/features/code-review/components/PrCommentThread.tsx
index 9a72d8dcf..21fa95067 100644
--- a/apps/code/src/renderer/features/code-review/components/PrCommentThread.tsx
+++ b/apps/code/src/renderer/features/code-review/components/PrCommentThread.tsx
@@ -1,6 +1,5 @@
import { MarkdownRenderer } from "@features/editor/components/MarkdownRenderer";
import { sendPromptToAgent } from "@features/sessions/utils/sendPromptToAgent";
-import { useFeatureFlag } from "@hooks/useFeatureFlag";
import type { PrReviewComment } from "@main/services/git/schemas";
import {
CaretDown,
@@ -11,15 +10,8 @@ import {
WarningCircle,
X,
} from "@phosphor-icons/react";
-import {
- Avatar,
- Badge,
- Box,
- Button,
- Flex,
- IconButton,
- Text,
-} from "@radix-ui/themes";
+import { Button } from "@posthog/quill";
+import { Avatar, Badge, Box, Flex, Text } from "@radix-ui/themes";
import { isSendMessageSubmitKey } from "@utils/sendMessageKey";
import { formatRelativeTimeShort } from "@utils/time";
import { useCallback, useEffect, useRef, useState } from "react";
@@ -71,8 +63,6 @@ function ThreadActionBar({
onKeyDown,
textareaRefCallback,
}: ThreadActionBarProps) {
- const agentActionsEnabled = useFeatureFlag("posthog-code-pr-agent-actions");
-
if (showReplyBox) {
return (
@@ -82,19 +72,19 @@ function ThreadActionBar({
onKeyDown={onKeyDown}
className="min-h-[48px] w-full resize-none rounded border border-[var(--gray-6)] bg-[var(--color-background)] p-1.5 text-[13px] text-[var(--gray-12)] leading-normal outline-none"
/>
-
-
);
@@ -107,46 +97,37 @@ function ThreadActionBar({
className="mt-1 border-[var(--gray-4)] border-t pt-1.5"
>
{prUrl && (
-
-
+
+
Reply
)}
- {/* TODO: remove this flag when https://github.com/posthog/code/issues/1533 is fixed
- currently set to 0% rollout. didn't discover the cloud bug until i had already built this
- xoxo, adboio */}
- {agentActionsEnabled && (
- <>
-
- sendPromptToAgent(
- taskId,
- buildFixPrCommentPrompt(filePath, endLine, side, comments),
- )
- }
- >
-
- Fix with agent
-
-
- sendPromptToAgent(
- taskId,
- buildAskAboutPrCommentPrompt(filePath, endLine, side, comments),
- )
- }
- >
-
- Ask agent
-
- >
- )}
+
+
+ sendPromptToAgent(
+ taskId,
+ buildFixPrCommentPrompt(filePath, endLine, side, comments),
+ )
+ }
+ >
+
+ Fix with agent
+
+
+
+ sendPromptToAgent(
+ taskId,
+ buildAskAboutPrCommentPrompt(filePath, endLine, side, comments),
+ )
+ }
+ >
+
+ Ask agent
+
);
}
@@ -232,20 +213,18 @@ function CommentBody({
{isOverflowing && (
setIsExpanded((prev) => !prev)}
className="mt-1"
>
{isExpanded ? (
<>
-
+
Show less
>
) : (
<>
-
+
Show more
>
)}