From cc65b331462beed83b1ef498c9e8829de9e43c60 Mon Sep 17 00:00:00 2001 From: Michelle Zhang <56095982+michellewzhang@users.noreply.github.com> Date: Wed, 12 Nov 2025 15:32:52 -0800 Subject: [PATCH] ref(replay): update segment count on frontend --- static/app/views/replays/detail/ai/ai.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/app/views/replays/detail/ai/ai.tsx b/static/app/views/replays/detail/ai/ai.tsx index 3f94c5c3fa92c0..d9bb43169b1dd4 100644 --- a/static/app/views/replays/detail/ai/ai.tsx +++ b/static/app/views/replays/detail/ai/ai.tsx @@ -24,6 +24,8 @@ import {useReplaySummaryContext} from 'sentry/views/replays/detail/ai/replaySumm import {NO_REPLAY_SUMMARY_MESSAGES} from 'sentry/views/replays/detail/ai/utils'; import TabItemContainer from 'sentry/views/replays/detail/tabItemContainer'; +const MAX_SEGMENTS_TO_SUMMARIZE = 150; + export default function Ai() { const organization = useOrganization(); const { @@ -223,7 +225,9 @@ export default function Ai() { - {segmentCount > 100 && {replayTooLongMessage}} + {segmentCount > MAX_SEGMENTS_TO_SUMMARIZE && ( + {replayTooLongMessage} + )}