Skip to content

Commit 277cd9e

Browse files
committed
fix(cli): hide scrollbar while waiting for response
Previously the scrollbar was visible during the waiting state, which could cause visual flicker. Now it stays hidden until streaming completes.
1 parent 893e4bd commit 277cd9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ export const Chat = ({
851851
scrollX={false}
852852
scrollbarOptions={{ visible: false }}
853853
verticalScrollbarOptions={{
854-
visible: !isStreaming && hasOverflow,
854+
visible: !isStreaming && !isWaitingForResponse && hasOverflow,
855855
trackOptions: { width: 1 },
856856
}}
857857
{...appliedScrollboxProps}

0 commit comments

Comments
 (0)