Skip to content

Commit b3290df

Browse files
committed
Disable message auto-scroll-into-view
1 parent ec1c891 commit b3290df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web/src/components/common/Chat.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ export const ChatSection = () => {
202202
const tasks = activeThread.tasks
203203
const url = useAppStore((state) => state.toolContext)?.url || ''
204204

205-
useEffect(() => {
206-
setTimeout(() => {
207-
messagesEndRef.current?.scrollIntoView({ behavior: 'smooth', block: 'end' });
208-
}, 100);
209-
}, [messages.length]);
205+
// useEffect(() => {
206+
// setTimeout(() => {
207+
// messagesEndRef.current?.scrollIntoView({ behavior: 'smooth', block: 'end' });
208+
// }, 100);
209+
// }, [messages.length]);
210210
// need to add status information to tool calls of role='assistant' messages
211211
// just create a map of all role='tool' messages by their id, and for each
212212
// tool call in each assistant message, add the status from the corresponding

0 commit comments

Comments
 (0)