fix: address Greptile review feedback

- Remove response.audio.done and conversation.item.created from
  isRealtimeResponse() detection since the view doesn't render them;
  prevents misleading fallback for responses with only those events
- Remove dead code: index >= 0 is always true in .map() callback

Co-authored-by: Ishaan Jaff <ishaan-jaff@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-02-26 07:13:23 +00:00
parent 1f0cb4705c
commit 1464baa8f6

View file

@ -88,9 +88,7 @@ export function isRealtimeResponse(response: any): boolean {
(r: any) =>
r.type === 'session.created' ||
r.type === 'session.updated' ||
r.type === 'response.done' ||
r.type === 'response.audio.done' ||
r.type === 'conversation.item.created'
r.type === 'response.done'
);
}
@ -369,7 +367,7 @@ function ResponseTurn({
return (
<div
style={{
marginBottom: index >= 0 ? 12 : 0,
marginBottom: 12,
paddingBottom: 12,
borderBottom: '1px solid #f5f5f5',
}}